En/na Tony Maro ha escrit:
On Fri, 2007-08-03 at 10:29 -0400, Tony Maro wrote:
On Fri, 2007-08-03 at 11:45 +0200, Luca Olivetti wrote:

If you're cross-compiling, you need the target libraries at hand and specify the path with -Fl, then add -Xr with the path of the libraries on the target, e.g.: ppcarm -Fl/directory/with/target/libraries -Fl/other/directory/with/target/libraries -XParm-linux- -Xd -Xr/lib:/usr/lib test.pas


Aha!  I've copied the /lib directory off the device and onto my desktop.

It still wouldn't find it. There was no link from libpthread.so to libpthread.so.0. I made that link and it worked.

If I do this, is the app going to require those .so links to .so.0 on the device? If so that's a problem... is there any way around this?

I don't think it's necessary. I'm not a binutil expert (neither I play one on tv), but I think .so are for linking, .a for statically linking and .so.* for runtime, so once the program is prepared it should use libpthread.so.0, searching it in the directories you specified with -Xr. You can test it with ldd on the binary.


On that note, it still won't find libglib. On the device is only libglib-2.0.so so I assume ppcarm is trying to link to libglib-1.2 or some such...

Try compiling for gtk2 instead of gtk1. Or find gtk1 libraries for the n800 and install them.

Bye
--
Luca


_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to