2009-07-15 09:34:22     Help Building SDL or Qt for BF-548

Document created by Aaronwu Employee on Aug 16, 2013
Version 1Show Document
  • View in full screen mode

2009-07-15 09:34:22     Help Building SDL or Qt for BF-548

David Kasper (UNITED STATES)

Message: 77371   

 

I recently purchased the BF-548 EZKIT and am trying to demonstrate the SDL and Qt examples.  However, I get build errors when following instructions in the online docs.  I installed the following:

 

uclinux-dist-trunk-svn.src.tar.bz2

 

blackfin-toolchain-snapshot-linux-uclibc-SVN-20090707.i386

 

blackfin-toolchain-snapshot-uclinux-SVN-20090707.i386

 

I started off by configuring defaults but had to disable busybox and a few other items just to get a baseline build.  Per the instructions I enabled "SDL Examples" but got an error on flac.  I tried enabling FDPIC and disabling FLAT but no luck.  Next I disabled tone and performed make clean and got an error on fork.   Is this an issue with the toolchain?  Anyway, I abandoned SDL and tried Qt but got the following errors.  Any help would be greatly appreciated.  Let me know if I should use an older version of the tools or uclinux.

 

Thanks,

 

David Kasper

 

/home/kasper/work/uclinux-dist-trunk-svn-8471/lib/qt-embedded/qt-embedded-linux-opensource-src-4.5.1/src/gui/painting/qpaintengine_raster.cpp: In member function âvirtual void QRasterPaintEngine::drawRects(const QRect*, int)â:

 

/home/kasper/work/uclinux-dist-trunk-svn-8471/lib/qt-embedded/qt-embedded-linux-opensource-src-4.5.1/src/gui/painting/qpaintengine_raster.cpp:1499: warning: dereferencing type-punned pointer will break strict-aliasing rules

 

/home/kasper/work/uclinux-dist-trunk-svn-8471/lib/qt-embedded/qt-embedded-linux-opensource-src-4.5.1/src/gui/painting/qpaintengine_raster.cpp: In member function âvirtual void QRasterPaintEngine::drawRects(const QRectF*, int)â:

 

/home/kasper/work/uclinux-dist-trunk-svn-8471/lib/qt-embedded/qt-embedded-linux-opensource-src-4.5.1/src/gui/painting/qpaintengine_raster.cpp:1557: warning: dereferencing type-punned pointer will break strict-aliasing rules

 

/home/kasper/work/uclinux-dist-trunk-svn-8471/lib/qt-embedded/qt-embedded-linux-opensource-src-4.5.1/src/gui/painting/qpaintengine_raster.cpp: In member function âvirtual void QRasterPaintEngine::drawImage(const QRectF&, const QImage&, const QRectF&, Qt::ImageConversionFlags)â:

 

/home/kasper/work/uclinux-dist-trunk-svn-8471/lib/qt-embedded/qt-embedded-linux-opensource-src-4.5.1/src/gui/painting/qpaintengine_raster.cpp:2510: warning: passing âqrealâ for argument 1 to âQRgb QImage::pixel(int, int) constâ

 

/home/kasper/work/uclinux-dist-trunk-svn-8471/lib/qt-embedded/qt-embedded-linux-opensource-src-4.5.1/src/gui/painting/qpaintengine_raster.cpp:2510: warning: passing âqrealâ for argument 2 to âQRgb QImage::pixel(int, int) constâ

 

/home/kasper/work/uclinux-dist-trunk-svn-8471/lib/qt-embedded/qt-embedded-linux-opensource-src-4.5.1/src/gui/painting/qpaintengine_raster.cpp: In function âvoid drawLine_midpoint_dashed_i(int, int, int, int, QPen*, void (*)(int, const QT_FT_Span*, void*), QSpanData*, LineDrawMode, const QIntRect&, int*)â:

 

/home/kasper/work/uclinux-dist-trunk-svn-8471/lib/qt-embedded/qt-embedded-linux-opensource-src-4.5.1/src/gui/painting/qpaintengine_raster.cpp:5481: warning: converting to âintâ from âdoubleâ

 

make[5]: *** [.obj/release-shared-emb-bfin/qpaintengine_raster.o] Error 1

 

make[5]: Leaving directory `/home/kasper/work/uclinux-dist-trunk-svn-8471/lib/qt-embedded/build-qt-embedded-linux-opensource-src-4.5.1/src/gui'

 

make[4]: *** [sub-gui-install_subtargets-ordered] Error 2

 

make[4]: Leaving directory `/home/kasper/work/uclinux-dist-trunk-svn-8471/lib/qt-embedded/build-qt-embedded-linux-opensource-src-4.5.1'

 

make[3]: *** [all] Error 2

 

make[3]: Leaving directory `/home/kasper/work/uclinux-dist-trunk-svn-8471/lib/qt-embedded'

 

make[2]: *** [qt-embedded] Error 2

 

make[2]: Leaving directory `/home/kasper/work/uclinux-dist-trunk-svn-8471/lib'

 

