ALL,

I have a cross compile probem in DFB, it puzzled me very much. why my DFB 
always use libpng and libfreetype on host ,but not target.

$ ./configure --host=arm_v5t_le --prefix=/home/user/workdir/nfs --enable-fbdev 
--with-inputdrivers=none --with-gfxdrivers=none --disable-video4linux2 
--disable-sysfs --disable-multi --disable-sdl --disable-video4linux 
--datadir=/home/user/workdir/nfs/usr/lib/

$make

here is the error

/bin/sh ../libtool --tag=CC --mode=link arm_v5t_le-gcc  -Wall -O3 -ffast-math 
-pipe  -D_GNU_SOURCE  -Werror-implicit-function-declaration   -o 
directfb-csource  directfb-csource.o -lpng -lz -lm -ldl -lpthread 
arm_v5t_le-gcc -Wall -O3 -ffast-math -pipe -D_GNU_SOURCE 
-Werror-implicit-function-declaration -o directfb-csource directfb-csource.o  
/usr/lib/libpng.so -lz -lm -ldl -lpthread

$$$$$$$$$$$$how to set /usr/lib/libpng.so into 
/home/user/workdir/nfs/usr/lib????????????????????????????????

/usr/lib/libpng.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[2]: *** [directfb-csource] Error 1
make[2]: Leaving directory 
`/home/user/workdir/davinci-directfb-0.9.22/src-dist/DirectFB-0.9.22/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
`/home/user/workdir/davinci-directfb-0.9.22/src-dist/DirectFB-0.9.22'
make: *** [all] Error 2

I have tried to add LIBS+=/home/user/workdir/nfs, but a configured error is 
reported.
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... i686-pc-linux-gnu
checking host system type... arm_v5t_le-unknown-linux-gnu
checking target system type... arm_v5t_le-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/home/user/workdir/davinci-directfb-0.9.22/src-dist/DirectFB-0.9.22/missing: 
Unknown `--run' option
Try 
`/home/user/workdir/davinci-directfb-0.9.22/src-dist/DirectFB-0.9.22/missing 
--help' for more information
configure: WARNING: `missing' script is too old or missing
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for arm_v5t_le-strip... arm_v5t_le-strip
checking whether to enable maintainer-specific portions of Makefiles... no
checking for arm_v5t_le-gcc... arm_v5t_le-gcc
checking for C compiler default output file name... configure: error: C 
compiler cannot create executables
See `config.log' for more details.

Thanks and Best regards

Jiao
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to