Recent

Author Topic: Using LazToApk  (Read 38173 times)

dbaxter

  • New Member
  • *
  • Posts: 13
Re: Using LazToApk
« Reply #45 on: July 23, 2015, 10:34:11 pm »
I thought since there was activity in July, that this thread was monitored. Evidently not.
Too bad, the package seems to have promise if it could be gotten to work. If anyone knows what we need from the NDK, I'm willing to try to fix it. I just don't know Android very well 'under the hood'.

dbaxter

  • New Member
  • *
  • Posts: 13
Re: Using LazToApk
« Reply #46 on: July 25, 2015, 04:30:30 am »
Ok, inspecting the code revealed that the problem may be caused by a disconnect between versions of the SDK and the NDK. The current downloadable SDK is android-22, but the NDK's I can find only go up to 21. laztoapk is looking for a match between the two. We need to find an android-22 NDK.

DelphiFreak

  • Sr. Member
  • ****
  • Posts: 259
    • Fresh sound.
Re: Using LazToApk
« Reply #47 on: July 25, 2015, 06:41:55 am »
Thank you for taking time to search the problem. (good thing of open-source, everyone can debug  :D )

As I stated before I have not much time to keep up with all these changes done by the packager of NDK,SDK,JDK,laz4android and so on.

If you have patches/suggestions or would like to get write-access to the laztoapk sourceforge project please let me know.

Sam
Linux Mint 22, Lazarus 4.0, Windows 11, Delphi 12 Athens, Delphi 13 Florence

vhalonk

  • Newbie
  • Posts: 3
Re: Using LazToApk
« Reply #48 on: August 13, 2015, 08:46:20 am »
me too.  "NDK platform not found".

Handoko

  • Hero Member
  • *****
  • Posts: 5524
  • My goal: build my own game engine using Lazarus
Re: Using LazToApk
« Reply #49 on: August 13, 2015, 11:18:28 am »
Here are the steps to setup the paths:

To Setup SDK Path
  • Click menu > Path Setup > Android SDK
  • Set Initial folder to: C:\laztoapk\downloads
  • Click Find
  • Double click C:\laztoapk\downloads\android-sdk-windows

To Setup NDK Path
  • Click menu > Path Setup > Android NDK
  • Set Initial folder to: C:\laztoapk\downloads
  • Click Find
  • Double click C:\laztoapk\downloads\android-ndk-r10d

To Setup JDK Path
  • Click menu > Path Setup > JDK
  • Set Initial folder to: C:\Program Files\Java
  • Click Find
  • Double click C:\Program Files\Java\jdk1.8.0_51

To Setup Build Tool Path
  • Click menu > Path Setup > xxxxbuild.exe
  • Set Initial folder to: C:\laztoapk\downloads
  • Click Find
  • Double click C:\laztoapk\downloads\laz4android\lazbuild.exe

vhalonk

  • Newbie
  • Posts: 3
Re: Using LazToApk
« Reply #50 on: August 14, 2015, 06:04:54 am »
sorry my english poor
solved. i just copy other android sdk file to laztoapk\sdk path, and now ndk platform can read.

but i have another problem.

when I click build&deploy in laztoapk i have error code and can't compile project.

Quote
project1android.lpr(40) Error: (9013) Error while linking
project1android.lpr(40) Fatal: (10026) There were 1 errors compiling module, stopping

Fatal: (1018) Compilation aborted
Error: c:\laztoapk\downloads\laz4android\fpc\3.1.1\bin\i386-win32\ppcrossarm.exe returned an error exitcode

Error: (lazarus) Compile Project, OS: android, CPU: arm, Target: android\libs\armeabi\liblclapp.so: stopped with exit code 1

ERROR: failed compiling of project C:\laztoapk\projects\project1\project1android.lpi



C:\laztoapk\projects\project1\android>REM pause                                                                         

