OS X Questions

I suppose these are more general than just SDL, but since SDL is the
first library I tried to use I might as well ask here. I’m trying to get
my head around how OS X is setup and it isn’t working to well. :slight_smile:
OS X has a /usr/lib and /usr/include directory but the SDL packages
didn’t install there, are those directories just for system libs or
something? I thinking that is the case since the developer libs all went
into other directories.
Also when I installed the .pkg files for SDL-Devel I had to install it a
second time to get Project Builder to be able to see SDL.h, gcc still
doesn’t seem to see it. SDL_Image-devel was installed twice and neither
could see it’s header file, I had to move it manually to the same
location as the SDL headers.
I can’t get anything to compile right now because there seems to be a
problem with stl_alloc.h on my system, it gives all sorts of errors (and
linux still can’t compile because of that stupid undefined reference to
atexit I can’t fix, leaving me really SOL). But if someone could just
explain to me the proper way to setup SDL and other libs on an OS X
system it would be greatly appreciated.

I suppose these are more general than just SDL, but since SDL is the
first library I tried to use I might as well ask here. I’m trying to get
my head around how OS X is setup and it isn’t working to well. :slight_smile:
OS X has a /usr/lib and /usr/include directory but the SDL packages
didn’t install there, are those directories just for system libs or
something? I thinking that is the case since the developer libs all went
into other directories.

If you are using the default settings and making using ./configure, the
files will be installed into /usr/local/include, /usr/local/libs, etc.

Also when I installed the .pkg files for SDL-Devel I had to install it a
second time to get Project Builder to be able to see SDL.h, gcc still
doesn’t seem to see it. SDL_Image-devel was installed twice and neither
could see it’s header file, I had to move it manually to the same
location as the SDL headers.

Are you using ProjectBuilder? Did you add the path to the include files
to the include paths in the target settings pane? You need to do that.

I can’t get anything to compile right now because there seems to be a
problem with stl_alloc.h on my system, it gives all sorts of errors (and
linux still can’t compile because of that stupid undefined reference to
atexit I can’t fix, leaving me really SOL). But if someone could just
explain to me the proper way to setup SDL and other libs on an OS X
system it would be greatly appreciated.

I just use the standard ./configure approach. I then add the includes
paths to the project
and add the libraries manually to the project. I may have to run the
ranlib tool on the
libraries, but after that, everything works. I have no problem with
stl_alloc. It sounds
like you have some configuration issue.

Drop me a note if you need more help.

GeneOn Sunday, April 7, 2002, at 12:26 PM, John Garrison wrote: