how install and config android for lazarous? lazarus / 43-Android ---------------------------------------------------------------------- gbg · 2014-04-28 14:59 hello H new in lazarus i download and install lazarus-1.2.2-fpc-2.6.4-win64.exe and download fpc4android_2_6 by svn to folder D:\lazarus\ fpc4android_2_6 and download fpcsrc by svn to folder D:\lazarus\fpcsrc What should I do? ---------------------------------------------------------------------- Leledumbo · 2014-04-28 15:43 http://wiki.freepascal.org/Android http://pascalgeek.blogspot.com/2013/10/android-programming-with- lazarus.html If you don't understand the contents, you are not ready for it. Android target is in trunk, meaning that it's still being developed and not end user ready. Even after it's stable I don't think there will be a ready to use package due to Android SDK/NDK licensing issue (if I can understand it well, redistributing them is not allowed, user must always download and setup them manually). ---------------------------------------------------------------------- gbg · 2014-04-28 16:24 Quote from: Leledumbo on April 28, 2014, 05:43:18 pmhttp://wiki.freepascal.org/Android http://pascalgeek.blogspot.com/2013/10/android-programming-with- lazarus.html If you don't understand the contents, you are not ready for it. Android target is in trunk, meaning that it's still being developed and not end user ready. Even after it's stable I don't think there will be a ready to use package due to Android SDK/NDK licensing issue (if I can understand it well, redistributing them is not allowed, user must always download and setup them manually). I almost understanding, Android NDK path is in folder C:\Program Files\Android SDK\android- ndk-r8d FPC svn sources path in C:\Lazarus\fpcsrc ***The cross-compiler installation path: C:\Develop\FPC\pp <-- is empty? i use this command : D:\lazarus\fpcsrc>d:\lazarus\fpc\2.6.4\bin\x86_64-win64\make clean crossall cros sinstall OS_TARGET=android CPU_TARGET=arm CROSSOPT="-CfVFPV3" INSTALL_PREFIX=d:\ lazarus\FPC\pp result have error : (full result in attach file) d:/lazarus/fpc/2.6.4/bin/x86_64-win64/make -C rtl all make[3]: Entering directory `D:/lazarus/fpcsrc/rtl' d:/lazarus/fpc/2.6.4/bin/x86_64-win64/make -C android all make[4]: Entering directory `D:/lazarus/fpcsrc/rtl/android' d:/lazarus/fpc/2.6.4/bin/x86_64-win64/gmkdir.exe -p D:/lazarus/fpcsrc/rtl/units/ arm-android arm-linux-androideabi-as  -o D:/lazarus/fpcsrc/rtl/units/arm- android/prt0.o arm/ prt0.as process_begin: CreateProcess(NULL, arm-linux-androideabi-as -o D:/lazarus/fpcsrc /rtl/units/arm-android/prt0.o arm/prt0.as, ...) failed. make (e=2): The system cannot find the file specified. make[4]: *** [prt0.o] Error 2 make[4]: Leaving directory `D:/lazarus/fpcsrc/rtl/android' make[3]: *** [android_all] Error 2 make[3]: Leaving directory `D:/lazarus/fpcsrc/rtl' make[2]: *** [rtl_all] Error 2 make[2]: Leaving directory `D:/lazarus/fpcsrc' make[1]: *** [build-stamp.arm-android] Error 2 make[1]: Leaving directory `D:/lazarus/fpcsrc' make: *** [crossall] Error 2 ---------------------------------------------------------------------- Leledumbo · 2014-04-29 01:34 Quotearm-linux-androideabi-as  -o D:/lazarus/fpcsrc/rtl/units/arm- android/prt0.o arm/ prt0.as process_begin: CreateProcess(NULL, arm-linux-androideabi-as -o D:/lazarus/fpcsrc /rtl/units/arm-android/prt0.o arm/prt0.as, ...) failed. make (e=2): The system cannot find the file specified. ---------------------------------------------------------------------- gbg · 2014-04-29 10:08 OK I install it and create fpc.cfg in folder D:\Lazarus\FPC\pp\bin\i386-win32 but in lazarus , i have error an can not compile program ---------------------------------------------------------------------- zeljko · 2014-04-29 10:16 You must set "arm" as target processor in your project I guess. ---------------------------------------------------------------------- gbg · 2014-04-29 10:38 Quote from: zeljko on April 29, 2014, 12:16:58 pmYou must set "arm" as target processor in your project I guess. now work ---------------------------------------------------------------------- zeljko · 2014-04-29 13:39 Glad to hear that ---------------------------------------------------------------------- gbg · 2014-04-29 16:47 now i have this error D:\lazarus\packager\registration\lazaruspackageintf.pas(104) Error: Assembler arm-android-as.exe not found, switching to external assembling ---------------------------------------------------------------------- zeljko · 2014-04-29 16:52 So, you're missing exactly what it says. I don't know how it should be on windows, but it I've installed cross-arm-binutils on my linux box and it works. You should read wiki about android once again, probably you missed that part. EDIT: or you must pass something to the linker in compiler options. ---------------------------------------------------------------------- gbg · 2014-04-29 20:56 i dont know i remove and install again,but problom not solve maybe XE5 & XE6 & lazarus its not helpfull for android development!  its better to emigrat to JAVA ---------------------------------------------------------------------- Leledumbo · 2014-04-29 23:03 Quotemaybe XE5 & XE6 & lazarus its not helpfull for android development!  its better to emigrat to JAVA   I've warned you, twice. In my first comment and in the given link to my blog. You are NOT ready because you skip important simple details, which you SHOULD NEVER do if you want to code for this platform. Feel free to try Java if you're willing to waste RAM and harddisk for that bulky resource hog yet slow IDE, I'm comfortable enough with Lazarus and Free Pascal. QuoteAssembler arm-android-as.exe not foundVery easy error to fix, just rename the assembler (and probably the linker) binary to the expected one as above message. ---------------------------------------------------------------------- gbg · 2014-04-30 20:38 i copy all arm-linux-androideabi-as.exe to arm-linux-android-as.exe ...\PlatformSDKs\android-ndk-r8e\toolchains\arm-linux- androideabi-4.4.3 ...\PlatformSDKs\android-ndk-r8e\toolchains\arm-linux-androideabi-4.6 ...\PlatformSDKs\android-ndk-r8e\toolchains\arm-linux-androideabi-4.7 but have Error ---------------------------------------------------------------------- Leledumbo · 2014-05-01 02:44 The assembler name is arm-android-as, not arm-linux-android-as. I believe you don't even understand where that came from because you SKIM (or worse, SKIP) my blog post, instead of READING it. ---------------------------------------------------------------------- gbg · 2014-05-01 11:16 Quote from: Leledumbo on May 01, 2014, 04:44:16 amThe assembler name is arm-android-as, not arm-linux-android-as. I believe you don't even understand where that came from because you SKIM (or worse, SKIP) my blog post, instead of READING it. Sorry my english is very bad now have this Error : registerfcl.pas(45,22) Fatal: Can not find unit process used by RegisterFCL. Check if package FCL is in the dependencies. ---------------------------------------------------------------------- Leledumbo · 2014-05-01 23:45 QuoteSorry my english is very badSo is your reading behavior, there are still things you skip. I won't answer as I've documented and I won't repeat it just for lazy readers.