Recent

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

DelphiFreak

  • Full Member
  • ***
  • Posts: 246
    • Fresh sound.
hi,

as you might have seen, i have put up a tutorial about lazarus and android.

it's based on laz4android and the tool laztoapk.

now i see some threads about "android module wizard".

could some in short explain me,
a. the difference between the two projects?
b. does the "android module wizard" need other stuff e.g. eclipse and if so why?
c. is laztoapk still needed or shall i stop improving it?

thank you.

sam
Linux Mint 19.1, Lazarus 2.0, Windows 7&10, Delphi 7, Delphi 10.3 Rio

Leledumbo

  • Hero Member
  • *****
  • Posts: 8114
  • Programming + Glam Metal + Tae Kwon Do = Me
Quote
a. the difference between the two projects?
android module wizard makes use of laz4android, though basically laz4android is just a lazarus packaged for android development. the wizard adds a new project menu to and android controls tab to build android apps using data module style.
Quote
b. does the "android module wizard" need other stuff e.g. eclipse and if so why?
the wizard does need eclipse workspace (project structure generated by eclipse), because it's currently designed so. We've discussed and the author also agrees to remove it in the future since it's possible to create a template project structure that only requires ant to build.
Quote
c. is laztoapk still needed or shall i stop improving it?
no idea, but I don't use it. ant is enough for me.

jmpessoa

  • Hero Member
  • *****
  • Posts: 1479
Dear @DelphiFreak,

Since the beginning of my project I understood that his works would complement

my work precisely where it is weak: Eclipse dependency!

Then our work must meet soon now, in fact, I always thought that their

contribution is and will be very important. let's work together!

Best Regards!


Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

zariq

  • Full Member
  • ***
  • Posts: 107
I saw Simonsayz in the forum earlier. should try to contact him again. Three heads together are are better than three heads alone.  :)

Leledumbo

  • Hero Member
  • *****
  • Posts: 8114
  • Programming + Glam Metal + Tae Kwon Do = Me
Quote
I saw Simonsayz in the forum earlier. should try to contact him again. Three heads together are are better than three heads alone.  :)
Good, that would make things better I hope.

jmpessoa

  • Hero Member
  • *****
  • Posts: 1479
Hi All,

Yes, Simon is back, and told me he want to participate too!

Greetings!





Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

zariq

  • Full Member
  • ***
  • Posts: 107
Good, that would make things better I hope.

You never know about the future but I've got a feeling we could be onto something really good. The more people are involved the better the chances.

Hi All,

Yes, Simon is back, and told me he want to participate too!
Greetings!

That's good to hear.

jmpessoa

  • Hero Member
  • *****
  • Posts: 1479
@Leledumbo:

Quote
...We've discussed and the author also agrees to remove it in the future ...

And the future is now .... We are already doing it. :D

Thanks.

Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

DelphiFreak

  • Full Member
  • ***
  • Posts: 246
    • Fresh sound.
Hi all,
thank you for your answer's.

My knowledge on this is not good enough recommend a strategy.

The aim of laztoapk is simplify the handling of all these external stuff (JDK,NDK,SDK,laz4android) needed to build an android application with lazarus.
I got it working with a 1-click "Build&Install" button to compile and run a project. see http://www.novabit.ch/downloads/laztoapk/Lazarus%20and%20Android.pdf

Thing's I dislike at the moment about laztoapk:
A) why do we need laz4android. It should be possible to do this with standard/default lazarus.
B) it's only working on windows. (I'd like to have a solution for e.g.linux as well).
C) no integration into the lazarus IDE.

Thing's I like about laztoapk:
D) no need for ant.
E) no need for eclipse.
F) opensource and available at sourceforge.net

What do you think about the following idea.

I add command-line support to laztoapk? e.g. laztoapk -p"project1.lpr" -b -i (-b means build,-i means install)

Regards,
Sam

And of course I am interested in suggestions about the point's A-F :-)
Linux Mint 19.1, Lazarus 2.0, Windows 7&10, Delphi 7, Delphi 10.3 Rio

