User:Arny/ForumWikiToDo

From Free Pascal wiki
< User:Arny
Revision as of 18:50, 4 October 2012 by Arny (talk | contribs) (Leledumbo crosscompiler)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

The instructions for linux->win32 crosscompiler setup by @leledumbo:

I'm too lazy to edit the article for now :P, but here's what I did:

   Download fpc source (complete one, it should have compiler directory instead of just packages and rtl)
   for win32, cd to rtl and execute: make all OS_TARGET=win32 && sudo make crossinstall OS_TARGET=win32 INSTALL_PREFIX=/usr
   then cd to packages and repeat the command (same arch doesn't require different compiler)
   for win64, cd to the top directory and execute: make all OS_TARGET=win64 CPU_TARGET=x86_64 && sudo make crossinstall OS_TARGET=win64 CPU_TARGET=x86_64 INSTALL_PREFIX=/usr

Note that above INSTALL_PREFIX assume fpc lib to be in /usr/lib/fpc. After installing, don't forget to create symlink to /usr/lib/fpc/<fpc version>/ppcrossx64 in /usr/bin (if you have fpc binaries there).

I have self-built script to maintain all my fpc targets when I update from svn (currently I target i386-linux, i386-win32, x86_64-win64, arm-linux, jvm-java and jvm-android).