AnsweredAssumed Answered

Buildroot 2013.11; Problem building SDL_ttf

Question asked by sfe on Apr 24, 2014
Latest reply on Apr 28, 2014 by sfe

Hello!

 

With a buildroot 2013.11 I try to build myself the SDL libraries for a BF537.

Everything is built except the sdl_ttf due to missing png_... functions during linking.

 

The output is a bit messed up, so only a few fragments:

 

/bin/sh ./libtool --tag=CC   --mode=link /home/sebastianf/Storage/builtroot/out/host/usr/bin/bfin-buildroot-linux-uclibc-gcc  -pipe -Os  -I/home/sebastianf/Storage/builtroot/out/host/usr/bfin-buildroot-linux-uclibc/sysroot/usr/include/freetype2 -I/home/sebastianf/Storage/builtroot/out/host/usr/bfin-buildroot-linux-uclibc/sysroot/usr/include -I/home/sebastianf/Storage/builtroot/out/host/usr/bfin-buildroot-linux-uclibc/sysroot/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -L/home/sebastianf/Storage/builtroot/out/host/usr/bfin-buildroot-linux-uclibc/sysroot/usr/lib -o showfont showfont.o libSDL_ttf.la -L/home/sebastianf/Storage/builtroot/out/host/usr/bfin-buildroot-linux-uclibc/sysroot/usr/lib -lfreetype -lpng16 -lz -L/home/sebastianf/Storage/builtroot/out/host/usr/bfin-buildroot-linux-uclibc/sysroot/usr/lib -lSDL -lpthread

 

/bin/sh ./libtool --tag=CC   --mode=link /home/sebastianf/Storage/builtroot/out/host/usr/bin/bfin-buildroot-linux-uclibc-gcc  -pipe -Os  -I/home/sebastianf/Storage/builtroot/out/host/usr/bfin-buildroot-linux-uclibc/sysroot/usr/include/freetype2 -I/home/sebastianf/Storage/builtroot/out/host/usr/bfin-buildroot-linux-uclibc/sysroot/usr/include -I/home/sebastianf/Storage/builtroot/out/host/usr/bfin-buildroot-linux-uclibc/sysroot/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -L/home/sebastianf/Storage/builtroot/out/host/usr/bfin-buildroot-linux-uclibc/sysroot/usr/lib -o glfont glfont.o libSDL_ttf.la  -lm -L/home/sebastianf/Storage/builtroot/out/host/usr/bfin-buildroot-linux-uclibc/sysroot/usr/lib -lfreetype -lpng16 -lz -L/home/sebastianf/Storage/builtroot/out/host/usr/bfin-buildroot-linux-uclibc/sysroot/usr/lib -lSDL -lpthread

...

/home/sebastianf/Storage/builtroot/out/host/usr/bfin-buildroot-linux-uclibc/sysroot/usr/lib/libfreetype.so: undefined reference to `_png_read_image'

(serveral lines like this)

...

collect2: ld returned 1 exit status

make[1]: *** [glfont] Error 1

make[1]: *** Waiting for unfinished jobs....

make[1]: *** [showfont] Error 1

make[1]: Leaving directory `/home/sebastianf/Storage/builtroot/out/build/sdl_ttf-2.0.11'

make: *** [/home/sebastianf/Storage/builtroot/out/build/sdl_ttf-2.0.11/.stamp_built] Error 2

 

The libraries and headers found in the calls are present. Rebuilding freetype does not change anything.

I tried "make clean" or "make freetype-rebuild;make sdl_ttf-rebuild" or "make sdl_ttf-reconfigure" and selveral others in differnet combinations to no effect.

 

My .config file is attached.

 

Do you have any pointers? Does the sdl_ttf build on someone else's system?

 

Thanks and best regards

Sebastian

Attachments

Outcomes