Recent

Author Topic: Compilacion Cruzada a RaspBerry Pi  (Read 2676 times)

seliman

  • New member
  • *
  • Posts: 10
Compilacion Cruzada a RaspBerry Pi
« on: October 28, 2017, 03:55:50 pm »
Hola amigos , hace ya un tiempo que quiero hacer compilacion cruzada a rpi y no encuentro un tuto bien explicado ...y que funcione , alguno de uds tiene experiencia en esto ??

Mil Gracias

turrican

  • Full Member
  • ***
  • Posts: 133
  • Pascal is my life.
    • Homepage
Re: Compilacion Cruzada a RaspBerry Pi
« Reply #1 on: December 15, 2017, 12:06:33 pm »
Es muuuy senzillo.

Yo lo que haría para facilitarte la vida es descargar lo siguiente :

https://github.com/newpascal/fpcupdeluxe/releases/tag/v1.6.0l

Este gestor de plataformas FPC + Lazarus te instalará todo lo necesario para compilar para el objetivo ARM + Linux.

Y sin ningún dolor de cabeza.

Thaddy

  • Hero Member
  • *****
  • Posts: 7178
Re: Compilacion Cruzada a RaspBerry Pi
« Reply #2 on: December 15, 2017, 12:24:58 pm »
It is not that easy. NewPascal is not supported on THIS forum. Although the core team reads this forum.

But the solution is easy: install the official release on your raspberry pi and compile natively. The Raspberry Pi is perfectly capable as a native platform.
See: https://www.freepascal.org/down/arm/linux-netherlands.var

Note there are two different files. If you have a RPi3 or second generation RPi2, choose the first one. (armv7a eabihf)
If you have a Raspberry Pi zero, a Raspberry Pi 1 or a first generation RP1 2 choose the second one.(armv6 eabihf)

BTW: The second one works on all Raspberry pies.
« Last Edit: December 15, 2017, 12:28:31 pm by Thaddy »
inline variables like in D10.3 are a bit like Brexit: if you are given the wrong information it sounds like a good idea. Every kid loves candy, but it makes you fat and your teeth will disappear.

turrican

  • Full Member
  • ***
  • Posts: 133
  • Pascal is my life.
    • Homepage
Re: Compilacion Cruzada a RaspBerry Pi
« Reply #3 on: December 15, 2017, 01:21:36 pm »
NewPascal is not supported on THIS forum

Not at all... it is not NewPascal what I'm saying to download. Is fpcupdeluxe (It's a ToolSet manager.) You will download Lazarus and FPC TRUNK.

Thaddy

  • Hero Member
  • *****
  • Posts: 7178
Re: Compilacion Cruzada a RaspBerry Pi
« Reply #4 on: December 15, 2017, 01:33:14 pm »
Still, unless you need trunk, use the official distribution for the Raspberry Pi.
fpcdeluxe is very good and getting better all the time, but it still has some quirks. (Just to say I am NOT bashing fpcdeluxe) But there is an official, working and easy to install release version for FPC 3.0.4 Raspberry Pi.
inline variables like in D10.3 are a bit like Brexit: if you are given the wrong information it sounds like a good idea. Every kid loves candy, but it makes you fat and your teeth will disappear.

turrican

  • Full Member
  • ***
  • Posts: 133
  • Pascal is my life.
    • Homepage
Re: Compilacion Cruzada a RaspBerry Pi
« Reply #5 on: December 15, 2017, 01:34:10 pm »
Still, unless you need trunk, use the official distribution for the Raspberry Pi.
fpcdeluxe is very good and getting better all the time, but it still has some quirks. (Just to say I am NOT bashing fpcdeluxe) But there is an official working and easy to install release for Raspberry Pi.

Thanks Thaddy your advices always are very useful.