Wikimásolattükör

Ez a pascal.chat wikijének tükre. A szerkesztés, az előzmények és a bejelentkezés ott érhető el.

Setup Cross Compile For ARM/hu

Bahasa Indonesia · English · Español · Magyar · Русский

Keresztfordítás beállítása ARM rendszerhez

Keresztfordítás FPC-vel ARM-re (pl.: Zaurus)

cd valahova
tar zxvf arm-linux-fpc.i386-linux-20050217.tar.gz

mkdir -p /usr/local/lib/fpc/1.9.7/units
cp -fr lib/fpc/1.9.7/units/arm-linux /usr/local/lib/fpc/1.9.7/units/

cp lib/fpc/1.9.7/ppcarm /usr/local/lib/fpc/1.9.7

ln -sf /usr/local/lib/fpc/1.9.7/ppcarm /usr/local/bin/ppcarm

ppcarm -iV

cd valahova
tar zxvf binutils.tar.gz\

cp arm-linux-* /usr/local/bin\

echo "program hello; begin writeln('Hello World'); end." > hello.pas
ppcarm -XParm-linux- hello.pas\

text
 # ppcarm -XParm-linux- hello.pas
 Free Pascal Compiler version 1.9.7 [2005/02/17] for arm
 Copyright (c) 1993-2005 by Florian Klaempfl
 Target OS: Linux for ARM
 Compiling hello.pas
 Assembling hello
 Linking hello
 1 Lines compiled, 0.2 sec

scp hello zaurus:/home/zaurus

./hello

text
Hello World

From the Free Pascal wiki, page "Setup Cross Compile For ARM/hu", as it stood on 2015-07-14 after a change by FTurtle, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

3. változat, utoljára módosította: WikiArchive, .