En/na Tony Maro ha escrit:
On Thu, 2007-08-02 at 18:51 -0400, Tony Maro wrote:
I created a simple console app and ran the following at a command line:
ppcarm -Xd -Sd -XParm-linux- project1.lpr
Worked like a charm.
Placing those options in the "additional options" for the compiler
options in Lazarus also works, though setting processor to "arm" and
os to "linux" didn't do it for me. I have no clue what those params
mean - copied it off a website.
I'm unclear of how to get the LCL built for ARM... if I try this to
build any GUI app, it won't link, complaining about an incompatible
crtbegin.o
Well I got past that with a few #ifdef in the fpc.cfg.
Now I'm stuck on:
Compiling project1.lpr
Assembling project1
Linking project1
/usr/local/bin/arm-linux-ld: cannot find -lpthread
project1.lpr(19) Error: Error while linking
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
Bye
--
Luca
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives