Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML crash on MacOS 10.6  (Read 17676 times)

0 Members and 3 Guests are viewing this topic.

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: SFML crash on MacOS 10.6
« Reply #15 on: January 28, 2013, 11:11:30 pm »
Uh you're right, I don't know why but I thought he was getting a crash on OS X 10.5.
Want to play movies in your SFML application? Check out sfeMovie!

Acrobat

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Re: SFML crash on MacOS 10.6
« Reply #16 on: January 29, 2013, 08:07:36 am »
i got the same crash with 10.5  ;D

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: SFML crash on MacOS 10.6
« Reply #17 on: January 29, 2013, 10:08:15 am »
Do you mean when building against the 10.5 SDK or when trying to run the application on OS X 10.5 ?
Want to play movies in your SFML application? Check out sfeMovie!

Acrobat

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Re: SFML crash on MacOS 10.6
« Reply #18 on: January 29, 2013, 03:26:09 pm »
Now i installed 10.5 Mac on VirtualBox and tried to launch my application (after i rebuild it with dylibs and latest sfml). Now my problem is this : http://en.sfml-dev.org/forums/index.php?topic=10445
I think the same problem is here : http://en.sfml-dev.org/forums/index.php?topic=10440.0

Acrobat

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Re: SFML crash on MacOS 10.6
« Reply #19 on: January 29, 2013, 03:33:03 pm »

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: SFML crash on MacOS 10.6
« Reply #20 on: January 29, 2013, 06:37:38 pm »
Quote
I think the same problem is here : http://en.sfml-dev.org/forums/index.php?topic=10440.0
No, this one is different.

https://github.com/MikeAcrobat/SFML
Great, I'll have a look.

Quote
after i rebuild it with dylibs and latest sfml
Just to be sure, could you precise with which SDK did you compile it ?
SFML / OS X developer

Acrobat

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Re: SFML crash on MacOS 10.6
« Reply #21 on: January 29, 2013, 07:09:53 pm »
sdk 10.8, target 10.5

Acrobat

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Re: SFML crash on MacOS 10.6
« Reply #22 on: January 30, 2013, 10:45:45 am »
Moving next.
I linked everything with "-weak_library /usr/lib/libSystem.B.dylib", problems with unresolved symbols gone, now other problem (on 10.5 OSX under VM) :
Thread 0 Crashed:
0   ???                                 000000000000000000 0 + 0
1   libsfml-window.dylib                0x000000010169948f sf::priv::VideoModeImpl::getDesktopMode() + 47
2   libsfml-window.dylib                0x0000000101694a1b sf::priv::SFContext::SFContext(sf::priv::SFContext*) + 59
3   libsfml-window.dylib                0x000000010168b6d1 sf::priv::GlContext::globalInit() + 33
4   libsfml-window.dylib                0x000000010168c3a5 sf::GlResource::GlResource() + 37
5   libsfml-window.dylib                0x000000010168e6ff sf::Window::Window() + 15
6   libsfml-graphics.dylib              0x00000001015e545f sf::RenderWindow::RenderWindow() + 15
….
 

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: SFML crash on MacOS 10.6
« Reply #23 on: January 30, 2013, 10:54:19 am »
what happen when you compile SFML with 10.5 SDK ?
SFML / OS X developer

Acrobat

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Re: SFML crash on MacOS 10.6
« Reply #24 on: January 30, 2013, 10:55:06 am »
i don't have it  :o

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: SFML crash on MacOS 10.6
« Reply #25 on: January 30, 2013, 11:42:42 am »
You can get it from previous Xcode installation packages and put the 10.5 SDK next to the other ones for your current Xcode installation.
Want to play movies in your SFML application? Check out sfeMovie!

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: SFML crash on MacOS 10.6
« Reply #26 on: January 30, 2013, 11:49:36 am »
Note: if you don't want to install both Xcode 3 and Xcode 4, do as follow :

Download xcode_3.2.6_and_ios_sdk_4.3.dmg from connect.apple.com, mount the dmg, go to /Volumes/Xcode and iOS SDK/Packages and run MacOSX10.5.pkg, then move /SDKs to /Developer/SDKs. Next in CMake set CMAKE_OSX_DEPLOYMENT_TARGET to 10.5 and CMAKE_OSX_SYSROOT to /Developer/SDKs/MacOSX10.5.sdk. Now you can rebuild SFML.

EDIT: or, like Ceylo said, you can move the SDK to /Application/Xcode.app/..../SDKs.
« Last Edit: January 30, 2013, 11:51:48 am by Hiura »
SFML / OS X developer

Acrobat

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Re: SFML crash on MacOS 10.6
« Reply #27 on: January 30, 2013, 11:50:05 am »
Just tested on 10.6.8 , everything is Ok. Think that the problem with 10.5 is that i launched it inside VirtualBox, what do you think ?

Acrobat

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Re: SFML crash on MacOS 10.6
« Reply #28 on: January 30, 2013, 11:52:02 am »
I don't think that using old SDK is a solution, there will be many problems with compilation.

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: SFML crash on MacOS 10.6
« Reply #29 on: January 30, 2013, 11:54:14 am »
No, compilation works. I did it myself...

SFML / OS X developer