Setup Cross Compile For ARM/ru: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: Setup Cross Compile For ARM/ru
| Old | New | Line | |
|---|---|---|---|
| 1 | + | # Ubuntu 12.04.4 LTS | |
| 2 | + | ||
| 3 | + | Установка производилась практически на чистую систему | |
| 4 | + | ||
| 5 | + | sudo apt-get install libgtk2.0-dev binutils-arm-linux-gnueabi | |
| 6 | + | mkdir /tmp/fpsinstall && cd /tmp/fpsinstall | |
| 7 | + | mkdir -p ~/dev/fpc/binutils/ | |
| 8 | + | wget http://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%201.2/lazarus_1.2.0-0_amd64.deb/download -O lazarus_1.2.0-0_amd64.deb | |
| 9 | + | wget http://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%201.2/fpc-src_2.6.2-0_amd64.deb/download -O fpc-src_2.6.2-0_amd64.deb | |
| 10 | + | wget http://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%201.2/fpc_2.6.2-0_amd64.deb/download -O fpc_2.6.2-0_amd64.deb | |
| 11 | + | sudo dpkg -i *.deb | |
| 12 | + | rm -rf /tmp/fpsinstall | |
| 13 | + | cd /usr/share/fpcsrc/2.6.2 | |
| 14 | + | ln -s /usr/bin/arm-linux-gnueabi-ar /home/$USER/dev/fpc/binutils/ar | |
| 15 | + | ln -s /usr/bin/arm-linux-gnueabi-as /home/$USER/dev/fpc/binutils/as | |
| 16 | + | ln -s /usr/bin/arm-linux-gnueabi-ld /home/$USER/dev/fpc/binutils/ld | |
| 17 | + | sudo make crossinstall CPU_TARGET=arm OS_TARGET=linux CROSSBINDIR=~/dev/fpc/binutils/ OPT=-dFPC_ARMEL INSTALL_PREFIX=/usr | |
| 18 | + | sudo ln -sf /usr/lib/fpc/2.6.2/ppcrossarm /usr/bin/ppcarm | |
| 19 | + | sudo ln -s /usr/bin/arm-linux-gnueabi-as /usr/bin/arm-linux-as | |
| 20 | + | sudo ln -s /usr/bin/arm-linux-gnueabi-ld /usr/bin/arm-linux-ld | |
| 21 | + | ||
| 22 | + | Далее, как в примере англоязычной версии этой статьи | |
| 23 | + | ||
| 24 | + | `fpc -Tlinux -Parm -XParm-linux- TestARM.pas` | |
| 25 | + | ||
| 26 | + | Скомпилированный файл успешно запустился на Droid4. | |
| 27 | + | ||
| 28 | + | --- | |
| 29 | + | *From the Free Pascal wiki, page "Setup Cross Compile For ARM/ru", 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](/wiki-contact).* | |
| 30 | + | Category: ARM/ru | |
| 31 | + | Category: Cross compilation/ru | |
| 32 | + | Category: FPC/ru | |
| 33 | + | Category: Linux/ru | |
| 34 | + | Category: Operating Systems and Platforms/ru | |
| 35 | + | Category: Russian | |
| 36 | + | Category: Russian (unfinished translation) | |
| 37 | + | Category: Tutorials/ru |
