Is it even possible? I've seen rumours of people doing this, but every tutorial I've tried failed.<div>My /etc/fpc.cfg is now an alphabet soup, my apt-get system is a mess and it sill does not work.</div><div>The setup is: Ubuntu 12.04 64-bit. It seems FPC 2.6.0 is working: the following test works:</div>
<div><a href="http://wiki.freepascal.org/Cross_compiling#Cross_compiling_the_LCL">http://wiki.freepascal.org/Cross_compiling#Cross_compiling_the_LCL</a></div><div><br></div><div>Lazarus 64-bit compiles and runs normally. Then I try on ~/lazarus:</div>
<div><div>$ make all CPU_TARGET=i386 OPT="-Fu/usr/local/lib/fpc/2.6.0/units/i386-linux/*"</div><div><br></div><div>It compiles but does not link. The message is:</div><div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
/usr/bin/fpc -Pi386 -XPi386-linux- -Xr -gl -dlclgtk2 -Fu../lcl/units/i386-linux -Fu../lcl/units/i386-linux/gtk2 -Fu../components/codetools/units/i386-linux -Fu../components/synedit/units/i386-linux -Fu../components/lazcontrols/lib/i386-linux -Fu../components/custom -Fu../components/mpaslex -Fu../ideintf/units/i386-linux -Fu../designer -Fu../debugger -Fu../debugger/frames -Fu../converter -Fu../packager -Fu../packager/frames -Fu../packager/units/i386-linux -Fu../units/i386-linux -Fuframes -Fu. -Fu/usr/local/lib/fpc/2.6.0/units/i386-linux/rtl -Fu/usr/local/lib/fpc/2.6.0/units/i386-linux/regexpr -Fiinclude -Fiinclude/linux -Fi../images -FE.. -FU../units/i386-linux -Flinclude -Fl/etc/ld.so.conf.d/*.conf -Fu/usr/local/lib/fpc/2.6.0/units/i386-linux/* -di386 lazarus.pp<br>
Free Pascal Compiler version 2.6.0 [2012/08/22] for i386<br>Copyright (c) 1993-2011 by Florian Klaempfl and others<br>Target OS: Linux for i386<br>Compiling lazarus.pp<br>Compiling resource ../units/i386-linux/lazarus.or<br>
Linking ../lazarus<br>ld: warning: ../link.res contains output sections; did you forget -T?<br>ld: cannot find -lgdk_pixbuf-2.0<br>ld: cannot find -lgtk-x11-2.0<br>ld: cannot find -lgdk-x11-2.0<br>ld: cannot find -lgobject-2.0<br>
ld: cannot find -lglib-2.0<br>ld: cannot find -lgthread-2.0<br>ld: cannot find -lgmodule-2.0<br>ld: cannot find -lpango-1.0<br>ld: cannot find -latk-1.0<br>ld: cannot find -lcairo<br>lazarus.pp(130,1) Error: Error while linking</blockquote>
</div><div><br></div><div>When it happened with X11, the "apt-get install libx11-dev:i386" solved. However for the other libs it does not work.</div><div><br></div>-- <br>Atenciosamente,<br>Alexsander da Rosa<br>
<br><br>
</div>