* * *

Author Topic: Windows built pascal program(lazarus) to my Raspberry Pi  (Read 1231 times)

kenorosarioPH

  • Newbie
  • Posts: 3
Windows built pascal program(lazarus) to my Raspberry Pi
« on: December 06, 2015, 04:51:31 am »
Good Day Forum! I just want to ask if i could just copy my project files built in Lazarus(on windows) and run this files on my Lazarus(on Raspberry Pi)

Thaddy

  • Hero Member
  • *****
  • Posts: 3408
Re: Windows built pascal program(lazarus) to my Raspberry Pi
« Reply #1 on: December 06, 2015, 10:18:58 am »
No!
But you can cross compile the same project to get an executable that will run on the Raspberry Pi in many but not all cases.
This requires the binutils for arm-linux-gnueabihf installed and the ppcrossarm.exe cross compiler that is build to output abihf code, i.e. build with the option FPC_EABIHF.
You can also install Lazarus on the Raspberry Pi and simply recompile the sources.

I do both.

There is actually an exotic option however that lets you run actual windows executables on the Raspberry Pi by installing windows95 in a virtual machine. That will require fpc 2.6 or earlier build executables and will not work with FPC 3. It is not even that slow. But note it has no real merits other than that it can be done.
« Last Edit: December 06, 2015, 10:24:42 am by Thaddy »

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus