[fpc-pascal] Cross compiling and debugging Linux-X86 -> Raspberry Pi
Martin Schreiber
mse00000 at gmail.com
Sat Aug 22 18:02:51 CEST 2015
Hi,
There are new versions of the cross development environment for FPC 3.0.1:
http://mseide-msegui.sourceforge.net/pics/crossarm.png
http://sourceforge.net/projects/mseide-msegui/files/fpcrossarm/
For integrated development with FPC 3.0.1 MSEide+MSEgui git master version is
necessary:
https://gitlab.com/mseide-msegui/mseide-msegui
From MSEide+MSEgui README.TXT:
"
Crosscompiling and remote debugging i386-linux -> arm-linux
***********************************************************
For Raspberry Pi:
- Establish a ssh login without password (public key authentication).
- On the i386-linux host install the scp program
- download and extract
http://sourceforge.net/projects/mseide-msegui/files/fpcrossarm/crossfpc-i386_linux-eabihf_3_0_1.tar.gz
to <your crossfpc directory>.
- Start MSEide, in 'Settings'-'Configure MSEide'-'Global Macros' add:
Name Value
CROSSMSEDIR <MSEide+MSEgui directory>
CROSSFPCDIR <your crossfpc directory>
HOSTIP <the IP of the host>
REMOTEIP <the IP of the remote target>
REMOTEPORT <the remote port, ex: 2345>
REMOTEUSER pi
- 'Project'-'New'-'From Template', select "crossarmdefault.prj" or
"crossarmconsole.prj".
- Create the new project.
- 'Project'-'Options'-'Macros', set the TARGETPROJECTDIR value to the project
path in remote target, ex: "/home/pi/proj/testcase".
- Check the TARGETENV macro.
- If your application needs additional libraries copy them from Raspberry Pi
/lib/arm-linux-gnueabihf or /usr/lib/arm-linux-gnueabihf to
<your crossfpc directory>/eabihf/lib
Press F9 and hope the best. ;-)
"
MSEide+MSEgui also runs amazingly fast native on the Raspberry Pi.
Martin
More information about the fpc-pascal
mailing list