Recent

Author Topic: we should maybe bundle/concentrate our work? laztoapk and android module wizard.  (Read 33157 times)

DelphiFreak

  • Sr. Member
  • ****
  • Posts: 255
    • Fresh sound.
Hi,

I am trying to create an innosetup project to download and install the needed packages.

The download of the external packages (sdk,ndk and laz4android I got working.
Code: [Select]
[_ISToolDownload]
Source: http://dl.google.com/android/android-sdk_r22.3-windows.zip; DestDir: {tmp}; DestName: android-sdk_r22.3-windows.zip
Source: http://dl.google.com/android/ndk/android-ndk-r9b-windows-x86.zip; DestDir: {tmp}; DestName: android-ndk-r9b-windows-x86.zip
Source: http://sdrv.ms/12cHbIZ; DestDir: {tmp}; DestName: laz4android download

But how to tell Innosetup to extract the two downloaded zip-files?
Linux Mint 20.3, Lazarus 2.3, Windows 10, Delphi 10.3 Rio, Delphi 11.1 Alexandria

DelphiFreak

  • Sr. Member
  • ****
  • Posts: 255
    • Fresh sound.
Hello,

I am currently trying to create an installer with InnoSetup to simplify installation&setup.
I got it working to download and un-pack sdk and ndk. see http://sourceforge.net/p/laztoapk/svn/HEAD/tree/trunk/install/laztoapk.iss

My questions: (maybe  truetom can answer?)
A) Could you create an InnoSetup installer for laz4android? ( maybe with a recent version of fpc 2.7.1)
B) Could you place the setup.exe somewhere I can grab it with my Installer? (Automatic grabbing from your SkyDrive did not work)

Thank you all.
Linux Mint 20.3, Lazarus 2.3, Windows 10, Delphi 10.3 Rio, Delphi 11.1 Alexandria

truetom

  • Jr. Member
  • **
  • Posts: 73
    • http://sourceforge.net/projects/laz4android/
Hello, DelphiFreak

To answer your questions:

A) I have create a new laz4android package with a recent of FPC 2.7.1 to test.It's create with FPC SVN 26270 + Lazarus trunk SVN 43585  and use android NDK r9b(arm-linux-androideabi-4.6 + x86-4.6),but this package must be test. this package is 3in1(win32/arm-andriod/i386-android).
In this days I will be uploaded to skydrive.
I will also try use InnoSetup to create a installer for laz4android package.

B)Sorry , I have not other space to place this package, do you have one or can you provide a suggestion for me?

Thanks and Best Regards!
laz4android : a Lazarus for Android Package.
http://sourceforge.net/projects/laz4android/

DelphiFreak

  • Sr. Member
  • ****
  • Posts: 255
    • Fresh sound.
Hello TrueTom,

great news from your side. Thank you.

 B) I recommend you to host your stuff at sourceforge.net. It's free.
I uploaded my experimental installer:  https://sourceforge.net/projects/laztoapk/files/?source=navbar

If you need help about InnoSetup, I will try to help you.

Best regards,

Sam
Linux Mint 20.3, Lazarus 2.3, Windows 10, Delphi 10.3 Rio, Delphi 11.1 Alexandria

truetom

  • Jr. Member
  • **
  • Posts: 73
    • http://sourceforge.net/projects/laz4android/
Hello , DelphiFreak

I have uploaded new laz4android package to sourceforge.net,not a installer file just a 7z file:https://sourceforge.net/projects/laz4android/files/?source=navbar

Thanks and Best Regards!
laz4android : a Lazarus for Android Package.
http://sourceforge.net/projects/laz4android/

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Hello TrueTom, thank you very much!
« Last Edit: December 25, 2013, 02:46:13 pm by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

DelphiFreak

  • Sr. Member
  • ****
  • Posts: 255
    • Fresh sound.
Hello TrueTom,

thank you very much for uploading laz4android to sourceforge.

You can watch the progress of my installer at https://sourceforge.net/projects/laztoapk/files/

Sam

Linux Mint 20.3, Lazarus 2.3, Windows 10, Delphi 10.3 Rio, Delphi 11.1 Alexandria

DelphiFreak

  • Sr. Member
  • ****
  • Posts: 255
    • Fresh sound.
Hello TrueTom,

maybe you could change your "bulid.bat" to something like this:

if "%1"=="" SET FPC_BIN_PATH=%~dp0
if NOT "%1"=="" SET FPC_BIN_PATH=%1

This would help me to call you batchfile with an additional command-line parameter.

e.g. build.bat "C:\Program Files\laztoapk\3rdparty\laz4android"

And I think the path to strip.exe should be

%FPC_BIN_PATH%\fpc\2.7.1\bin\i386-win32\strip.exe lazarus.exe
%FPC_BIN_PATH%\fpc\2.7.1\bin\i386-win32\strip.exe lazbuild.exe
%FPC_BIN_PATH%\fpc\2.7.1\bin\i386-win32\strip.exe startlazarus.exe

Thank you.

Sam
« Last Edit: December 27, 2013, 05:13:46 pm by DelphiFreak »
Linux Mint 20.3, Lazarus 2.3, Windows 10, Delphi 10.3 Rio, Delphi 11.1 Alexandria

truetom

  • Jr. Member
  • **
  • Posts: 73
    • http://sourceforge.net/projects/laz4android/
