Mac OS X and SDL/SGE

Hello,
I am trying to get SGE (SDL Graphics Extension) working on Mac OS X. SDL is
working perfectly it’s just SGE thats giving me trouble. Running make works
fine, but make install fails because OS X’s ‘ld’ doesn’t have the option
’-soname’. Has anyone had any success building SGE on OS X?

Thanks,
Steven Davidovitz

I am trying to get SGE (SDL Graphics Extension) working on Mac OS X. SDL is
working perfectly it’s just SGE thats giving me trouble. Running make works
fine, but make install fails because OS X’s ‘ld’ doesn’t have the option
’-soname’. Has anyone had any success building SGE on OS X?

The link line is a little different for Mac OS X…here’s an updated
Makefile. “make shared” will build libSGE.dylib, which, when linked
against, will be searched for in the same directory as the app’s binary
at runtime. It’ll still use the regular behaviour on Linux.

This builds…I haven’t tried to link it to any apps, though.

–ryan.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed…
Name: Makefile
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20051117/2cde53b9/attachment.asc
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed…
Name: Makefile.conf
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20051117/2cde53b9/attachment.txt

Ryan C. Gordon <icculus icculus.org> writes:

I am trying to get SGE (SDL Graphics Extension) working on Mac OS X. SDL is
working perfectly it’s just SGE thats giving me trouble. Running make works
fine, but make install fails because OS X’s ‘ld’ doesn’t have the option
’-soname’. Has anyone had any success building SGE on OS X?

The link line is a little different for Mac OS X…here’s an updated
Makefile. “make shared” will build libSGE.dylib, which, when linked
against, will be searched for in the same directory as the app’s binary
at runtime. It’ll still use the regular behaviour on Linux.

This builds…I haven’t tried to link it to any apps, though.

–ryan.


SDL mailing list
SDL libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Thanks, I got it built and installed, and successfully compiled against. But
when I try to run the app that uses it I get

“dyld: rubyw-1.8.3 can’t open library: libSGE.dylib (No such file or directory,
errno = 2)
Trace/BPT trap”

Could this be a specific ruby error, or is it part of the SGE build?

Thanks alot,
Steven

“make shared” will build libSGE.dylib, which, when linked
against, will be searched for in the same directory as the app’s binary
at runtime.

“dyld: rubyw-1.8.3 can’t open library: libSGE.dylib (No such file or directory,
errno = 2)
Trace/BPT trap”

Could this be a specific ruby error, or is it part of the SGE build?

That happens if the file isn’t somewhere the program can find it…in
this case, it has to be in the same directory as the application (that
can be corrected, that’s just how I wedged it into the makefile).

–ryan.

I added /opt/local/lib to DYLD_LIBRARY_PATH and it works
fine without having to put libSGE.dylib into the directory.

Thanks so much,
Steven