Okay, I am now back with my main machine and struggling about to merge the instructions from
http://wiki.lazarus.freepascal.org/Androidand
http://wiki.lazarus.freepascal.org/Custom_Drawn_InterfaceI notice the virtual box hasnt been updated since 2011 so trying to do with fpcsrc trunk and latest lazarus/fpc2.6.2
I am trying the project option test but here is the layout.
My lazarus layout is
c:\lazarus\fpc\2.6.2
I moved the crosscompiler to
c:\lazarus\fpc\pp\
When I start Lazarus is says compiler path is:
C:\lazarus\fpc\pp\bin\i386-win32\ppcrossarm.exe which look right
BUT it also say Error: fpc.cfg is missing.
Now I start the IDE (ignore the warning). I go to project options Test
Test is:
C:\lazarus\fpc\pp\bin\i386-win32\ppcrossarm.exe -MObjFPC -Scghi -WR -O1 -Tlinux -Parm -Xs -XX -va -FiC:\lazarus\examples\androidlcl\lib\arm-linux -FlC:\Android\android-ndk-r8e\platforms\android-14\arch-arm\usr\lib -FlC:\Android\android-ndk-r8e\toolchains\arm-linux-androideabi-4.7\prebuilt\windows-x86_64\lib\gcc\arm-linux-androideabi\4.7 -FuC:\lazarus\lcl\units\arm-linux\customdrawn -FuC:\lazarus\lcl\units\arm-linux -FuC:\lazarus\components\lazutils\lib\arm-linux -FuC:\lazarus\packager\units\arm-linux -FuC:\lazarus\examples\androidlcl\ -FUC:\lazarus\examples\androidlcl\lib\arm-linux\ -l -dLCL -dLCLcustomdrawn -dANDROID -Xd -CpARMV6 C:\Users\scaddenp\AppData\Local\Temp\testcompileroptions.pas
It reports:
Hint: using config file C:\lazarus\fpc\pp\i386-win32\fpc.cfg (ie the one it says it cant find!)
Now I get a lot bunch of missing paths:
C:\lazarus\examples\androidlcl\lib\arm-linux
C:\lazarus\lcl\units\arm-linux\customdrawn
C:\lazarus\lcl\units\arm-linux
I assume I should point to the units under pp?? (but no customdrawn there).
c:\lazarus\components\lazutils\lib\arm-linux
c:\lazarus\packager\units\arm-linux
http://wiki.lazarus.freepascal.org/Custom_Drawn_Interface/Android#Building_the_compiler_yourself_in_Windowstalks about getting units from branch fpcAndroid - still do this? Also, it talks about getting these
executables out of the sdk. I assume I still do this?
C:\Programas\fpcandroid\output\bin\i386-win32\arm-linux-as.exe C:\Programas\fpcandroid\output\bin\i386-win32\arm-linux-ld.exe C:\Programas\fpcandroid\output\bin\i386-win32\arm-linux-strip.exe
As you can see, thoroughly confused here.