Getting OpenGL to work with XCODE (on a Macbook) is a wrestling match. But I've managed to get everything to work except the image managing library SOIL2.
Has anyone had success with this?
I have done the following steps:
- compiled soil2 with premake and make on the Mac.
- added all the header files to /usr/local/include/SOIL2
- added a reference to /usr/local/include to Header Search Paths in Build Settings
- added a reference to the directory containing the libsoil2-debug.a file to "Link Binary with libraries" under Build Phases
- added "#include <SOIL2/SOIL2.h> to the program
The error message I get is from the linker, that it can't find the soil2 library.
I tried adding a path to the .a file also to the Library Search Paths, but then I get lots more errors.
After a couple of days going in circles, I'm really stuck. Had no problem getting soil2 working on the PC under VS. Any ideas for XCODE?