You will need to create code for armv6, Pi2B is armv7
The easiest way is most propably to install freepascal on the old RPi1B
and to compile the code there. Either use apt-get or search for a fpc
3.0 version that is compiled for this device.
Another alternative could be to build another version of freepascal on
your raspi2 that supports armv6.
make all OPT="-dFPC_ARMHF -CpARMV6 -OpARMV6"
You'd have to look up one of the numerous tutorials on building fpc 3.0
on Raspbery Pi if this build does not work out of the box.
Michael
Am 16.01.16 um 11:50 schrieb Bo Berglund:
I have a development system running on a Raspberry Pi2B with fpc 3.0.0
and Lazarus 1.6RC2. It works just fine. :)
Today I am faced with a problem regarding compatibility between RPi1
and RPi2...
I have this Delphi program I wrote some years ago which is used to
show a text dialog on a TV for my mother-in-law. She is deaf and
bed-bound and to communicate with her I wrote the program so it could
display a huge text on an attached TV so she can read what one types
in.
Now the XP computer it was running on is dead and I have an old RPi1B
with 256M RAM, which I could put in its place.
I used Lazarus conversion tool to bring in the Delphi7 project to my
Pi2B and it compiled and ran fine. Success here!
So the question really is if I have to do something in the
configuration of the project to create an executable which will run on
the RPi1 hardware?
The fpc compiler I have is built using the OPT=-dFPC_ARMHF flag.
Will this cause executables compiled in Lazarus to only be working in
an RPi2??
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus