<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2014-07-01 11:26 GMT-03:00 John Lee <span dir="ltr"><<a href="mailto:johnelee0@gmail.com" target="_blank">johnelee0@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr">I've just done an apt-get nstall fpc on rpi, running wheezy/jessie - quite a lot of libs downloaded. Is there a smaller download? </div></blockquote><div><br></div><div>I install FPC using:</div><div><br>
</div><div>sudo apt-get install fp-compiler</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div><br></div><div>Seems to be ver 2.6.2. Appears to work with a quick try compiling. Have you seen any problems using it on wheezy? </div></div></blockquote><div><br></div><div>I'm using wheezy armHF (fpc 2.6.0+patch to armhf), and the problem are not when I compile the program and the shared library (I have success to build both), but when I run the program and it try to load the shared library built in FPC static or dynamically using units dl or dynlibs. If I build program in FPC and the shared library on GCC, it can load the shared library, static or dynamically, without problems. </div>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">
<div><br></div><div>Can it be used to compile v2.7 on the rpi, or is some weird cross compile needed? <br></div></div></blockquote><div><br></div><div>I don't know. To compile fpc 2.7.1 on rpi, I uninstalled the fpc 2.6 that comes with wheezy, and installed a fpc copy from here</div>
<div><br></div><div><a href="http://freepascal.thaddy.co.uk/raspberrypi.html">http://freepascal.thaddy.co.uk/raspberrypi.html</a><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div><div><br></div><div>Have you tried/succeeded in building the latest rpi arm version from trunk eg v2.7.1? Think jonas suggested that it should work (or did he just say that 2.6.4 doesn't work?)</div>
</div></div></blockquote><div><br></div><div>Using the FPC 2.7.1 from the cited site, I compiled and installed FPC 2.7.1 trunk successful following these steps: </div><div><br></div><div><a href="http://www.michellcomputing.co.uk/blog/2014/05/freepascal-2-7-1-on-raspberry-pi/">http://www.michellcomputing.co.uk/blog/2014/05/freepascal-2-7-1-on-raspberry-pi/</a></div>
<div><br></div><div>When I used the stock fpc 2.6.4, downloaded from </div><div><br></div><div><a href="http://sourceforge.net/projects/freepascal/files/Linux/2.6.4/fpc-2.6.4.arm-linux.tar/download">http://sourceforge.net/projects/freepascal/files/Linux/2.6.4/fpc-2.6.4.arm-linux.tar/download</a><br>
</div><div><br></div><div>It don't works, don't compile my program nor my shared library. I think that the cause of this, is because my distro (wheezy) is ARMHF and fpc stock is ARMEL. Marco warned me about this...</div>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div>, but don't know if v2.7.1 is used much. Does it work? If so can you please make it available as a zip or whatever? I can provide an ftp site for you.<br>
</div></div></div></blockquote><div><br></div><div>No and yes. It compiles the program and the shared library, like as fpc 2.6.0+armhf patch, but at runtime, my program can't load my shared library.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div><div>
</div><div><br></div><div>TIA john</div><div> </div><div class="gmail_extra"><br><br><div class="gmail_quote">On 1 July 2014 14:14, Fabio Luis Girardi <span dir="ltr"><<a href="mailto:fluisgirardi@gmail.com" target="_blank">fluisgirardi@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi all!!<div><br></div><div>First (tests made on ARMHF): I did tests with latest FPC, built from trunk. The trouble persists. A simple program can't load a simple shared library, both built in FPC, but my program built in FPC can load a shared library built in gcc.</div>
<div> <br></div><div>As Marco said, stock fpc 2.6.4 don't works on armhf. So I downgrade my linux install to a ARMEL distro (raspbian from 2013-05) and everything works very well.</div><div><br></div><div>So, comparing the results, this can be a bug in the shared library mechanism of FPC on ARMHF?</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-06-28 12:29 GMT-03:00 Jonas Maebe <span dir="ltr"><<a href="mailto:jonas.maebe@elis.ugent.be" target="_blank">jonas.maebe@elis.ugent.be</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>On 28/06/14 16:48, Fabio Luis Girardi wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
I'm testing any option that appears to be useful to build a shared<br>
library. Even If the help says that is unsupported. I'm desperate :)<br>
</blockquote>
<br></div>
Unsupported options are much more likely to break things than fix things.<br>
<br>
<br>
Jonas<br>
______________________________<u></u>_________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.<u></u>org</a><br>
<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/<u></u>cgi-bin/mailman/listinfo/fpc-<u></u>pascal</a><span><font color="#888888"><br>
</font></span></blockquote></div><span><font color="#888888"><br><br clear="all"><span class=""><font color="#888888"><div><br></div>-- <br>The best regards,<br><br>Fabio Luis Girardi<br>PascalSCADA Project<br><a href="http://sourceforge.net/projects/pascalscada" target="_blank">http://sourceforge.net/projects/pascalscada</a><br>
<a href="http://www.pascalscada.com" target="_blank">http://www.pascalscada.com</a>
</font></span></font></span></div><span class=""><font color="#888888">
<br>_______________________________________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a><br></font></span></blockquote></div><br></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>The best regards,<br><br>Fabio Luis Girardi<br>PascalSCADA Project<br><a href="http://sourceforge.net/projects/pascalscada" target="_blank">http://sourceforge.net/projects/pascalscada</a><br>
<a href="http://www.pascalscada.com" target="_blank">http://www.pascalscada.com</a>
</div></div>