Hi,
I'm trying to compile the graph-examples for arm. fpctris compiles, but the linking fails, it seems to find the wrong crti.o file. I added -Fl/path_to_good_file with no luck, and -Xr/path_to_good_file, with the same result. If I add -vt I see that a huge number of paths are searched for files, only for crti.o (and later on crtn.o) only two paths are searched : /lib and /usr/lib.
Can someone please point me at what I'm missing here ? My command-line :
ppcrossarm -Xc -Xr/opt/arcom/arm-linux/lib -FUunits/arm-linux -Fl/opt/arcom/arm-linux/lib fpctris.pp
Thanks,
Koenraad Lelong.
P.S. some other files (e.g. gravwars) don't even compile for i386 : /usr/bin/ld: cannot find -lvga.
Mailing lists / fpc-pascal / 2005-12
Setting library-path
3 messages · 2 people · –
- KKoenraad Lelong 2
- JJonas Maebe 1
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Koenraad Lelong wrote 7 lines
I'm trying to compile the graph-examples for arm. fpctris compiles,
but the linking fails, it seems to find the wrong crti.o file. I
added -Fl/path_to_good_file with no luck, and -Xr/
path_to_good_file, with the same result. If I add -vt I see that a
huge number of paths are searched for files, only for crti.o (and
later on crtn.o) only two paths are searched : /lib and /usr/lib.
Can someone please point me at what I'm missing here ?
Add -Xd. From the compiler help page:
-Xd don't use standard library search path (needed for cross compile)
P.S. some other files (e.g. gravwars) don't even compile for i386 : /usr/bin/ld: cannot find -lvga.
http://www.freepascal.org/faq.html#vgamissing
Jonas
Jonas Maebe wrote 23 lines
On 20 Dec 2005, at 22:22, Koenraad Lelong wrote:
> I'm trying to compile the graph-examples for arm. fpctris compiles,
> but the linking fails, it seems to find the wrong crti.o file. I
> added -Fl/path_to_good_file with no luck, and -Xr/ path_to_good_file,
> with the same result. If I add -vt I see that a huge number of paths
> are searched for files, only for crti.o (and later on crtn.o) only
> two paths are searched : /lib and /usr/lib.
> Can someone please point me at what I'm missing here ?
Add -Xd. From the compiler help page:
-Xd don't use standard library search path (needed for
cross compile)
> P.S. some other files (e.g. gravwars) don't even compile for i386 :
> /usr/bin/ld: cannot find -lvga.
http://www.freepascal.org/faq.html#vgamissing
Two times overlooked, sorry. I'm a little bit frustrated because almost all demoes I try fail to compile (for i386 for starters). Now that I installed vgalib (had to find a source and compile and install that plus it's devel-counterparts) I think I need to install much more devel-packages. Anyway, many thanks,
Koenraad.
