Devil does not load images using linux build

I had problems loading the image in Devil, so I definitely made it clear how I created the libraries and how I try to use them.

Download the Devel source from the website.

$ unzip DevIL-1.7.8.zip
$ mkdir devil
$ cd Devil-1.7.8
+-------------------------------------------+
| Just type:                                |
| autoreconf -i                             |
| ./configure <your options here>           |
| make                                      |
| sudo make install                         |
+-------------------------------------------+

If I use autoreconf -i, then. / configure prefixed with both ilu and ilut. I get an error..forgot .. error message to write it down. How important is it? I just did not use it.

$ chmod +x configure
$  ./configure --prefix=/home/path/to/TestingDevil/devil --enable-ILU --enable-ILUT
$ make
$ make install 

So, at this moment my library should be built. I loaded the devil with a simple example (simple.c) in TestingDevil / simple / simple.c built it.

$ gcc -I ../devil/include -L ../devil/lib/ simple.c -o simple -lIL -lILU -lILUT
$ cp ../devil/lib/*.so* .

I added an image (jpg) for testing.

$ LD_LIBRARY_PATH=. ./simple image.jpg

"Could not open file ... exit"

I ran the executable from a simple directory.

simple$ ls

image.jpg libIL.so.1.1.0 libILU.so.1.1.0 libILUT.so.1.1.0 libIL.so libILU.so libILUT.so libIL.so.1 libILU.so.1
libILUT.so.1 simple.c

? devIL, . .

- Ubuntu 12.10 64 dev opengl dev.

Uni System - Fedora 15 (?) 32. devIL .

libdevel-dev, .

opengl, devIL lib .

+5
1

, jpg jpg jpeg-?

+1

All Articles