Recent

Author Topic: Using LazToApk  (Read 35329 times)

typo

  • Hero Member
  • *****
  • Posts: 3051
Using LazToApk
« on: June 29, 2015, 03:07:50 pm »
In Path Setup > Android NDK > Find I see a message which says "Could not find any libc.so file on this path."

I can find NDK folder manually and inform it on the "Initial Folder" editbox.

However, none path from the list shows a correct path to some "libc.so" and I can find several of them manually (they are in "platforms" subdir).

The question is: how to set the correct NDK path (Statusbar says "NDK platform not found.)?

If I put the path to "platforms" subfolder, the message is that no files with "ndk" search criteria is in this folder. (It is a dead end.)
« Last Edit: June 29, 2015, 03:35:29 pm by typo »

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Using LazToApk
« Reply #1 on: June 29, 2015, 07:58:33 pm »
I have edited the INI file and set NDK path correctly, because I knew what file it was searching, it was, for insstance, a SO file. Now I could not do the same thing to SDK, which asks me for the path too, because I don't know what file it is searching for. It refers vaguely to "tools".
« Last Edit: June 29, 2015, 08:00:38 pm by typo »

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Using LazToApk
« Reply #2 on: June 29, 2015, 08:09:38 pm »

.... /sdk/tools     


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

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Using LazToApk
« Reply #3 on: June 29, 2015, 08:25:47 pm »
The paths are correct, but LazToApk does not find them and the messages remain.

Here is the Path section of the ini file:
Code: [Select]
[Path]
AndroidNDKPath=C:\laztoapk\downloads\android-ndk-r10d\platforms\android-21\arch-arm\usr\lib
AndroidSDKPath=C:\laztoapk\downloads\android-sdk-windows\tools
JDKPath=C:\Program Files\Java\jdk1.7.0_80\
BuildTool=c:\laztoapk\downloads\laz4android\lazbuild.exe
NDKToolChainPath=toolchains\arm-linux-androideabi-4.8\prebuilt\windows\bin\
TemplateProjectPath=c:\laztoapk\TemplateProject\
LastUsedProjectDir=c:\laztoapk\projects\project1\
LastUsedSearchDir=C:\laztoapk\downloads\android-sdk-windows\tools\
« Last Edit: June 29, 2015, 08:27:59 pm by typo »

DelphiFreak

  • Sr. Member
  • ****
  • Posts: 255
    • Fresh sound.
Re: Using LazToApk
« Reply #4 on: June 29, 2015, 08:30:07 pm »
Hello,

I tried to make things a easy as possible with LazToApk. Did you EXACTLY follow this tutorial ? http://sourceforge.net/projects/laztoapk/files/Lazarus%20and%20Android.pdf/download

Do you see the path in screenshot at page 5 ?

Which windows version do you use?

Regards,
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.
Re: Using LazToApk
« Reply #5 on: June 29, 2015, 08:34:19 pm »
I think if you continue the tutorial, then it will work.
At step 06 on page 9 the NDK stuff will be ready!


http://sourceforge.net/p/laztoapk/svn/HEAD/tree/trunk/source/apkmanagermain.pas#l596
Linux Mint 20.3, Lazarus 2.3, Windows 10, Delphi 10.3 Rio, Delphi 11.1 Alexandria

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Using LazToApk
« Reply #6 on: June 29, 2015, 08:42:58 pm »
Yes, I am following this tutorial as exactly as I can.

I use Win7.

DelphiFreak

  • Sr. Member
  • ****
  • Posts: 255
    • Fresh sound.
Re: Using LazToApk
« Reply #7 on: June 29, 2015, 08:50:00 pm »
I tested LazToApk also with win 7 (32-bit) and it worked.

Have you win 7 (64-Bit) ?
Linux Mint 20.3, Lazarus 2.3, Windows 10, Delphi 10.3 Rio, Delphi 11.1 Alexandria

DelphiFreak

  • Sr. Member
  • ****
  • Posts: 255
    • Fresh sound.
Re: Using LazToApk
« Reply #8 on: June 29, 2015, 08:51:34 pm »
By the way. I recommend to watch Solar Impuls 2 on its way to Hawaii ! http://www.solarimpulse.com/widget-flight_wrapup
Good luck!
Linux Mint 20.3, Lazarus 2.3, Windows 10, Delphi 10.3 Rio, Delphi 11.1 Alexandria

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Using LazToApk
« Reply #9 on: June 29, 2015, 09:00:56 pm »
32-bit.

DelphiFreak

  • Sr. Member
  • ****
  • Posts: 255
    • Fresh sound.
Re: Using LazToApk
« Reply #10 on: June 29, 2015, 09:06:25 pm »
My laztoapk.ini on win 7 looks like this:

[App]
FirstApplicationStartUp=0

[Path]
AndroidSDKPath=c:\laztoapk\downloads\android-sdk-windows\
AndroidNDKPath=c:\laztoapk\downloads\android-ndk-r10d\
JDKPath=C:\Program Files\Java\jdk1.7.0_71\
BuildTool=c:\laztoapk\downloads\laz4android\lazbuild.exe
NDKToolChainPath=toolchains\arm-linux-androideabi-4.8\prebuilt\windows\bin\
TemplateProjectPath=c:\laztoapk\TemplateProject\
LastUsedProjectDir=C:\laztoapk\projects\project1\
LastUsedSearchDir=C:\laztoapk\projects\project1\

[Config]
Device=0
AdbLog=1
LastUsedTab=0
LastUsedAPI=0
LastUsedBuildTool=0
CreateKeyFile=1
AutomaticInstallAPK=0
Linux Mint 20.3, Lazarus 2.3, Windows 10, Delphi 10.3 Rio, Delphi 11.1 Alexandria

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Using LazToApk
« Reply #11 on: June 29, 2015, 09:18:11 pm »
My laztoapk.ini on win 7 looks like this:
[Path]
AndroidSDKPath=c:\laztoapk\downloads\android-sdk-windows\
AndroidNDKPath=c:\laztoapk\downloads\android-ndk-r10d\

And did it work?

DelphiFreak

  • Sr. Member
  • ****
  • Posts: 255
    • Fresh sound.
Re: Using LazToApk
« Reply #12 on: June 29, 2015, 09:33:53 pm »
I have compiled/zipped and uploaded my project1.7z

Get it from here:
https://sourceforge.net/projects/laztoapk/files/?source=navbar

See the batch-files in project1\android folder and the you will find the app project1.apk in  project1\android\bin

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

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Using LazToApk
« Reply #13 on: June 29, 2015, 09:45:41 pm »
Thanks.

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Using LazToApk
« Reply #14 on: June 30, 2015, 10:26:27 am »
I have a problem. When I am on Step 7, could not choose an NDK, because "No NDK platform found".

Build & Deploy button is disabled.
« Last Edit: June 30, 2015, 10:32:49 am by typo »

 

TinyPortal © 2005-2018