<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
You will need to create code for armv6, Pi2B is armv7<br>
<br>
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.<br>
<br>
Another alternative could be to build another version of freepascal
on your raspi2 that supports armv6.<br>
<br>
make all OPT="-dFPC_ARMHF -CpARMV6 -OpARMV6"
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<br>
<br>
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.<br>
<br>
Michael<br>
<br>
<div class="moz-cite-prefix">Am 16.01.16 um 11:50 schrieb Bo
Berglund:<br>
</div>
<blockquote cite="mid:027k9bdg9vleamm1kifpor79fgtinklp2m@4ax.com"
type="cite">
<pre wrap="">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??
</pre>
</blockquote>
<br>
</body>
</html>