make[1]: *** [all] Error 2

 

make[1]: Leaving directory `/home/kasper/work/uclinux-dist-trunk-svn-8471/lib'

 

make: *** [subdirs] Error 1

 

[kasper@localhost uclinux-dist-trunk-svn-8471]$

QuoteReplyEditDelete

 

 

2009-07-15 09:42:30     Re: Help Building SDL or Qt for BF-548

Robin Getz (UNITED STATES)

Message: 77373   

 

David:

 

Use the 2009R1 release branch - not trunk. You should have no issues with that...

 

-Robin

QuoteReplyEditDelete

 

 

2009-07-17 11:18:06     Re: Help Building SDL or Qt for BF-548

David Kasper (UNITED STATES)

Message: 77566   

 

Robin,

 

FYI, I checked-out the 2009R1 toolchain, uClinux selected BF-548 and selected defaults.  I got an error regarding busybox so I tried de-selecting that.  Then I got a warning regarding fork and error during strace.  I can try disabling strace next.  Output from both builds is below.

 

Dave

 

Busybox Error >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

 

 

 

  CC      libbb/xatonum.o

 

  CC      libbb/xconnect.o

 

  CC      libbb/xfunc_die.o

 

  CC      libbb/xfuncs.o

 

  CC      libbb/xfuncs_printf.o

 

  CC      libbb/xgetcwd.o

 

  CC      libbb/xgethostbyname.o

 

  CC      libbb/xreadlink.o

 

  CC      libbb/xrealloc_vector.o

 

  CC      libbb/xregcomp.o

 

  AR      libbb/lib.a

 

  LINK    busybox_unstripped

 

Trying libraries: crypt m

 

Library crypt is not needed, excluding it

 

Library m is not needed, excluding it

 

Final link with: <none>

 

make[4]: Leaving directory `/home/kasper/work/svn/2009R1/uClinux-dist/user/busybox/build-busybox-1.13.4'

 

make[3]: Leaving directory `/home/kasper/work/svn/2009R1/uClinux-dist/user/busybox'

 

make[2]: Leaving directory `/home/kasper/work/svn/2009R1/uClinux-dist/user'

 

make[1]: *** [all] Error 2

 

make[1]: Leaving directory `/home/kasper/work/svn/2009R1/uClinux-dist/user'

 

make: *** [subdirs] Error 1

 

[kasper@localhost uClinux-dist]$

 

 

 

Strace Error,  strace section >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

 

 

 

bfin-uclinux-gcc -Wall -pipe -Wall -g -O2      -mcpu=bf538-0.4  -Wl,-elf2flt    -mcpu=bf538-0.4 -o strace strace.o syscall.o count.o util.o desc.o file.o ipc.o io.o ioctl.o mem.o net.o process.o bjm.o quota.o resource.o signal.o sock.o system.o term.o time.o proc.o scsi.o stream.o

 

strace.o: In function `strace_popen':

 

../strace-4.5.18/strace.c:317: warning: fork: this function is not implemented on no-mmu systems

 

make[6]: Entering directory `/home/kasper/work/svn/2009R1/uClinux-dist/user/strace/build-strace-4.5.18'

 

test -z "/usr/bin" || /bin/mkdir -p "/home/kasper/work/svn/2009R1/uClinux-dist/staging/usr/bin"

 

test -z "/usr/bin" || /bin/mkdir -p "/home/kasper/work/svn/2009R1/uClinux-dist/staging/usr/bin"

 

test -z "/usr/share/man/man1" || /bin/mkdir -p "/home/kasper/work/svn/2009R1/uClinux-dist/staging/usr/share/man/man1"

 

/usr/bin/install -c '../strace-4.5.18/strace-graph' '/home/kasper/work/svn/2009R1/uClinux-dist/staging/usr/bin/strace-graph'

 

  /usr/bin/install -c 'strace' '/home/kasper/work/svn/2009R1/uClinux-dist/staging/usr/bin/strace'

 

/usr/bin/install -c -m 644 '../strace-4.5.18/strace.1' '/home/kasper/work/svn/2009R1/uClinux-dist/staging/usr/share/man/man1/strace.1'

 

make[6]: Leaving directory `/home/kasper/work/svn/2009R1/uClinux-dist/user/strace/build-strace-4.5.18'

 

make[5]: Leaving directory `/home/kasper/work/svn/2009R1/uClinux-dist/user/strace/build-strace-4.5.18'

 

make[4]: Leaving directory `/home/kasper/work/svn/2009R1/uClinux-dist/user/strace/build-strace-4.5.18'

 

make post-build

 

make[4]: Entering directory `/home/kasper/work/svn/2009R1/uClinux-dist/user/strace'

 

make[4]: Nothing to be done for `post-build'.

 

make[4]: Leaving directory `/home/kasper/work/svn/2009R1/uClinux-dist/user/strace'

 

/home/kasper/work/svn/2009R1/uClinux-dist/tools/cross-fix-root

 

make[3]: Leaving directory `/home/kasper/work/svn/2009R1/uClinux-dist/user/strace'

 

