* * *

Author Topic: Virtual Machine to programming Android with Lazarus  (Read 5187 times)

xinyiman

  • Hero Member
  • *****
  • Posts: 1566
Virtual Machine to programming Android with Lazarus
« on: September 08, 2015, 10:58:27 am »
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
Ubuntu and Mint
Lazarus: 1.2.6
FPC: 2.6.4

renabor

  • Jr. Member
  • **
  • Posts: 67
Re: Virtual Machine to programming Android with Lazarus
« Reply #1 on: September 08, 2015, 03:48:27 pm »
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?

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
FPC 3.0.3 | Lazarus 1.7 | Ubuntu Gnome 16.10 64bit

xinyiman

  • Hero Member
  • *****
  • Posts: 1566
Re: Virtual Machine to programming Android with Lazarus
« Reply #2 on: September 08, 2015, 04:21:13 pm »
I try and let you know

is 32-bit
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?

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
Ubuntu and Mint
Lazarus: 1.2.6
FPC: 2.6.4

koloth

  • New member
  • *
  • Posts: 14
    • http://users.forthnet.gr/chi/pitbull/
Re: Virtual Machine to programming Android with Lazarus
« Reply #3 on: September 09, 2015, 10:57:42 am »
Same here... can you at least give an md5?

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?

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

xinyiman

  • Hero Member
  • *****
  • Posts: 1566
Re: Virtual Machine to programming Android with Lazarus
« Reply #4 on: September 09, 2015, 12:44:14 pm »
md5sum

6ced497e8f4f19c84cc4637f74d243aa  Laz-Android.ova
Ubuntu and Mint
Lazarus: 1.2.6
FPC: 2.6.4

rvk

  • Hero Member
  • *****
  • Posts: 2648
Re: Virtual Machine to programming Android with Lazarus
« Reply #5 on: September 09, 2015, 03:48:29 pm »
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

  • Hero Member
  • *****
  • Posts: 1566
Re: Virtual Machine to programming Android with Lazarus
« Reply #6 on: September 09, 2015, 04:15:44 pm »
And then there was a problem in upload. Because my zip is almost 8 gb ?! Reloading and you'll know! Be patient
Ubuntu and Mint
Lazarus: 1.2.6
FPC: 2.6.4

Paul Breneman

  • Full Member
  • ***
  • Posts: 242
    • Control Pascal
Re: Virtual Machine to programming Android with Lazarus
« Reply #7 on: September 09, 2015, 11:03:43 pm »
And 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
Regards,
Paul Breneman
www.ControlPascal.com

koloth

  • New member
  • *
  • Posts: 14
    • http://users.forthnet.gr/chi/pitbull/
Re: Virtual Machine to programming Android with Lazarus
« Reply #8 on: September 10, 2015, 10:19:54 am »
And 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

  • Full Member
  • ***
  • Posts: 242
    • Control Pascal
Re: Virtual Machine to programming Android with Lazarus
« Reply #9 on: September 16, 2015, 04:33:11 am »
Hopefully 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?
« Last Edit: September 16, 2015, 04:36:23 am by Paul Breneman »
Regards,
Paul Breneman
www.ControlPascal.com

DonAlfredo

  • Hero Member
  • *****
  • Posts: 744
Re: Virtual Machine to programming Android with Lazarus
« Reply #10 on: September 16, 2015, 02:20:31 pm »
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

  • Full Member
  • ***
  • Posts: 242
    • Control Pascal
Re: Virtual Machine to programming Android with Lazarus
« Reply #11 on: September 16, 2015, 03:44:28 pm »
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)
Regards,
Paul Breneman
www.ControlPascal.com

Paul Breneman

  • Full Member
  • ***
  • Posts: 242
    • Control Pascal
Re: Virtual Machine to programming Android with Lazarus
« Reply #12 on: September 19, 2015, 08:27:25 pm »
I tried fpcup in ReactOS http://wiki.freepascal.org/Small_Virtual_Machines and things almost work!  Help needeed!
Regards,
Paul Breneman
www.ControlPascal.com

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus