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

Login with username, password and session length

 
Advanced search

1075919 Posts in 44152 Topics- by 36120 Members - Latest Member: Royalhandstudios

December 29, 2014, 03:28:29 PM
TIGSource ForumsDeveloperTechnical (Moderators: Glaiel-Gamer, ThemsAllTook)struggling to build C++ OpenGL/SDL project for Mac OS X
Pages: 1 [2]
Print
Author Topic: struggling to build C++ OpenGL/SDL project for Mac OS X  (Read 1998 times)
mcc
Level 10
*****


glitch


View Profile WWW Email
« Reply #20 on: April 12, 2012, 10:58:16 AM »

Yeah I was saying System/Library just off the top of my head. The setup you describe sounds correct.

Can you give me a specific answer on this question?

"You're saying that if you leave SDL.framework out of the app bundle and force it to load from /Library, not only does it compile, you don't get the SDL_PollEvent or crypto++ crashes?"

Also: Are there any sdl.framework-s elsewhere on the system, maybe in ~/Library, which you find if you spotlight?
Logged

My projects:<br />Games: Jumpman Retro-futuristic platforming iJumpman iPhone version Drumcircle PC+smartphone music toy<br />More: RUN HELLO
Hinchy
Level 3
***


zach@hinchy.us lbhinchy
View Profile WWW Email
« Reply #21 on: April 12, 2012, 11:25:36 AM »

"You're saying that if you leave SDL.framework out of the app bundle and force it to load from /Library, not only does it compile, you don't get the SDL_PollEvent or crypto++ crashes?"
It compiles no matter what, but yes, it runs perfectly if SDL.framework is ONLY located /Library/Frameworks.

If SDL.framework is located in BOTH /Library/Frameworks AND the app bundle, it crashes with EXC_BAD_ACCESS.

If SDL.framework is NOT located in /Library/Frameworks, the program refuses to start at all, asking you to check with the developer if the program is compatible with this version of OS X.

Also: Are there any sdl.framework-s elsewhere on the system, maybe in ~/Library, which you find if you spotlight?
No.
Logged
mcc
Level 10
*****


glitch


View Profile WWW Email
« Reply #22 on: April 12, 2012, 05:37:44 PM »

"You're saying that if you leave SDL.framework out of the app bundle and force it to load from /Library, not only does it compile, you don't get the SDL_PollEvent or crypto++ crashes?"
It compiles no matter what, but yes, it runs perfectly if SDL.framework is ONLY located /Library/Frameworks.

If SDL.framework is located in BOTH /Library/Frameworks AND the app bundle, it crashes with EXC_BAD_ACCESS.

If SDL.framework is NOT located in /Library/Frameworks, the program refuses to start at all, asking you to check with the developer if the program is compatible with this version of OS X.

That is fricking weird.

Humor me-- what happens if you build, then go to the directory with your app and type

diff -r YOURAPP.app/Contents/Frameworks/SDL.framework /Library/Frameworks/SDL.framework

(adjusting YOURAPP as appropriate?)
Logged

My projects:<br />Games: Jumpman Retro-futuristic platforming iJumpman iPhone version Drumcircle PC+smartphone music toy<br />More: RUN HELLO
Hinchy
Level 3
***


zach@hinchy.us lbhinchy
View Profile WWW Email
« Reply #23 on: April 12, 2012, 06:35:42 PM »

http://meandmark.com/blog/2012/01/using-sdl-with-xcode-4/

the comment on this post by "Adam" solved the problem.
Everything's dandy!
Logged
Hinchy
Level 3
***


zach@hinchy.us lbhinchy
View Profile WWW Email
« Reply #24 on: April 13, 2012, 09:37:16 PM »

http://wearethelayabouts.com/content/games/launchman

Here we go! Thanks fellas, couldn't have done it without your help.  SmileyToast Right
Logged
Pages: 1 [2]
Print
Jump to:  

Theme orange-lt created by panic