![]() # -O2 level 2 optimizations (-O1 + slower optimizations) # -O1 level 1 optimizations (quick optimizations) ![]() # Set default codegeneration checks (iocheck, overflow, range, stack) # (can be overruled with -CD, -CS at the commandline) # Uncomment the next line if you always want static/dynamic units by default # Allow goto, inline, C-operators, C-vars # -Ss constructor name must be init (destructor must be done) # -SIcomCOM compatible interface (default) # -Se compiler stops after the errors (default is 1) # -Sc supports operators like C (*=,+=,/= and -=) # All assembler blocks are AT&T styled by default # Turn on Object Pascal extensions by default # -Mmacpas tries to be compatible to the macintosh pascal dialects # -Mobjfpc switch some Delphi 2 extensions on # For a debug version compile with debuginfo and all codegeneration checks on # For a release compile with optimizes and strip debuginfo # Try compiling with the -dRELEASE or -dDEBUG on the commandline # Some examples (for switches see below, and the -? helppages) # nested #IFNDEF, #IFDEF, #ENDIF, #ELSE, #DEFINE, #UNDEF are allowed # Example fpc.cfg for Free Pascal Compiler # Config file generated by fpcmkcfg on 9-11-11 - 22:08:31 Sudo ln -sf /opt/fpc/lib/fpc/2.6.1/ppcrossarm /usr/bin/ppcarm So I use some scripts for switching between different versions of FreePascal(this one is for switching to version from fixes_2_6 branch): And my script install everything to /opt/fpc, not to /usr. My script will build FreePascal 2.6.x from fixes_2_6 branch, so it should be 2.6.x version. I get /usr/lib/fpc/2.7.1/ppcrossarm spat back at me. Reminds one of the DLL hell you could get from windows 95.Īnyone here have a detailed procedure on their setup with FPC (or lazarus) for cross compiling to android they'd be willing to share by any chance? I'm in a state of denial about surrendering my article to the trash can because FPC is playing hard to get - as am I about publishing faulty instructions! I had a go at fixing up the paths and running through it manually but I get hangs during compilations, random errors from code and missing files. The scripts detailed on this page: seem to be a little dated. Virtual machine of x86 Linux Mint 11 (its 100% ubuntu compatible so no problems there, just better performance :) )Ī copy of the Android NDK and SDK (its possible the NDK is a little iffy but the emulator and what not works)Ī copy of freepascal 2.6.0 for x86 from the deb filesĪ copy of the Sun java 6 sdk from the APT repo Of course, I tried trawling over the darn pages again and again, but a human can only hit his head against a wall so many times before going insane, so here's where I'm at (where I think I know it all works well): The wiki instructions worked once and once only - I got one APK out and the next F8 key later it was crash this, error that. ![]() The article for PGD gamer has taken a turn for the worse.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |