* * *

Author Topic: c:\laztoapk\downloads\laz4android1.8\fpc\3.0.4\bin\i386-win32\i686-linux-android  (Read 623 times)

epergola

  • Full Member
  • ***
  • Posts: 134
Hello
I somehow managed to install laztoapk.
But when I run Templateandroid.lpr in templatefolder, I get these messages:
c:\laztoapk\downloads\laz4android1.8\fpc\3.0.4\bin\i386-win32\arm-linux-androideabi-ld.bfd.exe: cannot find -ljnigraphics

c:\laztoapk\downloads\laz4android1.8\fpc\3.0.4\bin\i386-win32\arm-linux-androideabi-ld.bfd.exe: cannot find -llog

c:\laztoapk\downloads\laz4android1.8\fpc\3.0.4\bin\i386-win32\arm-linux-androideabi-ld.bfd.exe: cannot find -ldl

c:\laztoapk\downloads\laz4android1.8\fpc\3.0.4\bin\i386-win32\arm-linux-androideabi-ld.bfd.exe: cannot find -lc

c:\laztoapk\downloads\laz4android1.8\fpc\3.0.4\bin\i386-win32\arm-linux-androideabi-ld.bfd.exe: cannot find -lc

templateandroid.lpr(35,36) Error: Error while linking

The linker shows a red background on this line:
CDWidgetset.ActivityClassName := 'com/pascal/lcltest/LCLActivity';
The only LCLActivity I found is in
C:\laztoapk\TemplateProject\android\src\com\pascal\lcltest.
But even when I change that line to
CDWidgetset.ActivityClassName := '/android/src/com/pascal/lcltest/LCLActivity';
I get the same messages.
When installing it gave me an error in downloading apache-ant-1.10.1-bin.zip. So I downloaded manually apache-ant-1.10.2-bin.zip and renamed.
I attach the images of the project settings.
Any help?



jmpessoa

  • Hero Member
  • *****
  • Posts: 1138

Hello, epergola!

You are "mixing"  CustomDraw widgets and LAMW?

Sorry... at the moment you will have to work with only one of them ....


LAMW "Gettint Started" is here:

https://github.com/jmpessoa/lazandroidmodulewizard/blob/master/Getting%20Started.txt

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

epergola

  • Full Member
  • ***
  • Posts: 134
I had installed Laztoapk. The LAMW selection was my mistake. Now, once corrected it, in compile i get a
android\libs\armeabi\liblclapp.so succesfull.
What Am I supposed to do now? Obviously if I try to Execute it form Lazarus, I ge an error. How do I executed it in laztoapk?
There is a Project Folder "c:\laztoapk\projects\project1" which is read only.
Any hint?
NOTE: I use emulator (I do not have an Android device at hand)
« Last Edit: April 15, 2018, 06:45:45 pm by epergola »

jmpessoa

  • Hero Member
  • *****
  • Posts: 1138
Quote
What Am I supposed to do now...

You need use LazToApk to build  the "Apk"  !!!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

DelphiFreak

  • Full Member
  • ***
  • Posts: 237
Please follow exactly the instruction from the pdf-file:

https://sourceforge.net/projects/laztoapk/files/?source=navbar

The video might also help you a little.

Linux Mint 18, Lazarus 1.8, Windows 7, Delphi 7, Delphi 10.2 Tokyo

epergola

  • Full Member
  • ***
  • Posts: 134
Hello Delphifreak.
I guess you did not read this part in my original post "When installing it gave me an error in downloading apache-ant-1.10.1-bin.zip. So I downloaded manually apache-ant-1.10.2-bin.zip and renamed."
Anyway, starting laztoapk, it asks me for the ant\bin folder.
From the attached image i figured what should be, but it did not exist.
So I created it and then unzipped the apache-ant-1.10.1-bin.zip that i had downloaded manually (was .2, renamed to .1) in the the folder
C:\laztoapk\downloads\apache-ant-1.10.1.
I noticed these 3 files which I guess the installation di not run (b/c/ it got stuck). In which sequence should I run them?
03/02/2018  06:51 p.m.             7,470 ant.bat
03/02/2018  06:51 p.m.             1,532 antRun.bat
03/02/2018  06:51 p.m.             1,112 lcp.bat

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus