Re: errors in cross compiling demo application



On Mon, 2007-10-08 at 14:03 +0530, Shilpa Singh wrote:
> 
> hai all, 
> 
> I am trying to cross compile gtk+-directfb-2.0.9 for ARM92 board using
> toolchain arm-linux, I  have set all variables like
> CC,LD,AS,AR,RANLIB,STRIP correctly. 
> including variables like LD_LIBRARY_PATH,PKG_CONFIG_PATH,LD_RUN_PATH
> and also all the flags like
> BASE_DEPENDENCIES_CFLAGS,BASE_DEPENDENCIES_LIBS,GLIB_CFLAGS,GLIB_LIBS,PANGO_CFLAGS,PANGO_LIBS 
> 
> 
> below is my configure 
> 
> ./configure  --host=arm-linux --build=i686-linux --prefix=$PREFIX
> --enable-static=yes --without-x --with-gdktarget=directfb
> --without-libtiff --without-libjpeg --disable-glibtest
> --disable-modules --disable-largefile 
> i have some how cross compiled gtk,, but when i cross compile a simple
> hello world program,, 
> this is what i get,, can anyone help?? 
> 
> /opt/gtkdfb-arm/lib/libfontconfig.la: file not recognized: File format
> not recognized 
> collect2: ld returned 1 exit status 

In most cases this is due to the wrong linker being called. Can you
verify that the correct linker (for cross-compiling) is being invoked,
and not the system linker (/usr/bin/ld)?

Simos





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]