TL;DR - If you have a complete, working code sample using the DevIL image library, I'd really like to see it.
I'm currently looking at different image librarys for OpenGL texture loading and noticed the DevIL (previously OpenIL) library. I can see that the necessary headers are included in the FB inc/IL folder, which contains il.bi, ilu.bi, and ilut.bi. Downloading and placing the corresponding .dll files in the lib folder seems to work fine. However, in order to work, DevIL needs a number of other libraries, like the libjpeg, libpng, zlib and a couple of others. Compiling without them throws an error showing which libraries are needed:
Code: Select all
C:\PROGRA~2\FREEBA~1.0-W\FREEBA~1.0-W\bin\win64\ld.exe: cannot find -ljasper
C:\PROGRA~2\FREEBA~1.0-W\FREEBA~1.0-W\bin\win64\ld.exe: cannot find -ljpeg
C:\PROGRA~2\FREEBA~1.0-W\FREEBA~1.0-W\bin\win64\ld.exe: cannot find -ltiff
C:\PROGRA~2\FREEBA~1.0-W\FREEBA~1.0-W\bin\win64\ld.exe: cannot find -lmng
C:\PROGRA~2\FREEBA~1.0-W\FREEBA~1.0-W\bin\win64\ld.exe: cannot find -lpng
C:\PROGRA~2\FREEBA~1.0-W\FREEBA~1.0-W\bin\win64\ld.exe: cannot find -llzma
C:\PROGRA~2\FREEBA~1.0-W\FREEBA~1.0-W\bin\win64\ld.exe: cannot find -lz
Realizing that all header and dll files have to be the exactly right version (not necessarily the newest) for this to work, I'm wondering if it's worth the time - or if it even can be made to work? Since the headers are included, I'm assuming that sometime someone got this working. Any form of help or insightful comment is appreciated in advance.
Also: This is by far the most annoying type of coding-related problem that I know of. Tracking down a bug in a pointer to array-of-pointers to arrays of objects in a multithreaded environment - no problem, just apply logic and time. Fixing dll problems - just make me want to strangle someone...
http://openil.sourceforge.net/
Cheers,
Mike