Using DevIL with Xcode
- by jak3t
Hello everyone!
I'm trying to use DevIL with XCode but I can't get it to work.
I tried using the "standard" method by doing "configure make make install" and using #import <IL/il> but it doesn't work. It identifies the library but I still get some compiling errors:
Ld build/Release/cg.app/Contents/MacOS/cg normal i386
cd "/Users/simaorfreitas/Documents/LESI/3º ano/CG/CGaula1"
/Developer/usr/bin/g++-4.2 -arch i386 "-L/Users/simaorfreitas/Documents/LESI/3º ano/CG/CGaula1/build/Release" "-F/Users/simaorfreitas/Documents/LESI/3º ano/CG/CGaula1/build/Release" -filelist "/Users/simaorfreitas/Documents/LESI/3º ano/CG/CGaula1/build/CGaula1.build/Release/cg.build/Objects-normal/i386/cg.LinkFileList" -framework Foundation -framework AppKit -framework GLUT -framework OpenGL -framework Cocoa -framework AppKit -o "/Users/simaorfreitas/Documents/LESI/3º ano/CG/CGaula1/build/Release/cg.app/Contents/MacOS/cg"
Undefined symbols:
"_ilConvertImage", referenced from:
terreno() in main.o
"_ilGetInteger", referenced from:
terreno() in main.o
terreno() in main.o
terreno() in main.o
"_ilLoadImage", referenced from:
terreno() in main.o
"_ilBindImage", referenced from:
terreno() in main.o
"_ilGetData", referenced from:
terreno() in main.o
"_ilInit", referenced from:
terreno() in main.o
"_ilGenImages", referenced from:
terreno() in main.o
ld: symbol(s) not found
collect2: ld returned 1 exit status`
So i tried do it by using the macports libdevil install. It installed correctly but nothing seems to work. Do I need to change my #import declarations?
Any suggestion to install DevIL on the Mac correctly and use it in a XCode Project?
Thanks a lot!