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