Hello,
> I am trying to compile DevIL (openil.sourceforge.net) from sources. The first
> hurdle was finding working libpng and libjpeg binaries. Now that I have
> those,
> compilation fails at the last step.
>
> For those not familiar with DevIL, it has 3 parts: libIL, libILU and libILUT.
> It's a bit in the same vein as OpenGL, GLU and GLUT...
>
> Well, compilation fails when linking libILUT, which needs to link with libIL
> and
> libILU. I get the following message:
>
>
-------------------------------------------------------------------------------
> [...snip...]
>
> make[2]: Entering directory `/home/guayj/DevIL-1.6.8/src-ILUT/src'
> /bin/sh ../../libtool --tag=CC --mode=link gcc -g -O2 -msse -msse2 -Wall -g
> -O0
> -mno-cygwin -g -O2 -g -O2 -Wall -g -O0 -o libILUT.la -rpath
> /home/guayj/local_apps/lib -no-undefined ../../src-IL/src/libIL.la
> ../../src-ILU/src/libILU.la ilut_allegro.lo ilut_main.lo ilut_sdlsurface.lo
> ilut_states.lo ilut_internal.lo ilut_opengl.lo ilut_win32.lo ilut_directx.lo
> ilut_directx9.lo -lopengl32 -lglu32 -lgdi32
>
> *** Warning: This system can not link to static lib archive
> ../../src-IL/src/libIL.la.
> *** I have the capability to make that library automatically link in when
> *** you link to this library. But I can only do this if you have a
> *** shared version of the library, which you do not appear to have.
> libtool: link: warning: `/mingw/lib//libiconv.la' seems to be moved
>
> *** Warning: This system can not link to static lib archive
> ../../src-ILU/src/libILU.la.
> *** I have the capability to make that library automatically link in when
> *** you link to this library. But I can only do this if you have a
> *** shared version of the library, which you do not appear to have.
> libtool: link: warning: `/mingw/lib//libiconv.la' seems to be moved
>
> [...snip...]
>
-------------------------------------------------------------------------------
>
> This is followed by multiple linker "undefined reference to <function>"
> messages, where <function> is provided by libIL or libILU.
>
> I have seen messages on other mailing lists with similar error messages. They
> generally pointed to the lack of a "file" command in MinGW, which libtool
> needs, as the cause. However, I have already tried to work around this in two
> ways: I changed the libtool.m4 file so that it would use OBJDUMP instead of
> "file", and I installed the "file" mingwPORT package and restored libtool.m4
> to
> the default. None of those changed the result, even when running ./configure
> again after doing the mentioned steps.
>
> I have also seen other messages saying that MinGW had problems making shared
> libraries, but I really want this to be a shared lib because I want my MinGW
> build environment to be as similar as possible to my Linux build environment,
> so I hope this is not true.
>
> Does anyone have an idea as to what the cause for this error could be? Or if
> someone has DevIL binaries (preferably a recent version) for MinGW, that
> would
> be acceptable too. But I would like to solve this so that if I ever get the
> same problem building another package, I'll be able to fix it.
Does anyone have an idea about this? If it's an FAQ, please point me in the
right direction because I've searched a lot and haven't found anything.
Thanks,
J-S
--
______________________________________________________
Jean-Sebastien Guay jean-sebastien.guay@...
http://whitestar02.webhop.org/
|