[fpc-pascal] Building Android cross compiler error
Michalis Kamburelis
michalis.kambi at gmail.com
Tue Feb 23 07:53:08 CET 2016
> /Developer/Android/android-ndk-r10e/toolchains/arm-linux-
androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-ld.bfd:
cannot find -lc
pp.pas(219,36) Error: Error while linking
>
>
Have you defined the -Fl option correctly?
For example, I put something like this in my ~/.fpc.cfg:
#ifdef android
#ifdef cpuarm
-Fl/home/michalis/.../android/ndk/platforms/android-19/arch-arm/usr/lib/
#endif
#ifdef cpu386
-Fl/home/michalis/.../android/ndk/platforms/android-19/arch-x86/usr/lib/
#endif
#endif
You can see Castle Game Engine instructions about setting up Android+FPC
environment on https://github.com/castle-engine/castle-engine/wiki/Android :)
Michalis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160222/26da42f0/attachment.html>
More information about the fpc-pascal
mailing list