Developer Forums relocated!

Need help with Apple Developer tools and technologies? Want to share information with other developers and Apple engineers? Visit Developer Forums at Apple.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

xcode 3.1 + devIL 1.7.8

Hi,

I try to use devIL 1.7.8 with xcode 3.1, I couldn't compile from the sources (don't know how to do) so I used macports libdevil port.
The library is now recognize properly, I can use most of the functions but it lacks some of the ilut's, ilutGlLoadImage.
I did everything : linker flags -lil -lilu -lilut, lib and include directory.
So I don't understand why it lacks only some ilut.h related functions.

Can someone help me on this ? I just want to use ilutGlLoadImage...

Thanks

Mac OS X (10.5.4)

Posted on May 21, 2010 7:50 AM

Reply
7 replies

May 21, 2010 9:30 AM in response to Dblast

Dblast wrote:
I try to use devIL 1.7.8 with xcode 3.1, I couldn't compile from the sources (don't know how to do)


Download the source, untar it, type "configure --enable-ILUT; make; make install". It builds with no problems on 10.6 and Xcode 3.2.2. It should work fine with the older version too. That "--enable-ILUT" part is the piece you need.

so I used macports libdevil port.


Sorry to hear that. Maybe forward my reply to them so they can fix their build scripts. This is why I never recommend MacPorts or Fink because you never know how well they were built or what options are enabled.

My advice is to remove MacPorts completely and then try again. I don't know how much MacPorts messes with your path or library paths. If you don't need it for other things, just get rid if it to spare yourself the hassle.

May 22, 2010 3:00 AM in response to Dblast

Alright, I did install the libdevil's sources manually, there was a problem with the make, I had to add "#include "/sys/malloc.h" to ilur.c.

So now I am back to the original problem, I do have the library working (I added /usr/local/lib and /usr/local/include to my project), it detects devIL basics fonctions but I still lack ilutGlLoadImage, i found it in ilut_opengl.c.
Can someone tell me why it didn't compile this openGL part and how can I get it to compile ? because in the read me I didn't find anything about it.

Thanks a lot !

May 22, 2010 11:25 AM in response to Dblast

Maybe check the spelling on that function. Perhaps delete everything you have, including any installed libraries and start over. It seems to be there on the version I built:

[jdaniel@pele:514] ~/Downloads/devil-1.7.99 $ find . -exec grep -i ilutGlLoadImage {} ; -print
boostrlns from #flipCode for finding the ilutGLLoadImage bug in the 1.1.5
./CREDITS
ILAPI GLuint ILAPIENTRY ilutGLLoadImage(ILstring FileName);
./include/IL/ilut.h
Binary file ./lib/.libs/libILUT.1.dylib matches
./lib/.libs/libILUT.1.dylib
Binary file ./lib/.libs/libILUT.1.dylib.dSYM/Contents/Resources/DWARF/libILUT.1.dylib matches
./lib/.libs/libILUT.1.dylib.dSYM/Contents/Resources/DWARF/libILUT.1.dylib
Binary file ./lib/.libs/libILUT.a matches
./lib/.libs/libILUT.a
Binary file ./lib/.libs/libILUT.dylib matches
./lib/.libs/libILUT.dylib
Binary file ./lib/.libs/libILUTla-ilutopengl.o matches
./lib/.libs/libILUTla-ilutopengl.o
Binary file ./lib/libILUTla-ilutopengl.o matches
./lib/libILUTla-ilutopengl.o
GLuint ILAPIENTRY ilutGLLoadImage(ILstring FileName)
./src-ILUT/src/ilut_opengl.c

xcode 3.1 + devIL 1.7.8

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.