Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2015-08

Cross compiling and debugging Linux-X86 -> Raspberry Pi

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martin Schreiber

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