DelphiFreak

  • Sr. Member
  • ****
  • Posts: 259
    • Fresh sound.
Re: Using LazToApk
« Reply #51 on: August 14, 2015, 08:53:24 am »
Hi,
could you try the following?
A) close lazarus.
B) close laztoapk.
C) start the batch-file  "C:\laztoapk\downloads\laz4android\build.bat".  -->this will take a while.
D) now try again to build your project. Either by using laztoapk or by just running the batch-file "C:\laztoapk\projects\project1\android\build_app.bat"



Linux Mint 22, Lazarus 4.0, Windows 11, Delphi 12 Athens, Delphi 13 Florence

vhalonk

  • Newbie
  • Posts: 3
Re: Using LazToApk
« Reply #52 on: August 22, 2015, 06:30:27 pm »
application can't run

almora

  • New member
  • *
  • Posts: 9
Re: Using LazToApk
« Reply #53 on: September 10, 2015, 05:45:22 pm »
 "NDK platform not found"
Please help...
I've tried the above but did not.

http://forum.lazarus.freepascal.org/index.php?action=dlattach;topic=28908.0;attach=12364;image

Windows XP 32 bit

« Last Edit: September 10, 2015, 05:50:33 pm by almora »

Handoko

  • Hero Member
  • *****
  • Posts: 5524
  • My goal: build my own game engine using Lazarus
Re: Using LazToApk
« Reply #54 on: September 10, 2015, 05:52:19 pm »
Please follow the steps I posted on Reply #49.

almora

  • New member
  • *
  • Posts: 9
Re: Using LazToApk
« Reply #55 on: September 10, 2015, 07:04:45 pm »
I tried but it did not.

Handoko

  • Hero Member
  • *****
  • Posts: 5524
  • My goal: build my own game engine using Lazarus
Re: Using LazToApk
« Reply #56 on: September 10, 2015, 07:14:48 pm »
From the screenshot you provided, I can see you put C:\laztoapk\downloads\android-ndk-r10d on Initial Folder.

You should put C:\laztoapk\downloads only and then press the "Find" button.
« Last Edit: September 10, 2015, 07:35:29 pm by Handoko »


almora

  • New member
  • *
  • Posts: 9
Re: Using LazToApk
« Reply #58 on: September 11, 2015, 08:21:20 am »
[Path]
AndroidSDKPath=C:\Program Files\Android\android-sdk\
AndroidNDKPath=C:\Program Files\laztoapk\downloads\android-ndk-r10e\
JDKPath=C:\Program Files\Java\jdk1.7.0_51\
BuildTool=C:\Program Files\laz4android\lazbuild.exe
NDKToolChainPath=toolchains\arm-linux-androideabi-4.8\prebuilt\windows\bin\
TemplateProjectPath=C:\Program Files\laztoapk\TemplateProject\
LastUsedProjectDir=C:\Program Files\laztoapk\projects\project1\
LastUsedSearchDir=C:\Program Files\laztoapk\downloads\

[App]
FirstApplicationStartUp=0

[Config]
Device=1
AdbLog=1
LastUsedTab=0
LastUsedAPI=0
LastUsedBuildTool=0
CreateKeyFile=1
AutomaticInstallAPK=1

DelphiFreak

  • Sr. Member
  • ****
  • Posts: 259
    • Fresh sound.
Re: Using LazToApk
« Reply #59 on: September 11, 2015, 10:03:03 am »
Hi,

did you read the instruction PDF-File?
http://sourceforge.net/projects/laztoapk/files/Lazarus%20and%20Android.pdf/download

The first sentence says:
Important Note:
A)Please remove previous versions before installing a new version.
B)Installation path containing “SPACE” char's do still not work.

You have your downloads-folder in "C:\Program Files" ! SPACE!


Linux Mint 22, Lazarus 4.0, Windows 11, Delphi 12 Athens, Delphi 13 Florence

 

TinyPortal © 2005-2018