Recent

Author Topic: Updated: my tutorial about Lazarus and Android V4  (Read 44071 times)

tintinux

  • Sr. Member
  • ****
  • Posts: 325
    • Gestinux
Re: my tutorial about Lazarus and Android
« Reply #15 on: September 17, 2013, 10:06:18 am »
Quote
it looks like dropbox has currently a problem.
https://dl.dropboxusercontent.com/u/3753548/laztoapk_source_and_exe_alpha_0_12.7z
Yes !

Quote
The project is at sourceforge: http://sourceforge.net/projects/laztoapk/
Patches are welcome.  :D
There is no file there...

Where can we find it ?
Regards
Initiator of gestinux, open-source, multi-database and multilingual accounting and billing software made with LAZARUS.

You can help to develop, to make and improve translations, and to provide examples of legal charts and reports from more countries.

wcleyton

  • Jr. Member
  • **
  • Posts: 80
Re: my tutorial about Lazarus and Android
« Reply #16 on: September 17, 2013, 01:40:19 pm »
Hi,

Look for the tab -> Code

 :D



tintinux

  • Sr. Member
  • ****
  • Posts: 325
    • Gestinux
Re: my tutorial about Lazarus and Android
« Reply #17 on: September 17, 2013, 04:50:35 pm »
Unfortunately, I can't use git:// even through http, I can only download files.
I will try to get the file at home and transfer it as I must for Lazarus trunk.
 :'(
« Last Edit: September 17, 2013, 08:57:28 pm by tintinux »
Initiator of gestinux, open-source, multi-database and multilingual accounting and billing software made with LAZARUS.

You can help to develop, to make and improve translations, and to provide examples of legal charts and reports from more countries.

DelphiFreak

  • Sr. Member
  • ****
  • Posts: 255
    • Fresh sound.
Re: my tutorial about Lazarus and Android
« Reply #18 on: September 17, 2013, 06:39:28 pm »


Go here and klickon "Download Snapshot".
http://sourceforge.net/p/laztoapk/svn/HEAD/tree/

Then open the project in Lazasrus and compile it.

Fixes are welcome.

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

fredycc

  • Sr. Member
  • ****
  • Posts: 264
Re: my tutorial about Lazarus and Android
« Reply #19 on: September 17, 2013, 07:13:33 pm »
Amazing DelphiFreak :o

Thanks.....  :)

regards

ThreeCat

  • New Member
  • *
  • Posts: 25
Re: my tutorial about Lazarus and Android
« Reply #20 on: September 20, 2013, 09:47:43 pm »

ThreeCat

  • New Member
  • *
  • Posts: 25
Re: my tutorial about Lazarus and Android
« Reply #21 on: September 20, 2013, 10:19:21 pm »
ErrorLog

DelphiFreak

  • Sr. Member
  • ****
  • Posts: 255
    • Fresh sound.
Re: my tutorial about Lazarus and Android
« Reply #22 on: September 21, 2013, 07:09:59 am »
I guess you took the wrong version.
I see you took "API-18" in laztoapk while my tutorial says you should take "API 14".

in my case the entries in the batch file look then like this:

REM Adjust these paths to yours
SET PATH=E:\android\sdk\tools;E:\android\sdk\platform-tools\;E:\android\sdk\build-tools\18.0.1\;C:\Programme\Java\jdk1.6.0_45\bin
SET APP_NAME=project1
SET ANDROID_HOME=E:\android\sdk
SET APK_SDK_PLATFORM=E:\android\sdk\platforms\android-14
SET APK_PROJECT_PATH=E:\android\projects\project1\android
Linux Mint 20.3, Lazarus 2.3, Windows 10, Delphi 10.3 Rio, Delphi 11.1 Alexandria

ThreeCat

  • New Member
  • *
  • Posts: 25
Re: my tutorial about Lazarus and Android
« Reply #23 on: September 21, 2013, 04:17:50 pm »
with 14 API same problem, yesterday I found the article... but it's how I understood not finalized
If you follow this instructions: http://www.pilotlogic.com/sitejoom/index.php/93-wiki/codetyphon-tutorials/222-cross-build-for-android
At the output we get "Project1" - file, but he is not APK...
what you have to do to compile it in APK???

michasbaer

  • Newbie
  • Posts: 1
Re: my tutorial about Lazarus and Android
« Reply #24 on: September 21, 2013, 05:03:42 pm »
Hi to all,
all has worked fine, only at the end when running laztoapk
after definition of the 4 folders/files  when ApkManager ver. ALPHA 012 pops up, the Platform-Combobox remains empty, which file must be updated or what i have forgotten.
Thanks
Fritz

DelphiFreak

  • Sr. Member
  • ****
  • Posts: 255
    • Fresh sound.
Re: my tutorial about Lazarus and Android
« Reply #25 on: September 21, 2013, 07:22:25 pm »
Hello Fritz,

download the sources of laztoapk from http://sourceforge.net/code-snapshots/svn/l/la/laztoapk/svn/laztoapk-svn-32-trunk.zip

then open the project <trunk\source\apkmanager.lpi> in lazarus and then

DEBUG it and send me a patch. :D

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

ThreeCat

  • New Member
  • *
  • Posts: 25
Re: my tutorial about Lazarus and Android
« Reply #26 on: September 22, 2013, 12:24:57 am »
Only API 8 comes up to 4 points, but when compiling at the end of the flies error, and API 14 - 18 to paragraph 3 not even reach (
Here is a screen and log
Maybe I don't understand something?

ThreeCat

  • New Member
  • *
  • Posts: 25
Re: my tutorial about Lazarus and Android
« Reply #27 on: September 22, 2013, 12:31:33 am »
here's another screenshots

ThreeCat

  • New Member
  • *
  • Posts: 25
Re: my tutorial about Lazarus and Android
« Reply #28 on: September 22, 2013, 12:34:14 am »

DelphiFreak

  • Sr. Member
  • ****
  • Posts: 255
    • Fresh sound.
Re: my tutorial about Lazarus and Android
« Reply #29 on: September 22, 2013, 07:25:18 am »
From your batch file I see that you try to use typhonbuild.exe.

In my first versions I also tried this, but with typhonbuild.exe (4.41) it does not work.
You need to follow exactly the instructions in my tutorial (take laz4android), otherwise you will not get that stuff running.

EDIT: It tried now the fresh CodeTyphon 4.50. You can create your app with typhonbuild.exe, but the produced application will not work. The filesize of the generated .so file is around 700kByte. If you generate the .so file with lazbuild.exe from laz4android, then the .so file is around 1400kByte and it works.
« Last Edit: September 22, 2013, 09:30:38 am by DelphiFreak »
Linux Mint 20.3, Lazarus 2.3, Windows 10, Delphi 10.3 Rio, Delphi 11.1 Alexandria

 

TinyPortal © 2005-2018