[fpc-devel] Re: Building the Android branch

Den cyraid at gmail.com
Wed Dec 19 20:22:58 CET 2012

Hi Sven/Thomas,

   I was just wondering if you guys could give me a hand as well. I'm 
currently interested in using the Native "targetandroid" branch.  Right 
now I'm getting the error:

     fpcmake -p -Tarm-android Makefile.fpc
     Processing Makefile.fpc
     Error: No targets set

This is the section of my build script:


     export OS_TARGET="android"
     export CPU_TARGET="arm"

     make clean crossinstall

Is there a reason it's not using the fpcmake that has been created with 

Any help would be greatly appreciated!
Thank you for your time!

- Dennis Fehr

On 12-12-19 10:18 AM, Sven Barth wrote:
> Am 19.12.2012 16:42, schrieb Thomas Schatzl:
>> On Wed, 2012-12-19 at 16:20 +0100, Sven Barth wrote:
>>> Am 18.12.2012 17:47, schrieb Thomas Schatzl:
>>>> Looking through compiler/systems/t_android.pas, you may want to try
>>>> commmenting line 343, the one that adds info.Dynamiclinker to the
>>>> input files. Looks wrong. (system/bin/linker is passed to ld later as
>>>> --dynamic-linker option later anyway).
>>> Ok... by removing the addition of the dynamic linker I can successfully
>>> compile and link the DLL, but when starting it I get an illegal
>>> instruction error... I have not yet tested whether this can be
>>> reproduced with an empty library as well.
>>> === logcat begin ===
>>> [...]
>>> === logcat end ===
>>> Edit: Linking with debug information I could resolve the address to
>>> InterlockedExchange. Hmm... It seems that the SDK's QEMU does not
>>> emulate a ARMv6 device?
>> - yes. See http://developer.android.com/tools/devices/emulator.html.
>> Btw, there is not much point to compiling for armv6 for Android. The two
>> official ABIs are either armv5te + softfloat or armv7a + vfpv3_d16
>> (maybe v2).
> Then I'll need to recompile for ARMv5...
>> - if you are really interested about doing Android development, I
>> recommend getting a developer board. The emulator is really slow. Even
>> fast developer boards are really cheap now, e.g. quad-core 1.4Ghz ARMv7
>> with 1GB RAM for 70 USD (www.hardkernel.com , search for Odroid-U). This
>> device is actually pretty decent. Otherwise use an unused phone.
> Currently I'm mostly checking what would be necessary to get our 
> Windows Mobile application (more or less) running on Android using 
> LCL-CustomDrawn. For these tests the emulator and maybe my own Phone 
> should be enough for now.
> Thanks again. I'll report back if the situation improves :)
> Regards,
> Sven
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel

More information about the fpc-devel mailing list