<div dir="ltr"><div class="gmail_extra">You have to make all cross compile targets using fpc 2.6.4 as your working compiler, and fpc 3.x as your source code compiler. </div><div class="gmail_extra"><br></div><div class="gmail_extra">First you build a fpc 3.x compiler. Assuming you want to install off your home folder somewhere, build fpc.3.x and cross compilers on osx like so:</div><div class="gmail_extra"><div class="gmail_extra"><br></div><div class="gmail_extra"># wherever you put the fpc.x source code</div><div class="gmail_extra"># i recommend somewhere under your home folder</div><div class="gmail_extra">BASE=$HOME/path/to/fpc.3.x</div><div class="gmail_extra"><br></div><div class="gmail_extra"># make and install the default fpc.3.x compiler</div><div class="gmail_extra">make all</div><div class="gmail_extra">make install INSTALL_PREFIX=$BASE</div><div class="gmail_extra"># make the cross compilers</div><div class="gmail_extra">make crossinstall OS_TARGET=osx CPU_TARGET=x86_64 INSTALL_PREFIX=$BASE</div><div class="gmail_extra">make crossinstall OS_TARGET=linux CPU_TARGET=x86_64 INSTALL_PREFIX=$BASE</div><div class="gmail_extra">make crossinstall OS_TARGET=linux CPU_TARGET=i386 INSTALL_PREFIX=$BASE</div><div class="gmail_extra">make crossinstall OS_TARGET=win32 CPU_TARGET=i386 INSTALL_PREFIX=$BASE</div><div class="gmail_extra">make crossinstall OS_TARGET=win64 CPU_TARGET=x86_64 INSTALL_PREFIX=$BASE</div><div class="gmail_extra"><div class="gmail_extra"><br></div><div class="gmail_extra"># copy the compilers to the bin folder</div><div>cp $BASE/lib/fpc/$FPC_BUILD/* $BASE/bin<br></div></div><div class="gmail_extra"><br></div><div class="gmail_extra"># make changes to your path</div><div class="gmail_extra">OLDPATH=$PATH</div><div class="gmail_extra">export PPC_CONFIG_PATH=$BASE/fpc/bin</div><div class="gmail_extra">export PATH=$PPC_CONFIG_PATH:$OLDPATH</div><div class="gmail_extra"><br></div><div class="gmail_extra"># create a new fpc.cfg in the compiler folder</div><div class="gmail_extra">$PPC_CONFIG_PATH/fpcmkcfg -d basepath=$BASE/lib/fpc/\$FPCVERSION -o $PPC_CONFIG_PATH/fpc.cfg</div></div><div class="gmail_extra"><br></div><div class="gmail_extra"># test the compiler path and configuration</div><div class="gmail_extra">cd $HOME</div><div class="gmail_extra">fpc -iv</div><div class="gmail_extra"><br></div><div class="gmail_extra">You should see 3.0.1 if using svn fixes_3_0 branch.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Next you need to find the cross compiler tools and place them in the fpc bin folder which is:</div><div class="gmail_extra"><br></div><div class="gmail_extra">$BASE/bin<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">They are named like fpc.3.x/bin/i386-linux-as or fpc.3.x/bin/x86_64-linux-ld. You need about 30 of these tools for all platforms in total. </div><div class="gmail_extra"><br></div><div class="gmail_extra">After that then you need to find the cross compiler libs, and place them in:</div><div class="gmail_extra">$BASE/lib/$CPUTARGET_$OSTARGET</div><div class="gmail_extra"><br></div><div class="gmail_extra">These are files like fpc.3.x/lib/x86_64-linux/libcairo.so or fpc.3.x/lib/i386-win32/user32.dll. There's probably 200 or so of these files you'll need.</div><div class="gmail_extra"><br></div><div class="gmail_extra">I can't tell you where to get these files, but if you're desperate you can pull them out of my bundle.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div>