Denis Oliver Kropp wrote:
>
> It looks like no drivers are linked in. Did you link your application
> the way it is demonstrated in tools/dfb_static_build_example?
>
> Important are the -Wl,-u parameters, otherwise the driver's constructors
> are not referenced and the driver is thrown out by the linker.
O.k., I upgraded to 9.11 so I could find the above named file. ;-)
I configure using:
export CROSS=mipsel-uclibc-
echo "Cross: $CROSS"
export CC="${CROSS}gcc "
./configure --host=mipsel-unknown-linux-gnu \
--prefix=/usr/local/mips \
--enable-jpeg=yes --enable-png=yes --enable-freetype=yes \
--enable-gif=no \
--enable-avfile=no --enable-mmx=no --enable-flash=no \
--enable-libmpeg3=no \
--enable-debug \
--enable-shared=yes #--enable-static=yes
I get the following error:
make[3]: Leaving directory
`/home/samcconn/work/dfb/DirectFB-0.9.11/inputdrivers/sonypi'
make[2]: Leaving directory
`/home/samcconn/work/dfb/DirectFB-0.9.11/inputdrivers/sonypi'
make[2]: Entering directory
`/home/samcconn/work/dfb/DirectFB-0.9.11/inputdrivers'
make[3]: Entering directory
`/home/samcconn/work/dfb/DirectFB-0.9.11/inputdrivers'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory
`/home/samcconn/work/dfb/DirectFB-0.9.11/inputdrivers'
make[2]: Leaving directory
`/home/samcconn/work/dfb/DirectFB-0.9.11/inputdrivers'
make[1]: Leaving directory
`/home/samcconn/work/dfb/DirectFB-0.9.11/inputdrivers'
Making install in interfaces
make[1]: Entering directory
`/home/samcconn/work/dfb/DirectFB-0.9.11/interfaces'
Making install in IDirectFBFont
make[2]: Entering directory
`/home/samcconn/work/dfb/DirectFB-0.9.11/interfaces/IDirectFBFont'
/bin/sh ../../libtool --mode=link mipsel-uclibc-gcc -D_REENTRANT
-ffast-math -Wall -O3 -DFUSION_FAKE
-I/usr/local/mips/include/freetype2 -o libidirectfbfont_ft2.la -rpath
/usr/local/mips/lib/directfb-0.9.11/interfaces/IDirectFBFont
-avoid-version -module idirectfbfont_ft2.lo -L/usr/local/mips/lib
-lfreetype -ldl -lpthread
rm -fr .libs/libidirectfbfont_ft2.la .libs/libidirectfbfont_ft2.*
.libs/libidirectfbfont_ft2.*
mipsel-uclibc-gcc -shared idirectfbfont_ft2.lo -Wl,--rpath
-Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib -L/usr/local/mips/lib
/usr/local/lib/libfreetype.so -ldl -lpthread -Wl,-soname
-Wl,libidirectfbfont_ft2.so -o .libs/libidirectfbfont_ft2.so
/usr/local/lib/libfreetype.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [libidirectfbfont_ft2.la] Error 1
make[2]: Leaving directory
`/home/samcconn/work/dfb/DirectFB-0.9.11/interfaces/IDirectFBFont'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory
`/home/samcconn/work/dfb/DirectFB-0.9.11/interfaces'
make: *** [install-recursive] Error 1
Where is the "/usr/local/lib" coming from? Is it using my host
ld.so.conf?
When I add echo statements in interfaces/IDirectFBFont/Makefile I can
not see how the above command line was constructed.
Thanks for any thoughts.
Scott
--
Info: To unsubscribe send a mail to [EMAIL PROTECTED] with
"unsubscribe directfb-users" as subject.