Hello , DelphiFreak

I have uploaded a laz4android installer package to sourceforge.net,https://sourceforge.net/projects/laz4android/files/?source=navbar (OK). it's name laz4android1.3-43585-FPC2.7.1.exe.

I wish this installer file could useful to you.

Thanks and Best Regards!
« Last Edit: December 31, 2013, 01:56:57 am by truetom »
laz4android : a Lazarus for Android Package.
http://sourceforge.net/projects/laz4android/

DelphiFreak

  • Sr. Member
  • ****
  • Posts: 255
    • Fresh sound.
Hello forum, Hello  truetom,

thank you for your new installer.

I have integrated it into my setup.

IMPORTANT:

This setup will download around 600MByte (android sdk,ndk and laz4android) and extract this stuff (takes a while ;-)). Means around 4GByte Diskspace is needed.

https://sourceforge.net/projects/laztoapk/files/setup_laztoapk_alpha_003_experimental.exe/download

My setup downloads&installs now android ndk,sdk,laz4android. That's fine so far.



But there are still some small issues I'd like to get solved.

A) please change your build.bat as suggested in my previous message.

B) after installation of laz4android, I need to call startlazarus.exe (IDE/FPC setup dialog shows up). Could this be automated somehow so the lazarus IDE is not started at that time. ( just writing of the needed config files?)

C) I start "SDK Manager.exe" and "AVD Manager.exe" from Innosetup. Unfortunally the get started in parallel. But I would like to start "AVD Manager.exe" after "SDK Manager.exe" has finished. How to do this with innosetup?

Thank you.

Sam

« Last Edit: January 08, 2014, 09:32:01 pm by DelphiFreak »
Linux Mint 20.3, Lazarus 2.3, Windows 10, Delphi 10.3 Rio, Delphi 11.1 Alexandria

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
A) please change your build.bat as suggested in my previous message.
FYI: Currently working on fpcup support for ARM (linux & android) cross compilers ;) fpcup's philosophy is not to automate getting binutils/libs (e.g. from the Android NDK) downloaded, but check for their presence.
If the check succeeds, it can build an FPC cross compiler.
Perhaps worth looking into integration with fpcup a bit further down the line - or keeping it in mind.

fpcup is open source, so of course I'd be happy if anybody used some code from it.

B) after installation of laz4android, I need to call startlazarus.exe (IDE/FPC setup dialog shows up). Could this be automated somehow so the lazarus IDE is not started at that time. ( just writing of the needed config files?)
fpcup has functionality to write basic Lazarus config files. As Lazarus does not provide config file writing ability to external parties (yet), it's stand alone code but does use laz_xml2 (I think the name was) and other units Lazarus itself uses.
fpcup also creates an fpc.cfg configuration file that reflect the correct directories etc, including cross-compiler setup)

C) I start "SDK Manager.exe" and "AVD Manager.exe" from Innosetup. Unfortunally the get started in parallel. But I would like to start "AVD Manager.exe" after "SDK Manager.exe" has finished. How to do this with innosetup?
I vaguely remember there should be some kind of "synchronous" option in the inno setup keywords for running external exes that waits for completion...

Thank you.
Thank you ;)
[/quote]
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

DelphiFreak

  • Sr. Member
  • ****
  • Posts: 255
    • Fresh sound.
Hello BigChimp,

thank you for your answers.
I am really impressed by your project "fpcup" and I am glad you are working on arm/android support.

With your "fpcup" solution I could replace the solution "laz4android".
But for now I will stay with "laz4android", because it does not contain more dependencies. (e.g. svn)

I would like to make things easier and need to avoid as many external stuff as possible.
It's absolutly horrible to have 4GByte to install to develop a little "hello world" for android.

Here my latest installer:  WARNING: This is still experimental!

http://sourceforge.net/projects/laztoapk/files/setup_laztoapk_alpha_004_experimental.exe/download

Innosetup:
https://sourceforge.net/p/laztoapk/svn/HEAD/tree/trunk/install/laztoapk.iss

Regards,
Sam
Linux Mint 20.3, Lazarus 2.3, Windows 10, Delphi 10.3 Rio, Delphi 11.1 Alexandria

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Thanks, Sam, that's clear.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

DelphiFreak

  • Sr. Member
  • ****
  • Posts: 255
    • Fresh sound.
Hello truetom,

I took an attempt today to use your laz4android package from sourceforge (v43858).
It does build the apk and I can install it, but if I click onto a button then the app crashes.

If I compile the same project with your previous version of laz4android (v41139 from skydrive), then the app works fine.

https://dl.dropboxusercontent.com/u/3753548/project1_41139.7z  --> Works ok.
https://dl.dropboxusercontent.com/u/3753548/project1_43585.7z  --> Start's but crashes when a button is clicked.

Do you have any idea what could be wrong?

Thank you.

Sam

Linux Mint 20.3, Lazarus 2.3, Windows 10, Delphi 10.3 Rio, Delphi 11.1 Alexandria

truetom

  • Jr. Member
  • **
  • Posts: 73
    • http://sourceforge.net/projects/laz4android/
Hello DelphiFreak!

Sorry! My app also crashes.

I have not good idea.I will make a new package to test it.

Thanks and best regards!
laz4android : a Lazarus for Android Package.
http://sourceforge.net/projects/laz4android/

 

TinyPortal © 2005-2018