[Expat-discuss] Linux Arm & Expat

Robert Schiele rschiele at gmail.com
Tue Jan 8 16:12:13 CET 2008


On Tue, Jan 08, 2008 at 09:01:47AM -0600, Mark Buster wrote:
> Hopefully this isn't too stupid of a request.
> I am new to cross compiling & linux in general.
> I have installed expat with the following sequence (hopefully correctly) 
> as needed for my Cross compiler. Maybe this is where I'm lost..
> 
> ./configure --prefix=/usr/local/arm/3.4 --host=arm-linux
> CC=arm-linux-gcc make
> CC=arm-linux-gcc make install
> 
> I am able to compile and link an example program like so:
> 
> arm-linux-gcc ./outline.c -lexpat -o outline
> 
> This compiles with no errors.
> When I transfer the executable over to the target and run it, I get the 
> following error:
> 
> " can't load library 'libexpat.so.1' "
> 
> Now it is my understanding that this should have all been included 
> during the build. Am I linking improperly?
> I'm not overly familiar with the process. Any help would be greatly 
> appreciated.

Obviously you also need to transfer the shared library itself to the target
system.  Either you put it into the default search path, or you set
LD_LIBRARY_PATH to the location you put it, or you add the parameter "-rpath
/foo/bar" to the link command where /foo/bar is the path you will put the
library into.

Robert

-- 
Robert Schiele
Dipl.-Wirtsch.informatiker	mailto:rschiele at gmail.com

"Quidquid latine dictum sit, altum sonatur."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
Url : http://mail.libexpat.org/pipermail/expat-discuss/attachments/20080108/e51343f3/attachment.pgp 


More information about the Expat-discuss mailing list