Hi,
Thank you for responding to my post, here are the results:On 09/11/2010 05:37 PM, Eric Wing wrote:
On 9/11/10, Jesse Palser wrote:
[1.2] [OS X+Xcode]-Builds OK, Does Not Run ???
Hi,
I am trying to port my SDL1.2+OpenGL game:
LettersFall 2
to Mac OS X 10.6.2…
I installed Xcode and have the game building OK on it.
When I run the built executable I get the following error:
Dyld Error Message:
Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib
Referenced from:
/Library/Frameworks/SDL_ttf.framework/Version/A/SDL_ttf
Reason: image not found
Do not know how to fix this…
Any help would be appreciated!
I need some information about your system. Please open Terminal.app
and do the following:
ls -l /usr
(Please paste the results. I am looking for the directories X11R6 and X11)
Assuming you have these directories, do this for each:
ls -l /usr/X11R6/lib/libfreetype*
ls -l /usr/X11/lib/libfreetype*
Paste the results for each case.
Also, do I need to place something in the executable’s folder
for SDL1.2, SDL_image, SDL_mixer, SDL_ttf ?
( like DLL’s on Windows® )
You need to put the .frameworks you use (SDL.framework,
SDL_ttf.framework) in your .app bundle. You’ll need to solve the
freetype problem first though.
This video shows how to do it for OpenSceneGraph. Same concept for
SDL. (SDL is a bit easier because there is less stuff.
http://playcontrol.net/ewing/screencasts/how_to_create_an_app_bundle.html
-Eric
JeZ-Lees-Mac:~ jezlee$ ls -l /usr
total 0
drwxr-xr-x 4 root wheel 136 Sep 12 09:33 X11
drwxr-xr-x 1063 root wheel 36142 Sep 12 09:37 bin
drwxr-xr-x 271 root wheel 9214 Sep 12 09:33 include
drwxr-xr-x 377 root wheel 12818 Sep 12 09:34 lib
drwxr-xr-x 100 root wheel 3400 Sep 12 09:34 libexec
drwxr-xr-x 236 root wheel 8024 Sep 12 09:34 sbin
drwxr-xr-x 72 root wheel 2448 Sep 12 09:34 share
drwxr-xr-x 4 root admin 136 Nov 24 2009 standalone
JeZ-Lees-Mac:~ jezlee$ ls -l /usr/X11R6/lib/libfreetype*
ls: /usr/X11R6/lib/libfreetype*: No such file or directory
JeZ-Lees-Mac:~ jezlee$ ls -l /usr/X11/lib/libfreetype*
ls: /usr/X11/lib/libfreetype*: No such file or directory
Hope you can help!
Thanks
Jesse