truetom

  • Jr. Member
  • **
  • Posts: 72
    • http://sourceforge.net/projects/laz4android/
Hi DelphiFreak,
I'm manage the package of laz4android.

Infact you really don't need laz4android,also do with standard lazarus.I just packaging following files:
1.laz4android\fpc\2.7.1\bin\i386-win32\ppcrossarm.exe
2.laz4android\fpc\2.7.1\bin\i386-win32\arm-linux-androideabi-as.exe
3.laz4android\fpc\2.7.1\bin\i386-win32\arm-linux-androideabi-ld.exe
4.laz4android\fpc\2.7.1\bin\i386-win32\arm-linux-androideabi-strip.exe
5.laz4android\fpc\2.7.1\units\arm-android    all files

 How can get those files ? you can search the wiki to building cross compiler:
http://wiki.lazarus.freepascal.org/Android

and the files arm-linux-androideabi-* in the android NDK packages.

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

zariq

  • Full Member
  • ***
  • Posts: 107
Hi Truetom.

Does your package work only with ndk 7?

Thanks.

chain_reaction

  • New Member
  • *
  • Posts: 22
Since the Android OS, Tizen OS, Firefox OS, Ubuntu Phone OS and other OSs have come competitively, maybee we should start to add html5 code with pascal syntax like code in a packages, for the sake of platfrom compatibility as a graphic user interface. But it must a pascal POSIX like code. This is the main problem: multi platform graphic user interface.

In my opinion, doing conversion GUI native code from specific platform os especially mobile platform to pascal syntax is not hard BUT very long term job, moreover its change time by time depend on the os developers, and also freepascal is open source project (less funded community project). And we know that it is very hard to find program's bugs on OS other than Microsoft Windows, Linux or Mac OS X. It's hard because first we must buy the items, and do the bug finder, and so on.

I see nowdays, the html5 is the answer of the GUI which can be run natively without running specific browser. Nowdays operating system intended to built-in for running html code natively without browser with the help of specific library. Maybee this is the reason why processor manufacturers like Intel / AMD / ARM push the market of the usage of the html5 code, in mobile either in desktop or embedded.

I see the hypertext html 5 is very compatible to pascal syntax. The html 5 code has her own class, ID, attributes, elements mechanism. It also begins with START TAG and ends with END TAG.

Code: [Select]
<TAG>    --- BEGIN
</TAG>   --- END

Separating GUI html5 code and other platform independent library or program is also a good idea.

We already know some freepascal web or html packages done by some owesome people here. But every each of them have different programming technique. I think we should need a base standard syntax code.

If we like to do such such html5 conversion, before that, I think, we should also have a proposal like RFC's. Thank you.

DelphiFreak

  • Full Member
  • ***
  • Posts: 246
    • Fresh sound.
Hi,

@truetom: Thank you for your explanation.
@zariq: The solution from truetom work also with ndk9.

You need to copy the files

from
\ndk\toolchains\arm-linux-androideabi-4.6\prebuilt\windows\bin\arm-linux-androideabi-*.exe
to
laz4android\fpc\2.7.1\bin\i386-win32\


Hi Truetom.

Does your package work only with ndk 7?

Thanks.
Linux Mint 19.1, Lazarus 2.0, Windows 7&10, Delphi 7, Delphi 10.3 Rio

engkin

  • Hero Member
  • *****
  • Posts: 2513
@zariq: The solution from truetom work also with ndk9.

You need to copy the files

from
\ndk\toolchains\arm-linux-androideabi-4.6\prebuilt\windows\bin\arm-linux-androideabi-*.exe
to
laz4android\fpc\2.7.1\bin\i386-win32\


Hi Truetom.

Does your package work only with ndk 7?

Thanks.

AND rebuild your laz4android\fpc\2.7.1\units\arm-android files

zariq

  • Full Member
  • ***
  • Posts: 107
Yes that work now. Thank you Delphifreak and Engkin.