Problem with cross compiling SDL_ttf

Hello,

I’m experimenting cross compiling.

I downloaded the cross compiler from

http://www.devolution.com/~slouken/SDL/Xmingw32/

Then I downloaded freetype for cross compil

http://www.devolution.com/~slouken/SDL/Xmingw32/lib/freetype-1.3.1-cross-bin.tar.gz

I installed it in the cross-compil directory.

Cross compiling SDL works fine, I’v now a nice
SDL.dll.

I’m now trying to cross compil SDL_ttf-1.2.2

But here things goes wrong. I ran cross-configure.sh
in the SDL_ttf dir and I get this :

checking for SDL - version >= 1.0.1… cross compiling; assumed OK… yes
checking for TT_Init_FreeType in -lttf… no

But libttf is in /usr/local/cross-tools/i386-mingw32msvc/lib/

May someone help me ?

            Franck.-- 

mailto:fguillaud at ivsweb.com

Franck Guillaud wrote:

Hello,

I’m experimenting cross compiling.

I downloaded the cross compiler from

http://www.devolution.com/~slouken/SDL/Xmingw32/

Then I downloaded freetype for cross compil

http://www.devolution.com/~slouken/SDL/Xmingw32/lib/freetype-1.3.1-cross-bin.tar.gz

I installed it in the cross-compil directory.

Cross compiling SDL works fine, I’v now a nice
SDL.dll.

I’m now trying to cross compil SDL_ttf-1.2.2

But here things goes wrong. I ran cross-configure.sh
in the SDL_ttf dir and I get this :

checking for SDL - version >= 1.0.1… cross compiling; assumed OK… yes
checking for TT_Init_FreeType in -lttf… no

But libttf is in /usr/local/cross-tools/i386-mingw32msvc/lib/

May someone help me ?

            Franck.

After a failed configure, you can look in config.log to find out what
exactly failed. In this case, configure is trying to compile a short
C source file which references the TT_Init_FreeType() function. Most
likely the function exists just fine in your lib, but something
else is broken which causes the compile to fail.

In the log you will see the compiler command line and any errors or
warnings that were produced. Those will (somehow) indicate what is
actually wrong.

-Ray