René Pavlík wrote:
> Niels Roest wrote:
>>> sh_sh4le-gcc -O3 -ffast-math -pipe -D_GNU_SOURCE
>>> -Werror-implicit-function-declaration -o .libs/sh7722_jpegtool 
>>> sh7722_jpegtool.o
>>>  ../../src/.libs/libdirectfb.so ./.libs/libsh7722_jpeg.so -ldl -lpthread
>>> sh_sh4le-ld: warning: libdirect-1.3.so.0, needed by
>>> ../../src/.libs/libdirectfb.so, not found (try using -rpath or -rpath-link)
>>> sh_sh4le-ld: warning: libfusion-1.3.so.0, needed by
>>> ../../src/.libs/libdirectfb.so, not found (try using -rpath or -rpath-link)
>>> sh7722_jpegtool.o: In function `write_ppm':
>>> sh7722_jpegtool.c:(.text+0x1b8): undefined reference to `direct_page_align'
>>> ...
>>> ...
>>> etc.etc. undefined references to all directfb symbols because of the 
>>> previous
>>> library mismatch.

I partly fixed this by adding the -rpath-link params to the last gcc call:

sh_sh4le-gcc -O3 -ffast-math -pipe -D_GNU_SOURCE
-Werror-implicit-function-declaration -o .libs/sh7722_jpegtool sh7722_jpegtool.o
../../src/.libs/libdirectfb.so -Wl,-rpath-link
/abs/path/to/the/DirectFB-1.3.0/lib/direct/.libs/ -Wl,-rpath-link
/abs/path/to/the/DirectFB-1.3.0/lib/fusion/.libs/ ./.libs/libsh7722_jpeg.so -ldl
-lpthread

and it linked ok to the resulting binary but I had to add "-ljpeg" parameter
because of undefined symbols to libjpeg. I'm currently not able to find an .la
file to add those rpaths into.

Regards,
        Rene

_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to