Am 20.12.2012 10:19, schrieb Thomas Schatzl:
- 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.
If it's only android you want to evaluate, you may want to give the
i386-android target which should also work with that branch a try. This
should work if you do not need OpenGLES or something hardware specific.
I do not actually know, but there should be i386/android simulator
images available. Performance of those should be much better. :)
I now tried to rebuild for i386. This is the command I used (I already
replaced GOLD by the BFD linker):
make all OS_TARGET=android CPU_TARGET=i386
BINUTILSPREFIX=i686-linux-android-
CROSSBINDIR=D:\Android\android-ndk-r8c\toolchains\x86-4.6\prebuilt\windows\bin
CROSSOPT="-FlD:\Android\android-ndk-r8c\platforms\android-14\arch-x86\usr\lib"
This is the result:
=== output begin ===
D:/fpc/android/compiler/ppcross386.exe -Tandroid -XPi686-linux-android-
-Xr -Ur -Xs -O2 -n -Fui386 -Fusystems -FuD:/fpc/
android/rtl/units/i386-android -Fii386
-FDD:\Android\android-ndk-r8c\toolchains\x86-4.6\prebuilt\windows\bin
-FE. -FUi38
6/units/i386-android -dRELEASE
-FlD:\Android\android-ndk-r8c\platforms\android-14\arch-x86\usr\lib
-di386 -dGDB -dBROW
SERLOG -Fux86 -Sew pp.pas
i386\units\i386-android\pp.o: file not recognized: File format not
recognized
pp.pas(234,1) Error: Error while linking
pp.pas(234,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
make.exe[3]: *** [ppc386] Error 1
make.exe[3]: Leaving directory `D:/fpc/android/compiler'
make.exe[2]: *** [cycle] Error 2
make.exe[2]: Leaving directory `D:/fpc/android/compiler'
make.exe[1]: *** [compiler_cycle] Error 2
make.exe[1]: Leaving directory `D:/fpc/android'
=== output end ===
Did I miss some specific options?
Regards,
Sven
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel