[fpc-devel] Error building branch targetandroid

Jonas Maebe jonas.maebe at elis.ugent.be
Fri Sep 14 16:09:24 CEST 2012


Felipe Monteiro de Carvalho wrote on Fri, 14 Sep 2012:

> make crossinstall CPU_TARGET=arm OS_TARGET=android
> OPT="-FlC:/Programas/android-ndk-r7b/platforms/android-8/arch-arm/usr/lib/"
> CROSSOPT="-CpARMv6 -CfSoft" BINUTILSPREFIX=arm-linux-androideabi-
> INSTALL_PREFIX=output
> pause
> Note that due to some kind of hellish issue I indeed needed to write
> C:/ instead of C:\ (arggg!!!)

The "some kind of hellish" issue is that \ means "escape the next  
character". So simply never put a backslash at the end of an option  
passed to make, because then it escapes quotes or spaces. This should  
work fine:
   -FlC:\Programas\android-ndk-r7b\platforms\android-8\arch-arm\usr\lib

> But even after doing that, the result seams to be the same. I get the
> same linking error, and ppas.bat did not change:

That's because you added it to OPT instead of to CROSSOPT. The fppkg  
program is compiled for android/arm, and hence the CROSSOPT options  
are used.


Jonas



More information about the fpc-devel mailing list