mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] Difficulty building project using mingw-cross


From: Volker Grabsch
Subject: Re: [Mingw-cross-env-list] Difficulty building project using mingw-cross-env
Date: Sat, 13 Feb 2010 04:44:12 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

Tony Theodore <address@hidden> schrieb:
> On 13 February 2010 05:00, David Bruce <address@hidden> wrote:
> >
> > I'm trying to switch to mingw-cross-env as the basis of my crossbuild
> > setup and have run into an obstacle.  Briefly, "./configure
> > --host=i686-pc-mingw32" seems to find the crossbuild gcc OK, but
> > subsequently fails at the first AC_CHECK_LIB test, saying it can't
> > find SDL_image.  [...]
> >
> > /usr/local/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.4.0/../../../../i686-pc-mingw32/lib/libSDL_image.a(IMG_tif.o):
> > In function `IMG_InitTIF':
> > /usr/local/mingw-cross-env/tmp-sdl_image/SDL_image-1.2.10/IMG_tif.c:107:
> > undefined reference to `_TIFFClientOpen'

The problem is that for static linking, you must explicitly list all
indirect dependencies (here: libtiff, because SDL_image requires libtiff
and other graphics libraries).

> which is achieved by passing the
> --with-sdl-prefix='$PREFIX/i686-pc-mingw32' to configure. However, it
> still fails with the same error (here at least).

I think the real problem is the usage of AC_CHECK_LIB, which is in
most cases (such as here) inappropriate. I recommend to use the
PKG_CONFIG_* macros instead.

Note, however, that there might be a bugfix needed in mingw-cross-env
to ensure that `i686-pc-mingw32-pkg-config  SDL_image  (--static) --libs`
really lists all needed libraries.

However, this is an indepdent problem, and solving that problem will
only help when the project uses PKG_CONFIG_* instead of AC_CHECK_LIB.


Greets,

    Volker

-- 
Volker Grabsch
---<<(())>>---
Administrator
NotJustHosting GbR




reply via email to

[Prev in Thread] Current Thread [Next in Thread]