Hi,

This could help you to solve this issue that is somewhat normal when
cross-compiling:
- Set the env variables LD_LIBRARY_PATH and LD_RUN_PATH to the lib
directory of your target. Set the PKG_CONFIG_PATH to the lib/pkgconfig
directory of your target too.

- An alternative and dirty way is to edit the makefiles and substitute
the /usr/lib path for the correct one.

Regards,
-- 
Pedro Aguilar

On Thu, 2007-12-06 at 18:49 +0530, Srikanth Nori wrote:
> I'm trying to cross-compile DirectFB on an ARM device. I managed to
> get it working without png and freetype, but now I'm trying to include
> those also while compiling DirectFB. (I have both ported onto my
> target platform)
> 
> It appears that libtool is replacing -lpng12 with /usr/lib/libpng12.so
> (and similarly replacing -lfreetype with /usr/lib/libfreetype.so).
> This fails (As expected), and generates this error:
> 
> /usr/lib/libpng12.so: could not read symbols: File in wrong format
> 
> Is this a problem with libtool, or am I doing something wrong?
> 
> These are the arguments I've given while configuring DirectFB:
> ./configure --disable-fbdev --with-inputdrivers=none
> --with-gfxdrivers=davinci --disable-sysfs --disable-multi
> --disable-sdl --disable-x11 --disable-jpeg --host=arm-linux
> --target=arm-linux --prefix=/home/user/inst_dfb/ --enable-static
> 
> ---
> Srikanth Nori
> 
> _______________________________________________
> directfb-users mailing list
> [email protected]
> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users



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

Reply via email to