Recent

Author Topic: Using LazToApk  (Read 29976 times)

Handoko

  • Hero Member
  • *****
  • Posts: 3751
  • 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: 251
    • 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 19.1, Lazarus 2.0, Windows 7&10, Delphi 7, Delphi 10.3 Rio

Handoko

  • Hero Member
  • *****
  • Posts: 3751
  • 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: 251
    • 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 19.1, Lazarus 2.0, Windows 7&10, Delphi 7, Delphi 10.3 Rio

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: 3751
  • 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: 251
    • 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 19.1, Lazarus 2.0, Windows 7&10, Delphi 7, Delphi 10.3 Rio

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.

 

TinyPortal © 2005-2018