Virtual Machine to programming Android with Lazarus lazarus / 43-Android ---------------------------------------------------------------------- xinyiman · 2015-09-08 08:58 Hello guys, I created a virtual machine to compile for Android. Good job Linux version: Lubuntu 15.04 www.lazaruspascal.it/download_personali/Laz-Android.ova.zip ---------------------------------------------------------------------- renabor · 2015-09-08 13:48 Great! What about creating a torrent? I've tried downloading it but got an error unzipping it, can you verify? Code: [Select]  Archive:  Laz-Android.ova.zip   End-of-central-directory signature not found.  Either this file is not   a zipfile, or it constitutes one disk of a multi-part archive.  In the   latter case the central directory and zipfile comment will be found on   the last disk(s) of this archive.   unzip:  cannot find zipfile directory in one of Laz-Android.ova.zip or         Laz-Android.ova.zip.zip, and cannot find Laz- Android.ova.zip.ZIP, period. Lubuntu is 32 or 64 bit? Quote from: xinyiman on September 08, 2015, 10:58:27 amHello guys, I created a virtual machine to compile for Android. Good job Linux version: Lubuntu 15.04 www.lazaruspascal.it/download_personali/Laz-Android.ova.zip ---------------------------------------------------------------------- xinyiman · 2015-09-08 14:21 I try and let you know is 32-bit Quote from: renabor on September 08, 2015, 03:48:27 pmGreat! What about creating a torrent? I've tried downloading it but got an error unzipping it, can you verify? Code: [Select]  Archive:  Laz-Android.ova.zip   End-of-central-directory signature not found.  Either this file is not   a zipfile, or it constitutes one disk of a multi-part archive.  In the   latter case the central directory and zipfile comment will be found on   the last disk(s) of this archive.   unzip:  cannot find zipfile directory in one of Laz-Android.ova.zip or         Laz-Android.ova.zip.zip, and cannot find Laz- Android.ova.zip.ZIP, period. Lubuntu is 32 or 64 bit? Quote from: xinyiman on September 08, 2015, 10:58:27 amHello guys, I created a virtual machine to compile for Android. Good job Linux version: Lubuntu 15.04 www.lazaruspascal.it/download_personali/Laz-Android.ova.zip ---------------------------------------------------------------------- koloth · 2015-09-09 08:57 Same here... can you at least give an md5? Quote from: renabor on September 08, 2015, 03:48:27 pmGreat! What about creating a torrent? I've tried downloading it but got an error unzipping it, can you verify? Code: [Select]  Archive:  Laz-Android.ova.zip   End-of-central-directory signature not found.  Either this file is not   a zipfile, or it constitutes one disk of a multi-part archive.  In the   latter case the central directory and zipfile comment will be found on   the last disk(s) of this archive.   unzip:  cannot find zipfile directory in one of Laz-Android.ova.zip or         Laz-Android.ova.zip.zip, and cannot find Laz- Android.ova.zip.ZIP, period. Lubuntu is 32 or 64 bit? Quote from: xinyiman on September 08, 2015, 10:58:27 amHello guys, I created a virtual machine to compile for Android. Good job Linux version: Lubuntu 15.04 www.lazaruspascal.it/download_personali/Laz-Android.ova.zip ---------------------------------------------------------------------- xinyiman · 2015-09-09 10:44 md5sum 6ced497e8f4f19c84cc4637f74d243aa  Laz-Android.ova ---------------------------------------------------------------------- rvk · 2015-09-09 13:48 Downloaded file Laz-Android.ova.zip is 3.551.081.081 bytes in size and even 7-zip can't open it. You should also always give the original .zip md5-sum so people can check if the download was correct. With a corrupt zip I can't even check the md5 of the .ova file. ---------------------------------------------------------------------- xinyiman · 2015-09-09 14:15 And then there was a problem in upload. Because my zip is almost 8 gb ?! Reloading and you'll know! Be patient ---------------------------------------------------------------------- Paul Breneman · 2015-09-09 21:03 Quote from: xinyiman on September 09, 2015, 04:15:44 pmAnd then there was a problem in upload. Because my zip is almost 8 gb ?! Reloading and you'll know! Be patient Almost 8GB? Hopefully we can get fpcup working to do this sort of thing with less resources: http://wiki.freepascal.org/Small_Virtual_Machines ---------------------------------------------------------------------- koloth · 2015-09-10 08:19 Quote from: xinyiman on September 09, 2015, 04:15:44 pmAnd then there was a problem in upload. Because my zip is almost 8 gb ?! Reloading and you'll know! Be patient Is it updated yet? I still get the 3.3GB... ---------------------------------------------------------------------- Paul Breneman · 2015-09-16 02:33 Quote from: Paul Breneman on September 09, 2015, 11:03:43 pmHopefully we can get fpcup working to do this sort of thing with less resources: http://wiki.freepascal.org/Small_Virtual_Machines There are now instructions on that wiki page to make a 2.9 GB Debian LXDE VM (7z should compess smaller)  that works with fpcup. No Android yet but fpcup should make that easier, right? ---------------------------------------------------------------------- DonAlfredo · 2015-09-16 12:20 I have enhanced crosscompiling to android with fpcup ! It should now be as easy as 1) install android NDK in your home-directory (location /home/user/android-ndk-......) 2) run fpcup: Code: [Select]fpcup --ostarget=android --cputarget=arm --only=FPCCleanOnly,FPCBuildOnly Same is valid on Windows. You can optionally define the NDK-path by adding the two extra options (Windows example): --crossbindir=C:\Users\Me\Downloads\android-ndk-r10e\toolchains\arm- linux-androideabi-4.9\prebuilt\windows\bin --crosslibdir=C:\Users\Me\Downloads\android- ndk-r10e\platforms\android-21\arch-arm\usr\lib ---------------------------------------------------------------------- Paul Breneman · 2015-09-16 13:44 Thanks again DonAlfredo!  I think fpcup is going to make things a lot easier for many people.  I just compressed my Debian LXDE VM and 7z reduced it from 2.9 GB to 733 MB.  Not extremely big, and fpcup allows the rest to be easily added. My immediate plans to use fpcup (help appreciated): 1) Redo the ReactOS VM 2) Learn how to minimize fpcup so could use on the console VM to compile FPC for embedded arm (Teensy) 3) Use for Android (per your notes) ---------------------------------------------------------------------- Paul Breneman · 2015-09-19 18:27 I tried fpcup in ReactOS http://wiki.freepascal.org/Small_Virtual_Machines and things almost work!  Help needeed!