make[2]: Leaving directory `/home/kasper/work/svn/2009R1/uClinux-dist/user'

 

make[1]: *** [all] Error 2

 

make[1]: Leaving directory `/home/kasper/work/svn/2009R1/uClinux-dist/user'

 

make: *** [subdirs] Error 1

 

[kasper@localhost uClinux-dist]$

QuoteReplyEditDelete

 

 

2009-07-17 12:02:11     Re: Help Building SDL or Qt for BF-548

Robin Getz (UNITED STATES)

Message: 77569   

 

David:

 

can do you a "make single" - what you posted is a warning - it isn't suppost to be fatal (unless you are compiling with -Werror - which it does not look like you are doing.)

QuoteReplyEditDelete

 

 

2009-07-18 02:00:48     Re: Help Building SDL or Qt for BF-548

David Kasper (UNITED STATES)

Message: 77597   

 

Robin,

 

During compile of SDL I get an error regarding ftheader.h not present.  Any Suggestions?

 

Thanks,

 

Dave

 

checking for X... disabled

checking for OpenGL support... no

configure: creating ./config.status

config.status: creating Makefile

config.status: creating SDL_ttf.spec

config.status: executing depfiles commands

make -C build-SDL_ttf-2.0.9

make[5]: Entering directory `/home/kasper/work/svn/2009R1/uClinux-dist/lib/SDL_ttf/build-SDL_ttf-2.0.9'

/bin/sh ./libtool --tag=CC --mode=compile bfin-linux-uclibc-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"SDL_ttf\" -DVERSION=\"2.0.9\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DX_DISPLAY_MISSING=1  -I. -I../SDL_ttf-2.0.9   -DEMBED -D__uClinux__ -I/home/kasper/work/svn/2009R1/uClinux-dist  -mcpu=bf538-0.4  -pipe -Wall -g -O2      -mcpu=bf538-0.4 -I/freetype2 -I -I/home/kasper/work/svn/2009R1/uClinux-dist/staging/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o SDL_ttf.lo ../SDL_ttf-2.0.9/SDL_ttf.c

mkdir .libs

bfin-linux-uclibc-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"SDL_ttf\" -DVERSION=\"2.0.9\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DX_DISPLAY_MISSING=1 -I. -I../SDL_ttf-2.0.9 -DEMBED -D__uClinux__ -I/home/kasper/work/svn/2009R1/uClinux-dist -mcpu=bf538-0.4 -pipe -Wall -g -O2 -mcpu=bf538-0.4 -I/freetype2 -I -I/home/kasper/work/svn/2009R1/uClinux-dist/staging/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c ../SDL_ttf-2.0.9/SDL_ttf.c  -fPIC -DPIC -o .libs/SDL_ttf.o

In file included from ../SDL_ttf-2.0.9/SDL_ttf.c:42:

/home/kasper/work/svn/2009R1/uClinux-dist/staging/usr/include/ft2build.h:56:38: error: freetype/config/ftheader.h: No such file or directory

../SDL_ttf-2.0.9/SDL_ttf.c:43:10: error: #include expects "FILENAME" or <FILENAME>

../SDL_ttf-2.0.9/SDL_ttf.c:44:10: error: #include expects "FILENAME" or <FILENAME>

../SDL_ttf-2.0.9/SDL_ttf.c:45:10: error: #include expects "FILENAME" or <FILENAME>

../SDL_ttf-2.0.9/SDL_ttf.c:47:17: error: SDL.h: No such file or directory

../SDL_ttf-2.0.9/SDL_ttf.c:48:24: error: SDL_endian.h: No such file or directory

In file included from ../SDL_ttf-2.0.9/SDL_ttf.c:49:

../SDL_ttf-2.0.9/SDL_ttf.h:34:24: error: begin_code.h: No such file or directory

In file included from ../SDL_ttf-2.0.9/SDL_ttf.c:49:

../SDL_ttf-2.0.9/SDL_ttf.h:67: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'const'

../SDL_ttf-2.0.9/SDL_ttf.h:77: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'

../SDL_ttf-2.0.9/SDL_ttf.h:83: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'

../SDL_ttf-2.0.9/SDL_ttf.h:89: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'TTF_Font'

../SDL_ttf-2.0.9/SDL_ttf.h:90: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'TTF_Font'

../SDL_ttf-2.0.9/SDL_ttf.h:91: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'TTF_Font'

../SDL_ttf-2.0.9/SDL_ttf.h:92: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'TTF_Font'

../SDL_ttf-2.0.9/SDL_ttf.h:102: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'

../SDL_ttf-2.0.9/SDL_ttf.h:103: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'

../SDL_ttf-2.0.9/SDL_ttf.h:106: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'

../SDL_ttf-2.0.9/SDL_ttf.h:111: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'

../SDL_ttf-2.0.9/SDL_ttf.h:116: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'

../SDL_ttf-2.0.9/SDL_ttf.h:119: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'

../SDL_ttf-2.0.9/SDL_ttf.h:122: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'long'

../SDL_ttf-2.0.9/SDL_ttf.h:125: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'

../SDL_ttf-2.0.9/SDL_ttf.h:126: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'char'

../SDL_ttf-2.0.9/SDL_ttf.h:127: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'char'

../SDL_ttf-2.0.9/SDL_ttf.h:133: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'

../SDL_ttf-2.0.9/SDL_ttf.h:138: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'

../SDL_ttf-2.0.9/SDL_ttf.h:139: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'

../SDL_ttf-2.0.9/SDL_ttf.h:140: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'

../SDL_ttf-2.0.9/SDL_ttf.h:148: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'SDL_Surface'

../SDL_ttf-2.0.9/SDL_ttf.h:150: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'SDL_Surface'

../SDL_ttf-2.0.9/SDL_ttf.h:152: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'SDL_Surface'

../SDL_ttf-2.0.9/SDL_ttf.h:162: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'SDL_Surface'

../SDL_ttf-2.0.9/SDL_ttf.h:170: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'SDL_Surface'

../SDL_ttf-2.0.9/SDL_ttf.h:172: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'SDL_Surface'

../SDL_ttf-2.0.9/SDL_ttf.h:174: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'SDL_Surface'

../SDL_ttf-2.0.9/SDL_ttf.h:184: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'SDL_Surface'

../SDL_ttf-2.0.9/SDL_ttf.h:191: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'SDL_Surface'

../SDL_ttf-2.0.9/SDL_ttf.h:193: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'SDL_Surface'

../SDL_ttf-2.0.9/SDL_ttf.h:195: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'SDL_Surface'

../SDL_ttf-2.0.9/SDL_ttf.h:204: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'SDL_Surface'

../SDL_ttf-2.0.9/SDL_ttf.h:216: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'

../SDL_ttf-2.0.9/SDL_ttf.h:219: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'

../SDL_ttf-2.0.9/SDL_ttf.h:222: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'

../SDL_ttf-2.0.9/SDL_ttf.h:232:24: error: close_code.h: No such file or directory

../SDL_ttf-2.0.9/SDL_ttf.c:67: error: expected specifier-qualifier-list before 'FT_UInt'

../SDL_ttf-2.0.9/SDL_ttf.c:82: error: expected specifier-qualifier-list before 'FT_Face'

../SDL_ttf-2.0.9/SDL_ttf.c:116: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'library'

../SDL_ttf-2.0.9/SDL_ttf.c:121: warning: type defaults to 'int' in declaration of 'Uint16'

../SDL_ttf-2.0.9/SDL_ttf.c:121: error: expected ';', ',' or ')' before '*' token

../SDL_ttf-2.0.9/SDL_ttf.c:129: error: expected ')' before '*' token

../SDL_ttf-2.0.9/SDL_ttf.c:149: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

../SDL_ttf-2.0.9/SDL_ttf.c:165: error: expected declaration specifiers or '...' before 'FT_Error'

../SDL_ttf-2.0.9/SDL_ttf.c: In function 'TTF_SetFTError':

../SDL_ttf-2.0.9/SDL_ttf.c:194: warning: implicit declaration of function 'SDL_SetError'

../SDL_ttf-2.0.9/SDL_ttf.c: In function 'TTF_Init':

../SDL_ttf-2.0.9/SDL_ttf.c:203: error: 'FT_Error' undeclared (first use in this function)

../SDL_ttf-2.0.9/SDL_ttf.c:203: error: (Each undeclared identifier is reported only once

../SDL_ttf-2.0.9/SDL_ttf.c:203: error: for each function it appears in.)

../SDL_ttf-2.0.9/SDL_ttf.c:203: error: expected ';' before 'error'

../SDL_ttf-2.0.9/SDL_ttf.c:204: error: 'error' undeclared (first use in this function)

../SDL_ttf-2.0.9/SDL_ttf.c:205: error: too many arguments to function 'TTF_SetFTError'

../SDL_ttf-2.0.9/SDL_ttf.c: At top level:

../SDL_ttf-2.0.9/SDL_ttf.c:216: error: expected ')' before 'stream'

../SDL_ttf-2.0.9/SDL_ttf.c:232: error: expected ')' before '*' token

../SDL_ttf-2.0.9/SDL_ttf.c:357: error: expected ')' before '*' token

../SDL_ttf-2.0.9/SDL_ttf.c: In function 'TTF_OpenFontIndex':

../SDL_ttf-2.0.9/SDL_ttf.c:364: error: 'SDL_RWops' undeclared (first use in this function)

../SDL_ttf-2.0.9/SDL_ttf.c:364: error: 'rw' undeclared (first use in this function)

../SDL_ttf-2.0.9/SDL_ttf.c:364: warning: implicit declaration of function 'SDL_RWFromFile'

../SDL_ttf-2.0.9/SDL_ttf.c:366: warning: implicit declaration of function 'SDL_GetError'

../SDL_ttf-2.0.9/SDL_ttf.c:369: warning: implicit declaration of function 'TTF_OpenFontIndexRW'

../SDL_ttf-2.0.9/SDL_ttf.c:369: warning: return makes pointer from integer without a cast

../SDL_ttf-2.0.9/SDL_ttf.c: In function 'Flush_Glyph':

../SDL_ttf-2.0.9/SDL_ttf.c:380: error: 'c_glyph' has no member named 'index'

../SDL_ttf-2.0.9/SDL_ttf.c:381: error: 'c_glyph' has no member named 'bitmap'

../SDL_ttf-2.0.9/SDL_ttf.c:382: error: 'c_glyph' has no member named 'bitmap'

../SDL_ttf-2.0.9/SDL_ttf.c:383: error: 'c_glyph' has no member named 'bitmap'

../SDL_ttf-2.0.9/SDL_ttf.c:385: error: 'c_glyph' has no member named 'pixmap'

../SDL_ttf-2.0.9/SDL_ttf.c:386: error: 'c_glyph' has no member named 'pixmap'

../SDL_ttf-2.0.9/SDL_ttf.c:387: error: 'c_glyph' has no member named 'pixmap'

../SDL_ttf-2.0.9/SDL_ttf.c:389: error: 'c_glyph' has no member named 'cached'

../SDL_ttf-2.0.9/SDL_ttf.c: In function 'Flush_Cache':

../SDL_ttf-2.0.9/SDL_ttf.c:395: error: 'TTF_Font' has no member named 'cache'

../SDL_ttf-2.0.9/SDL_ttf.c:395: error: 'TTF_Font' has no member named 'cache'

../SDL_ttf-2.0.9/SDL_ttf.c:398: error: 'TTF_Font' has no member named 'cache'

../SDL_ttf-2.0.9/SDL_ttf.c:399: error: 'TTF_Font' has no member named 'cache'

../SDL_ttf-2.0.9/SDL_ttf.c:403: error: 'TTF_Font' has no member named 'scratch'

../SDL_ttf-2.0.9/SDL_ttf.c:404: error: 'TTF_Font' has no member named 'scratch'

../SDL_ttf-2.0.9/SDL_ttf.c: At top level:

../SDL_ttf-2.0.9/SDL_ttf.c:409: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Load_Glyph'

../SDL_ttf-2.0.9/SDL_ttf.c:702: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Find_Glyph'

../SDL_ttf-2.0.9/SDL_ttf.c: In function 'TTF_CloseFont':

../SDL_ttf-2.0.9/SDL_ttf.c:724: error: 'TTF_Font' has no member named 'face'

../SDL_ttf-2.0.9/SDL_ttf.c:725: warning: implicit declaration of function 'FT_Done_Face'

../SDL_ttf-2.0.9/SDL_ttf.c:725: error: 'TTF_Font' has no member named 'face'

../SDL_ttf-2.0.9/SDL_ttf.c:727: error: 'TTF_Font' has no member named 'args'

../SDL_ttf-2.0.9/SDL_ttf.c:728: error: 'TTF_Font' has no member named 'args'

../SDL_ttf-2.0.9/SDL_ttf.c:730: error: 'TTF_Font' has no member named 'freesrc'

../SDL_ttf-2.0.9/SDL_ttf.c:731: warning: implicit declaration of function 'SDL_RWclose'

../SDL_ttf-2.0.9/SDL_ttf.c:731: error: 'TTF_Font' has no member named 'src'

../SDL_ttf-2.0.9/SDL_ttf.c: At top level:

../SDL_ttf-2.0.9/SDL_ttf.c:737: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

../SDL_ttf-2.0.9/SDL_ttf.c:749: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

../SDL_ttf-2.0.9/SDL_ttf.c: In function 'TTF_FontHeight':

../SDL_ttf-2.0.9/SDL_ttf.c:780: error: 'TTF_Font' has no member named 'height'

../SDL_ttf-2.0.9/SDL_ttf.c: In function 'TTF_FontAscent':

../SDL_ttf-2.0.9/SDL_ttf.c:785: error: 'TTF_Font' has no member named 'ascent'

../SDL_ttf-2.0.9/SDL_ttf.c: In function 'TTF_FontDescent':

../SDL_ttf-2.0.9/SDL_ttf.c:790: error: 'TTF_Font' has no member named 'descent'

../SDL_ttf-2.0.9/SDL_ttf.c: In function 'TTF_FontLineSkip':

../SDL_ttf-2.0.9/SDL_ttf.c:795: error: 'TTF_Font' has no member named 'lineskip'

../SDL_ttf-2.0.9/SDL_ttf.c: In function 'TTF_FontFaces':

../SDL_ttf-2.0.9/SDL_ttf.c:800: error: 'TTF_Font' has no member named 'face'

../SDL_ttf-2.0.9/SDL_ttf.c: In function 'TTF_FontFaceIsFixedWidth':

../SDL_ttf-2.0.9/SDL_ttf.c:805: warning: implicit declaration of function 'FT_IS_FIXED_WIDTH'

../SDL_ttf-2.0.9/SDL_ttf.c:805: error: 'TTF_Font' has no member named 'face'

../SDL_ttf-2.0.9/SDL_ttf.c: In function 'TTF_FontFaceFamilyName':

../SDL_ttf-2.0.9/SDL_ttf.c:810: error: 'TTF_Font' has no member named 'face'

../SDL_ttf-2.0.9/SDL_ttf.c: In function 'TTF_FontFaceStyleName':

../SDL_ttf-2.0.9/SDL_ttf.c:815: error: 'TTF_Font' has no member named 'face'

../SDL_ttf-2.0.9/SDL_ttf.c: At top level:

../SDL_ttf-2.0.9/SDL_ttf.c:818: error: expected declaration specifiers or '...' before 'Uint16'

../SDL_ttf-2.0.9/SDL_ttf.c: In function 'TTF_GlyphMetrics':

../SDL_ttf-2.0.9/SDL_ttf.c:821: error: 'FT_Error' undeclared (first use in this function)

../SDL_ttf-2.0.9/SDL_ttf.c:821: error: expected ';' before 'error'

../SDL_ttf-2.0.9/SDL_ttf.c:823: error: 'error' undeclared (first use in this function)

../SDL_ttf-2.0.9/SDL_ttf.c:823: warning: implicit declaration of function 'Find_Glyph'

../SDL_ttf-2.0.9/SDL_ttf.c:823: error: 'ch' undeclared (first use in this function)

../SDL_ttf-2.0.9/SDL_ttf.c:825: error: too many arguments to function 'TTF_SetFTError'

../SDL_ttf-2.0.9/SDL_ttf.c:830: error: 'TTF_Font' has no member named 'current'

../SDL_ttf-2.0.9/SDL_ttf.c:833: error: 'TTF_Font' has no member named 'current'

../SDL_ttf-2.0.9/SDL_ttf.c:834: error: 'TTF_Font' has no member named 'style'

../SDL_ttf-2.0.9/SDL_ttf.c:835: error: 'TTF_Font' has no member named 'glyph_overhang'

../SDL_ttf-2.0.9/SDL_ttf.c:839: error: 'TTF_Font' has no member named 'current'

../SDL_ttf-2.0.9/SDL_ttf.c:842: error: 'TTF_Font' has no member named 'current'

../SDL_ttf-2.0.9/SDL_ttf.c:845: error: 'TTF_Font' has no member named 'current'

../SDL_ttf-2.0.9/SDL_ttf.c:846: error: 'TTF_Font' has no member named 'style'

../SDL_ttf-2.0.9/SDL_ttf.c:847: error: 'TTF_Font' has no member named 'glyph_overhang'

../SDL_ttf-2.0.9/SDL_ttf.c: In function 'TTF_SizeText':

../SDL_ttf-2.0.9/SDL_ttf.c:855: error: 'Uint16' undeclared (first use in this function)

../SDL_ttf-2.0.9/SDL_ttf.c:855: error: 'unicode_text' undeclared (first use in this function)

../SDL_ttf-2.0.9/SDL_ttf.c:861: error: expected expression before ')' token

../SDL_ttf-2.0.9/SDL_ttf.c:867: warning: implicit declaration of function 'LATIN1_to_UNICODE'

../SDL_ttf-2.0.9/SDL_ttf.c:870: warning: implicit declaration of function 'TTF_SizeUNICODE'

../SDL_ttf-2.0.9/SDL_ttf.c: In function 'TTF_SizeUTF8':

../SDL_ttf-2.0.9/SDL_ttf.c:879: error: 'Uint16' undeclared (first use in this function)

../SDL_ttf-2.0.9/SDL_ttf.c:879: error: 'unicode_text' undeclared (first use in this function)

../SDL_ttf-2.0.9/SDL_ttf.c:885: error: expected expression before ')' token

../SDL_ttf-2.0.9/SDL_ttf.c:891: warning: implicit declaration of function 'UTF8_to_UNICODE'

../SDL_ttf-2.0.9/SDL_ttf.c: At top level:

../SDL_ttf-2.0.9/SDL_ttf.c:901: warning: type defaults to 'int' in declaration of 'Uint16'

../SDL_ttf-2.0.9/SDL_ttf.c:901: error: expected ';', ',' or ')' before '*' token

../SDL_ttf-2.0.9/SDL_ttf.c:1024: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

../SDL_ttf-2.0.9/SDL_ttf.c:1051: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

../SDL_ttf-2.0.9/SDL_ttf.c:1076: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

../SDL_ttf-2.0.9/SDL_ttf.c:1216: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

../SDL_ttf-2.0.9/SDL_ttf.c:1279: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

../SDL_ttf-2.0.9/SDL_ttf.c:1306: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

../SDL_ttf-2.0.9/SDL_ttf.c:1331: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

../SDL_ttf-2.0.9/SDL_ttf.c:1476: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

../SDL_ttf-2.0.9/SDL_ttf.c:1546: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

../SDL_ttf-2.0.9/SDL_ttf.c:1573: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

../SDL_ttf-2.0.9/SDL_ttf.c:1598: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

../SDL_ttf-2.0.9/SDL_ttf.c:1734: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

../SDL_ttf-2.0.9/SDL_ttf.c: In function 'TTF_SetFontStyle':

../SDL_ttf-2.0.9/SDL_ttf.c:1793: error: 'TTF_Font' has no member named 'style'

../SDL_ttf-2.0.9/SDL_ttf.c: In function 'TTF_GetFontStyle':

../SDL_ttf-2.0.9/SDL_ttf.c:1799: error: 'TTF_Font' has no member named 'style'

../SDL_ttf-2.0.9/SDL_ttf.c: In function 'TTF_Quit':

../SDL_ttf-2.0.9/SDL_ttf.c:1806: warning: implicit declaration of function 'FT_Done_FreeType'

../SDL_ttf-2.0.9/SDL_ttf.c:1806: error: 'library' undeclared (first use in this function)

make[5]: *** [SDL_ttf.lo] Error 1

make[5]: Leaving directory `/home/kasper/work/svn/2009R1/uClinux-dist/lib/SDL_ttf/build-SDL_ttf-2.0.9'

make[4]: *** [all] Error 2

make[4]: Leaving directory `/home/kasper/work/svn/2009R1/uClinux-dist/lib/SDL_ttf'

make[3]: *** [SDL_ttf] Error 2

make[3]: Leaving directory `/home/kasper/work/svn/2009R1/uClinux-dist/lib'

make[2]: *** [all] Error 2

make[2]: Leaving directory `/home/kasper/work/svn/2009R1/uClinux-dist/lib'

make[1]: *** [subdirs] Error 1

make[1]: Leaving directory `/home/kasper/work/svn/2009R1/uClinux-dist'

make: *** [single] Error 2

[kasper@localhost uClinux-dist]$

QuoteReplyEditDelete

 

 

2009-07-18 09:34:49     Re: Help Building SDL or Qt for BF-548

Robin Getz (UNITED STATES)

Message: 77606   

 

David:

 

Can you make sure that freetype was built before SDL_ttf? Is there a  ./lib/freetype/build-freetype-2.3.9/ dir?

 

In your staging dir - is there a header file?

 

find ./staging/ -name ftheader.h

./staging/usr/include/freetype2/freetype/config/ftheader.h

 

 

?

 

Thanks

 

-Robin

QuoteReplyEditDelete

 

 

2009-07-18 17:20:40     Re: Help Building SDL or Qt for BF-548

