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

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

[Mingw-cross-env-list] sdl_ttf not detected by configure.ac because need


From: David Bruce
Subject: [Mingw-cross-env-list] sdl_ttf not detected by configure.ac because needs freetype
Date: Sun, 2 May 2010 12:57:59 -0500

Hi Volker,

If I build tuxtype using sdl_ttf rather than sdl_pango (i.e.
"./configure --without-sdlpango"), the build fails to detect sdl_ttf.
Upon looking in config.log, the problem is that the test program
generated by configure does not link to freetype.  As a test, I put
"LIBS=-lfreetype $LIBS" into tuxtype's configure.ac just before the
check for sdl_ttf and the build succeeds. I don't have a Windows
machine handy to see if the resultant program works right now.

So, basically, when I link tuxtype to sdl_ttf, tuxtype doesn't get
also linked to freetype.  At first glance, I don't see how this needs
to be specified within mingw-cross-env or I would try to create a
patch.

Thanks for any help,

David

Below are some details of the failed build:

>From configure.ac:

dnl We only use SDL_ttf if SDL_Pango not available:
--------------------------------------

if [test "x$with_sdlpango" = xno]; then
AC_CHECK_LIB([SDL_ttf],
             [TTF_Init],
             ,
             [AC_MSG_ERROR([SDL_ttf not found!
http://www.libsdl.org/projects/SDL_ttf])])
fi


>From config.log:

configure:8326: checking for TTF_Init in -lSDL_ttf
configure:8351: i686-pc-mingw32-gcc -o conftest.exe -g -O2
-D_GNU_SOURCE=1 -Dmain=SDL_main
-I/opt/mingw-cross-env/usr/i686-pc-mingw32/include/SDL
-D_GNU_SOURCE=1 -Dmain=SDL_main
-I/opt/mingw-cross-env/usr/i686-pc-mingw32/include/SDL
-I/opt/mingw-cross-env/usr/i686-pc-mingw32/include/libpng14
-D_GNU_SOURCE=1 -Dmain=SDL_main
-I/opt/mingw-cross-env/usr/i686-pc-mingw32/include/SDL
-I/opt/mingw-cross-env/usr/i686-pc-mingw32/include
-I/opt/mingw-cross-env/usr/i686-pc-mingw32/include
-L/opt/mingw-cross-env/usr/i686-pc-mingw32/lib conftest.c -lSDL_ttf
-mwindows -L/opt/mingw-cross-env/usr/i686-pc-mingw32/lib -lmingw32
-lSDLmain -lSDL -liconv -lm -luser32 -lgdi32 -lwinmm -ldxguid
-mwindows -L/opt/mingw-cross-env/usr/i686-pc-mingw32/lib -lSDL_image
-ltiff -ljpeg -lmingw32 -lSDLmain -lSDL -liconv -lm -luser32 -lgdi32
-lwinmm -ldxguid -lpng14 -lz   -mwindows
-L/opt/mingw-cross-env/usr/i686-pc-mingw32/lib -lSDL_mixer -lmikmod
-lpthread -lws2_32 -lsmpeg -lstdc++ -lmingw32 -lSDLmain -lSDL -liconv
-luser32 -lgdi32 -lwinmm -ldxguid -lvorbisfile -lvorbis -lm -logg
>&5
/opt/mingw-cross-env/usr/i686-pc-mingw32/lib/libSDL_ttf.a(SDL_ttf.o):
In function `Load_Glyph':
/opt/mingw-cross-env/tmp-sdl_ttf/SDL_ttf-2.0.9/SDL_ttf.c:427:
undefined reference to `_FT_Load_Glyph'
/opt/mingw-cross-env/tmp-sdl_ttf/SDL_ttf-2.0.9/SDL_ttf.c:493:
undefined reference to `_FT_Render_Glyph'
/opt/mingw-cross-env/tmp-sdl_ttf/SDL_ttf-2.0.9/SDL_ttf.c:425:
undefined reference to `_FT_Get_Char_Index'
/opt/mingw-cross-env/tmp-sdl_ttf/SDL_ttf-2.0.9/SDL_ttf.c:495:
undefined reference to `_FT_Render_Glyph'
/opt/mingw-cross-env/tmp-sdl_ttf/SDL_ttf-2.0.9/SDL_ttf.c:488:
undefined reference to `_FT_Outline_Transform'
/opt/mingw-cross-env/usr/i686-pc-mingw32/lib/libSDL_ttf.a(SDL_ttf.o):
In function `TTF_Init':
/opt/mingw-cross-env/tmp-sdl_ttf/SDL_ttf-2.0.9/SDL_ttf.c:203:
undefined reference to `_FT_Init_FreeType'
/opt/mingw-cross-env/usr/i686-pc-mingw32/lib/libSDL_ttf.a(SDL_ttf.o):
In function `TTF_CloseFont':
/opt/mingw-cross-env/tmp-sdl_ttf/SDL_ttf-2.0.9/SDL_ttf.c:725:
undefined reference to `_FT_Done_Face'
/opt/mingw-cross-env/usr/i686-pc-mingw32/lib/libSDL_ttf.a(SDL_ttf.o):
In function `TTF_OpenFontIndexRW':
/opt/mingw-cross-env/tmp-sdl_ttf/SDL_ttf-2.0.9/SDL_ttf.c:281:
undefined reference to `_FT_Open_Face'
/opt/mingw-cross-env/tmp-sdl_ttf/SDL_ttf-2.0.9/SDL_ttf.c:317:
undefined reference to `_FT_Set_Pixel_Sizes'
/opt/mingw-cross-env/tmp-sdl_ttf/SDL_ttf-2.0.9/SDL_ttf.c:293:
undefined reference to `_FT_Set_Char_Size'
/opt/mingw-cross-env/usr/i686-pc-mingw32/lib/libSDL_ttf.a(SDL_ttf.o):
In function `TTF_SizeUNICODE':
/opt/mingw-cross-env/tmp-sdl_ttf/SDL_ttf-2.0.9/SDL_ttf.c:958:
undefined reference to `_FT_Get_Kerning'
/opt/mingw-cross-env/usr/i686-pc-mingw32/lib/libSDL_ttf.a(SDL_ttf.o):
In function `TTF_RenderUNICODE_Solid':
/opt/mingw-cross-env/tmp-sdl_ttf/SDL_ttf-2.0.9/SDL_ttf.c:1166:
undefined reference to `_FT_Get_Kerning'
/opt/mingw-cross-env/usr/i686-pc-mingw32/lib/libSDL_ttf.a(SDL_ttf.o):
In function `TTF_RenderUNICODE_Shaded':
/opt/mingw-cross-env/tmp-sdl_ttf/SDL_ttf-2.0.9/SDL_ttf.c:1427:
undefined reference to `_FT_Get_Kerning'
/opt/mingw-cross-env/usr/i686-pc-mingw32/lib/libSDL_ttf.a(SDL_ttf.o):
In function `TTF_RenderUNICODE_Blended':
/opt/mingw-cross-env/tmp-sdl_ttf/SDL_ttf-2.0.9/SDL_ttf.c:1677:
undefined reference to `_FT_Get_Kerning'
/opt/mingw-cross-env/usr/i686-pc-mingw32/lib/libSDL_ttf.a(SDL_ttf.o):
In function `TTF_Quit':
/opt/mingw-cross-env/tmp-sdl_ttf/SDL_ttf-2.0.9/SDL_ttf.c:1806:
undefined reference to `_FT_Done_FreeType'
collect2: ld returned 1 exit status




reply via email to

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