Recent

Author Topic: Using LazToApk  (Read 35380 times)

Handoko

  • Hero Member
  • *****
  • Posts: 5153
  • My goal: build my own game engine using Lazarus
Re: Using LazToApk
« Reply #60 on: September 11, 2015, 10:16:06 am »
[Path]
TemplateProjectPath=C:\Program Files\laztoapk\TemplateProject\
LastUsedProjectDir=C:\Program Files\laztoapk\projects\project1\
LastUsedSearchDir=C:\Program Files\laztoapk\downloads\

Your laztoapk installation folder is under C:\Program Files, which contain a space between "Program" and "Files". So far, LazToApk can't work properly if the path contains any space character.

Try to remove all the installation and reinstall again on the root folder C:\

almora

  • New member
  • *
  • Posts: 9
Re: Using LazToApk
« Reply #61 on: September 11, 2015, 10:20:06 am »
I installed the new version and for the first time

C:\laztoapk\
I tried it.


DelphiFreak

  • Sr. Member
  • ****
  • Posts: 255
    • Fresh sound.
Re: Using LazToApk
« Reply #63 on: September 11, 2015, 11:07:55 am »
From the screenshots I can see that your SDK and laz4android paths still point to "Program Files". I recommend to un-install all and then do it again as described in the instruction PDF. Thank you.
Linux Mint 20.3, Lazarus 2.3, Windows 10, Delphi 10.3 Rio, Delphi 11.1 Alexandria

Handoko

  • Hero Member
  • *****
  • Posts: 5153
  • My goal: build my own game engine using Lazarus
Re: Using LazToApk
« Reply #64 on: September 11, 2015, 11:12:20 am »
Beside what DelphiFreak said, please also make sure you enable the API 16.

On the SDK Manager, enable:
- Android 4.1.2 (API 16) > SDK Platform
- Android 4.1.2 (API 16) > ARM EABI v7a System Image

mehrrath

  • Newbie
  • Posts: 1
Re: Using LazToApk
« Reply #65 on: October 13, 2015, 04:36:49 pm »
THE SOLUTION FOR NDK PROBLEMS IS TO KEEP THE installed SDK AND NDK TARGET PLATFORM (DIRs) IDENT.

e.g.

ini

AndroidSDKPath=C:\android\android-sdk-windows\       > ..... platforms\android-21\   must exist ....
AndroidNDKPath=C:\android\android-ndk-r10e\        > ..... platforms\android-21\  must exist....







DelphiFreak

  • Sr. Member
  • ****
  • Posts: 255
    • Fresh sound.
Re: Using LazToApk
« Reply #66 on: October 13, 2015, 07:44:18 pm »
Hello,

laztoapk scans the NDK folder for the file "libc.so".  Look for method "DetectInstalledNDKPlatforms  http://sourceforge.net/p/laztoapk/svn/HEAD/tree/trunk/source/apkmanagermain.pas
After that, laztoapk look's in the SDK folder for if the folder exists and the file "android.jar" is existing.

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

dorra

  • Newbie
  • Posts: 4
  • Me
Re: Using LazToApk
« Reply #67 on: January 08, 2018, 12:03:11 am »
Hello,

today i tried to get LazToApk working.
Installation and Config went fine.
But the generated APK don't work after instalation.

I am using Windows 7 64Bit

Do you find any Errors?

Thanks
Martin

Handoko

  • Hero Member
  • *****
  • Posts: 5153
  • My goal: build my own game engine using Lazarus
Re: Using LazToApk
« Reply #68 on: January 08, 2018, 03:28:28 am »
What error message did you get?

Quote
Unfortunately, project1 has stopped.

If you got such message when starting the program and you're running the it on Android 5 or above device, then you should read here:
http://forum.lazarus.freepascal.org/index.php/topic,32472

You may want to try LAMW. It is working good and well supported:
http://wiki.lazarus.freepascal.org/LAMW

There are many different ways to build Android app using Lazarus/FPC:
http://forum.lazarus.freepascal.org/index.php/topic,38777.msg264428.html#msg264428
« Last Edit: January 08, 2018, 03:32:33 am by Handoko »

DelphiFreak

  • Sr. Member
  • ****
  • Posts: 255
    • Fresh sound.
Re: Using LazToApk
« Reply #69 on: January 08, 2018, 07:52:40 am »
Hello dorra,

from the screenshot you posted it looks ok.

My questions:

A) did you run the generated apk-file on a  real device or in the emulator ?
B) did you build the apk-file by using laztoapk or by using LAMW (as shown in this video? https://sourceforge.net/projects/laztoapk/files/laztoapk_LAMW_Install_and_First_App.mp4/download

I have a WIKI page about successful attemps. I would be happy if some folks could constribute to that list. https://sourceforge.net/p/laztoapk/wiki/Home/
Linux Mint 20.3, Lazarus 2.3, Windows 10, Delphi 10.3 Rio, Delphi 11.1 Alexandria

dorra

  • Newbie
  • Posts: 4
  • Me
Re: Using LazToApk
« Reply #70 on: January 08, 2018, 02:20:45 pm »
Hi DelphiFreak,
a) I had run the generated apk's on two real Devices.
    - Samsung S5 mini
    - Samsung Tab A 2016
    Because I installed the Tools on my aged Laptop I can not use the Emulator.
    It is to slow.
b) I build the APK's using LazToApk.
    I tryed the shipped Example and an own Project.
    I didn't try LAMW

Best Regads,
Martin

dorra

  • Newbie
  • Posts: 4
  • Me
Re: Using LazToApk
« Reply #71 on: January 10, 2018, 12:55:45 am »
Thanks to Handoko,
I tried LAMW and it worked fine.
My first Apps can be executed.
Now I will give deeper into into this Things.

Tomi

  • Full Member
  • ***
  • Posts: 118
Re: Using LazToApk
« Reply #72 on: March 03, 2021, 01:31:04 pm »
Hello!

I decided I will make Android applications with Lazarus, especially some small games.
I would like set the Lazarus environment with LazToApk to be able to create .APKs.
As I read the "Installation Tutorial for LazToApk" (2016, March release), first of all, it requires the JDK. But is it the jdk-8u25-windows-i586.exe exactly, or may I use newer versions of JDK, included the newest version too? (I have Windows 10 x64 architecture.)
And if I hopefully will install everything successfully, should I always use LazToApk or Laz4Android programs to create Android applications or these new features will build-in the original Lazarus?

PascalDragon

  • Hero Member
  • *****
  • Posts: 5481
  • Compiler Developer
Re: Using LazToApk
« Reply #73 on: March 04, 2021, 09:07:52 am »
Maybe you should better take a look at Lazarus Android Module Wizard (or LAMW for short) as its a more convenient solution than doing everything by hand.

Tomi

  • Full Member
  • ***
  • Posts: 118
Re: Using LazToApk
« Reply #74 on: March 04, 2021, 11:16:18 am »
Maybe you should better take a look at Lazarus Android Module Wizard (or LAMW for short) as its a more convenient solution than doing everything by hand.
I tried, but when I added packages "lazandroidwizardpack.lpk" and "amw_ide_tools.lpk", I got error messages: No memory left (I have 8 GB in my PC) and couldn't find a pascal command, and besides there is no [LAMW] Android Module Wizard in Tools menu. :'(
Maybe something was wrong in Android SDK Manager? I deselect every unnecessary things in it.
« Last Edit: March 04, 2021, 02:29:44 pm by Tomi »

 

TinyPortal © 2005-2018