David Kasper (UNITED STATES)

Message: 77616   

 

Robin,

 

Yes, those directories and header file are present.  I worked-around that error by adding the "staging/usr/include/freetype2" path to the CFLAGS variable of Makefile in build-SDL-ttf-2.0.9.  Next it couldn't find SDL.h or SDL_config. so I added libsdl/SDL-1.2.13/include and libsdl/build-SDL-1.2.13/include to the Makefile.  I am stuck with the following error below building the .so.  Note I got Qt to build but still need to test it.

 

Dave

 

make[4]: Entering directory `/home/kasper/work/svn/2009R1/uClinux-dist/lib/SDL_ttf'

 

make -C build-SDL_ttf-2.0.9

 

make[5]: Entering directory `/home/kasper/work/svn/2009R1/uClinux-dist/lib/SDL_ttf/build-SDL_ttf-2.0.9'

 

/bin/sh ./libtool --tag=CC --mode=compile bfin-linux-uclibc-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"SDL_ttf\" -DVERSION=\"2.0.9\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DX_DISPLAY_MISSING=1  -I. -I../SDL_ttf-2.0.9   -DEMBED -D__uClinux__ -I/home/kasper/work/svn/2009R1/uClinux-dist  -mcpu=bf538-0.4  -pipe -Wall -g -O2      -mcpu=bf538-0.4 -I/home/kasper/work/svn/2009R1/uClinux-dist/lib/libsdl/build-SDL-1.2.13/include -I/home/kasper/work/svn/2009R1/uClinux-dist/lib/libsdl/SDL-1.2.13/include -I/home/kasper/work/svn/2009R1/uClinux-dist/staging/usr/include/freetype2 -I -I/home/kasper/work/svn/2009R1/uClinux-dist/staging/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o SDL_ttf.lo ../SDL_ttf-2.0.9/SDL_ttf.c

 

bfin-linux-uclibc-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"SDL_ttf\" -DVERSION=\"2.0.9\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DX_DISPLAY_MISSING=1 -I. -I../SDL_ttf-2.0.9 -DEMBED -D__uClinux__ -I/home/kasper/work/svn/2009R1/uClinux-dist -mcpu=bf538-0.4 -pipe -Wall -g -O2 -mcpu=bf538-0.4 -I/home/kasper/work/svn/2009R1/uClinux-dist/lib/libsdl/build-SDL-1.2.13/include -I/home/kasper/work/svn/2009R1/uClinux-dist/lib/libsdl/SDL-1.2.13/include -I/home/kasper/work/svn/2009R1/uClinux-dist/staging/usr/include/freetype2 -I -I/home/kasper/work/svn/2009R1/uClinux-dist/staging/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c ../SDL_ttf-2.0.9/SDL_ttf.c  -fPIC -DPIC -o .libs/SDL_ttf.o

 

bfin-linux-uclibc-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"SDL_ttf\" -DVERSION=\"2.0.9\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DX_DISPLAY_MISSING=1 -I. -I../SDL_ttf-2.0.9 -DEMBED -D__uClinux__ -I/home/kasper/work/svn/2009R1/uClinux-dist -mcpu=bf538-0.4 -pipe -Wall -g -O2 -mcpu=bf538-0.4 -I/home/kasper/work/svn/2009R1/uClinux-dist/lib/libsdl/build-SDL-1.2.13/include -I/home/kasper/work/svn/2009R1/uClinux-dist/lib/libsdl/SDL-1.2.13/include -I/home/kasper/work/svn/2009R1/uClinux-dist/staging/usr/include/freetype2 -I -I/home/kasper/work/svn/2009R1/uClinux-dist/staging/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c ../SDL_ttf-2.0.9/SDL_ttf.c -o SDL_ttf.o >/dev/null 2>&1

 

