dmoc
2005.05.01, 02:30 PM
Hello all :p I'm a "switcher" so still pretty new to Mac (Panther 10.3.8). I have used SDL before but it was a while back and after trying to solve this problem all day long, and after searching high & low, I finally turn to you my (hopefully) new friends.
Anyhoo, I first installed the 1.2.8 dev package which seemed ok coz I used XCode to compile the built-in Atlantis example. Then I created my own OpenGL test, no textures, and that seemed ok (just a matrix of cubes). Now I want to texture them using either a PNG or TGA file and have dl'ed the SDL_Image package. My first question is if I want the full range of supported file types do I actually need the JPG, PNG and Z packages? Reason I ask is because I would have thought OSX already had plenty of support for these formats? I should also state that I have Fink installed and used it to install SDL runtimes (prior to installing the SDL dev package) - but I'm not sure how Fink figures in the grand scheme of things yet.
Back to SDL_Image, I first uncompressed PBProjects and tried to build the framework target using Xcode but it failed with a lot of errors. I think this was because the project search paths pointed to $(home)/Library/Frameworks/... so I removed the $(home) and also removed the "-ljpeg -lpng" linker flags. Now I have two warnings and one error. The error is "Undefined symbols: _SDL_Error" at the linking stage. Any idea what I'm missing?
In attempting to solve this I have also downgraded SDL to the 1.2.7 version, but with no luck. I have managed to compile SDL_Image from the terminal with the usual make routine but of course this won't give me the framework.
Thanks for reading. All comments welcome.
Anyhoo, I first installed the 1.2.8 dev package which seemed ok coz I used XCode to compile the built-in Atlantis example. Then I created my own OpenGL test, no textures, and that seemed ok (just a matrix of cubes). Now I want to texture them using either a PNG or TGA file and have dl'ed the SDL_Image package. My first question is if I want the full range of supported file types do I actually need the JPG, PNG and Z packages? Reason I ask is because I would have thought OSX already had plenty of support for these formats? I should also state that I have Fink installed and used it to install SDL runtimes (prior to installing the SDL dev package) - but I'm not sure how Fink figures in the grand scheme of things yet.
Back to SDL_Image, I first uncompressed PBProjects and tried to build the framework target using Xcode but it failed with a lot of errors. I think this was because the project search paths pointed to $(home)/Library/Frameworks/... so I removed the $(home) and also removed the "-ljpeg -lpng" linker flags. Now I have two warnings and one error. The error is "Undefined symbols: _SDL_Error" at the linking stage. Any idea what I'm missing?
In attempting to solve this I have also downgraded SDL to the 1.2.7 version, but with no luck. I have managed to compile SDL_Image from the terminal with the usual make routine but of course this won't give me the framework.
Thanks for reading. All comments welcome.