Where are the ILU and ILUT libraries after a successful build of DevIL for Ubuntu on ARM machine?

StackOverflow https://stackoverflow.com/questions/13160728

  •  23-07-2021
  •  | 
  •  

Pergunta

I am trying to port an application that makes use of the DevIL library to open and save images. The application was developed under Ubuntu 10.04 on a PC, where libdevil-dev and libdevil1c2 were installed automatically form the Software Center.

Now my new system is an ARM based embedded system running Ubuntu 11.10. Unfortunately I could not find DevIL in its Software Center. So I tried downloading the source code and build the package.

Following to the INSTALL file, I performed the following steps:

configure
make
make install

(with the sudo where required)

The build and install went fine, or so it seems. make chack also reported no errors.

Then, I tried building one on the examples supplied. Specifically, it was the OpenGL demo. But, when compiling the source file, using:

gcc -o gltest.e gltest.c -lIL -lILU -lILUT -lglut

I get the following linker error:

/usr/bin/ld: cannot find -lILU
/usr/bin/ld: cannot find -lILUT
collect2: ld returned 1 exit status

looking at /usr/local/lib, I see libIL.a libIL.la libIL.so libIL.so.1 libIL.so.1.1.0 but no sign for libILU or libILUT.

How can I make the installer install the ILU and ILUT libraries, and respective header files, in place?

UPDATE:

running configure again, it concluded with the following message:

configure: +----------------------------------------+
configure: \| IL library  Supported formats \|
configure: +----------------------------------------+-------+
configure:  BLP BMP DCX DDS DICOM WAD FITS GIF HDR ICNS ICON IFF ILBM IWI LIF MDL MP3 PCX PCD PIC PIX PNM PSD PSP PXR RAW ROT SGI SUN TEXTURE TGA TPL UTX VTF WAL WBMP WDP XPM
configure: +----------------------------------------+
configure: \| IL library External libraries \|
configure: +----------------------------------------+-------+
configure: Required libs:  OpenEXR
configure: +----------------------------------------+
configure: \|      ILU part disabled       \|
configure: +----------------------------------------+-------+
configure: Pass --enable-ILU option to the configure script if you want to build ILU
configure: +----------------------------------------+
configure: \|      ILUT part disabled      \|
configure: +----------------------------------------+-------+
configure: Pass --enable-ILUT option to the configure script if you want to build ILUT
configure: +----------------------------------------+
configure: \| Detected Machine Extensions  \|
configure: +----------------------------------------+-------+
configure: 
configure: +----------------------------------------+
configure: \|  Not building any examples   \|
configure: +----------------------------------------+-------+
configure: Pass --with-examples option to the configure script if you want to build examples.
configure: +----------------------------------------+

So it seems like ILU and ILUT parts are not being built. Passing the suggested arguments now solved this problem.

Foi útil?

Solução

To build the ILU and ILUT libraries, you need to add the arguments --enable-ILU and --enable-ILUT to the configure script:

$ ./configure --enable-ILU --enable-ILUT
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top