Recent

Author Topic: Lazarus crosscomp for Raspbian  (Read 1283 times)

krolikbest

  • Full Member
  • ***
  • Posts: 246
Lazarus crosscomp for Raspbian
« on: March 25, 2019, 02:12:02 pm »
Hello,

there is https://www.youtube.com/watch?v=nbjC781dRgE a short how-to for those who want to write and compile programs on Windows/PC for Raspbian/RPi. Example also use wiringPi library. As I did it for the latest Raspbian Stretch I dont't know if it works for older versions but think it should do.
Important:
you have to copy two libraries into library folder of Lazarus program
-libwirinpi.so
-libcrypt.so.1 - it could be that this library is often as libcrypt.so.XX.X then simply rename it
-wrapper of wiringPi as a h2wiringPi you can find there for example: https://github.com/laz2wiringpi/laz2wiringpi/blob/master/h2wiringpi.pas

Martin

tomifromzg

  • Newbie
  • Posts: 1
Re: Lazarus crosscomp for Raspbian
« Reply #1 on: April 29, 2019, 05:47:07 pm »
Hi, I nstalled Lazarus 2.0.2 with FPC 3.0.4  at "C:\lazarus\fpc\3.0.4\" for x86_64-win64 and it work OK
Pls. can you
  • can you show me "Tools-Option Enviromet" settings in Lazarus V2.0.2 for crosscompilling from "Win64" to "linux-arm" (Without proper settings there is Error Compiler C:\lazarus\fpc\3.0.4\bin\x86_64-win64 not support target arm-linux )
    zip "C:\fpcupdeluxe\cross" or other folder with FPC you use for CrossCompilling (i have severla version) _
Regards
Tom

 

TinyPortal © 2005-2018