[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fwd: [Mingw-cross-env-list] Error compiling source file including <s
From: |
Volker Grabsch |
Subject: |
Re: Fwd: [Mingw-cross-env-list] Error compiling source file including <string.h> |
Date: |
Tue, 12 Jan 2010 16:28:08 +0100 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Pierre-Henri Trivier <address@hidden> schrieb:
> The project is available on github ( git://github.com/phtrivier/ube.git ),
> but I'll try and reduce things if possible...
That isn't necessary. I already found some issues. I don't want to
go into details unless someone is really interested at that. In short:
* Don't use AM_PATH_SDL.
* Try to avoid AC_SEARCH_LIBS and AC_CHECK_LIBS.
* Use PKG_CHECK_MODULES wherever possible.
In your concrete case, you can check for SDL, SDL_image and SDL_mixer
via pkg-config. The only problem is SDL_ttf which doesn't provide a
pkg-config entry, so it has to be checked the "old way".
So I recommend to put into your configure.ac something along the lines:
PKG_CHECK_MODULES([SDL], [sdl >= 1.2.13], ...SUCCESS...,
...FAILURE...)
PKG_CHECK_MODULES([SDL_image], [SDL_image], ...SUCCESS...,
...FAILURE...)
PKG_CHECK_MODULES([SDL_mixer], [SDL_mixer], ...SUCCESS...,
...FAILURE...)
AC_CHECK_LIB(SDL_ttf, TTF_OpenFontRW, ...SUCCESS..., ...FAILURE...)
> * I am compiling with autotools, configuring with :
>
> configure --prefix --host=i686-pc-mingw32 --build=i686-pc-linux-gnu
It should be sufficient to do:
./configure --host=i686-pc-mingw32
Have a look at the tutorial "Step 5a" for more information.
http://mingw-cross-env.nongnu.org/#tutorial
Greets,
Volker
--
Volker Grabsch
---<<(())>>---
Administrator
NotJustHosting GbR