Re: Linux Arm & Expat
Robert Schiele <[email protected]> Tue, 8 Jan 2008 16:12:13 +0100
| Newsgroups | gmane.text.xml.expat.general |
|---|---|
| Message-ID | <[email protected]> |
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:[email protected] "Quidquid latine dictum sit, altum sonatur." _______________________________________________ Expat-discuss mailing list [email protected] http://mail.libexpat.org/mailman/listinfo/expat-discuss
signature.asc
(application/pgp-signature, 194 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFHg5LNxcDFxyGNGNcRAiNOAKCMgS7n1ooXlYYK6EeQKB2F0BunAQCcCEQB 2OAgaIc+oMI16H1cekPYGbg= =AwZk -----END PGP SIGNATURE-----