/bin/sh ./libtool --tag=CC --mode=link bfin-linux-uclibc-gcc  -pipe -Wall -g -O2      -mcpu=bf538-0.4 -I/home/kasper/work/svn/2009R1/uClinux-dist/lib/libsdl/build-SDL-1.2.13/include -I/home/kasper/work/svn/2009R1/uClinux-dist/lib/libsdl/SDL-1.2.13/include -I/home/kasper/work/svn/2009R1/uClinux-dist/staging/usr/include/freetype2 -I -I/home/kasper/work/svn/2009R1/uClinux-dist/staging/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -mcpu=bf538-0.4 -o libSDL_ttf.la -rpath /usr/lib -no-undefined -release 2.0 -version-info 6:3:6 SDL_ttf.lo  -L -Wl,--rpath -Wl, -lfreetype -L/home/kasper/work/svn/2009R1/uClinux-dist/staging/usr/lib -Wl,-rpath,/home/kasper/work/svn/2009R1/uClinux-dist/staging/usr/lib -lSDL –lpthread

 

 

 

>>>>Error creating shared lib

 

 

 

bfin-linux-uclibc-gcc -shared  .libs/SDL_ttf.o  -Wl,--rpath -Wl,/home/kasper/work/svn/2009R1/uClinux-dist/staging/usr/lib -Wl,--rpath -Wl,/home/kasper/work/svn/2009R1/uClinux-dist/staging/usr/lib -L/home/kasper/work/svn/2009R1/uClinux-dist/lib/SDL_ttf/build-SDL_ttf-2.0.9 /home/kasper/work/svn/2009R1/uClinux-dist/staging/usr/lib/libfreetype.so -L/home/kasper/work/svn/2009R1/uClinux-dist/staging/usr/lib /home/kasper/work/svn/2009R1/uClinux-dist/staging/usr/lib/libSDL.so -lpthread  -mcpu=bf538-0.4 -mcpu=bf538-0.4 -Wl,--rpath -Wl,-rpath -Wl,/home/kasper/work/svn/2009R1/uClinux-dist/staging/usr/lib -Wl,-soname -Wl,libSDL_ttf-2.0.so.0 -o .libs/libSDL_ttf-2.0.so.0.6.3

 

/home/kasper/work/svn/2009R1/uClinux-dist/staging/usr/lib: file not recognized: Is a directory

 

collect2: ld returned 1 exit status

 

make[5]: *** [libSDL_ttf.la] Error 1

 

make[5]: Leaving directory `/home/kasper/work/svn/2009R1/uClinux-dist/lib/SDL_ttf/build-SDL_ttf-2.0.9'

 

make[4]: *** [all] Error 2

 

make[4]: Leaving directory `/home/kasper/work/svn/2009R1/uClinux-dist/lib/SDL_ttf'

 

make[3]: *** [SDL_ttf] Error 2

 

make[3]: Leaving directory `/home/kasper/work/svn/2009R1/uClinux-dist/lib'

 

make[2]: *** [all] Error 2

 

make[2]: Leaving directory `/home/kasper/work/svn/2009R1/uClinux-dist/lib'

 

make[1]: *** [subdirs] Error 1

 

make[1]: Leaving directory `/home/kasper/work/svn/2009R1/uClinux-dist'

 

make: *** [single] Error 2

[kasper@localhost uClinux-dist

Attachments

    Outcomes