Recent

Author Topic: Preparing my Stack for Android and Blockchain  (Read 24713 times)

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Preparing my Stack for Android and Blockchain
« Reply #45 on: November 13, 2021, 12:19:22 am »
Quote
Is it still necessary to take these steps...

As point up by @ccrause, May be not!

Skip this step and try go ahead ....
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Webdrifter

  • Jr. Member
  • **
  • Posts: 68
Re: Preparing my Stack for Android and Blockchain
« Reply #46 on: November 14, 2021, 06:56:45 pm »
When it comes to computers and programming I don't really like "Maybe's".
Since computers and programs usually don't seem to "understand" them...
So if anyone knows for sure, this would help make me feel more comfortable.

In the meantime next in the "Getting_Started.txt" is this remark:

IMPORTANT!
   Google Play NOW require APKs to include both 32 and 64 bit version of .so libraries....
   ref.  https://github.com/jmpessoa/lazandroidmodulewizard/blob/master/docs/how_to_64bits_Apk.txt

So should I now first take the steps described in:
https://github.com/jmpessoa/lazandroidmodulewizard/blob/master/docs/how_to_64bits_Apk.txt

before moving on with other steps in "Getting_Started.txt".

Or not?



jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Preparing my Stack for Android and Blockchain
« Reply #47 on: November 14, 2021, 08:10:44 pm »

As you already has prepared to cross-compile to  ""aarch64"

go to:

Quote
4) How to get more/others ".so" chipset builds:
   
   .warning: Your Lazarus/Freepascal needs to be prepared [cross-compile] for the various chipset builds!

   4.1. From LazarusIDE menu:
      > Project -> Project Options -> Project Options -> [LAMW] Android Project Options -> "Build" -> Chipset [select!] -> [OK]
   4.2. From LazarusIDE  menu:
      > Run -> Clean up and Build...
   4.3. From LazarusIDE menu:
      > [LAMW] Build Android Apk and Run

   NOTE: If desirable/wanted repeat 4.1/4.2/4.3 for other CPUs...

Quote
When it comes to computers and programming I don't really like "Maybe's"....

Nobody likes it, however, due to constant changes in the programming environments, things that used to work [often] stop working and we have to adapt to this idea....
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Webdrifter

  • Jr. Member
  • **
  • Posts: 68
Re: Preparing my Stack for Android and Blockchain
« Reply #48 on: November 22, 2021, 10:08:46 pm »
(Sorry for reaction this late. I was out of the country for my work. May happen again ;))

I tried this.

At step 4.1 I got the choice between "Ant" and "Gradle" as APK-builder.
I have both installed with Chocolatey. I chose "Ant".

As chipset I chose: ARMv7a+Soft

Since this was one off the two chipsets I did build for earlier in this process.

I pressed OK. Window disappeared. So I guess, no problem.

I went to step 4.2 and did "Clean up and Build"

Got a lot off messages, and lots went successful until...

I got error. See attached picture. 


(by the way if we can get this to work, do I have to do the cycle again with other chipset "aarch64", which I also did build for earlier in this process)

Insid3Code

  • New Member
  • *
  • Posts: 26
  • Code Immersion
Re: Preparing my Stack for Android and Blockchain
« Reply #49 on: November 22, 2021, 10:59:41 pm »
According to the picture I see that you are trying to compile windows executable instead of a shared object file (.so)...

Go to Project -> New Project -> LAMW[GUI] Android Module

Fred vS

  • Hero Member
  • *****
  • Posts: 3158
    • StrumPract is the musicians best friend
Re: Preparing my Stack for Android and Blockchain
« Reply #50 on: November 22, 2021, 11:03:41 pm »
Hello.

In your error message, the compiler try to access files in a temp directory..

Maybe try to first save your project in a directory with write permission, for example in your user directory.
And then re-compile the project from that directory.
« Last Edit: November 22, 2021, 11:09:55 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Preparing my Stack for Android and Blockchain
« Reply #51 on: November 22, 2021, 11:22:16 pm »

Did you skip:

"III. USING LAMW"  ?
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Webdrifter

  • Jr. Member
  • **
  • Posts: 68
Re: Preparing my Stack for Android and Blockchain
« Reply #52 on: November 24, 2021, 12:51:44 am »
I am not working on a project yet.

I am still trying to prepare my stack so I can program a blockchain application for android.

I am still following the "Getting_Started.txt" for this.

I am now at the step that refers to a procedure described in
the file "https://github.com/jmpessoa/lazandroidmodulewizard/blob/master/docs/how_to_64bits_Apk.txt"

JMpessoa mentioned steps from that file above:

 4.1. From LazarusIDE menu:
      > Project -> Project Options -> Project Options -> [LAMW] Android Project Options -> "Build" -> Chipset [select!] -> [OK]
   4.2. From LazarusIDE  menu:
      > Run -> Clean up and Build...
   4.3. From LazarusIDE menu:
      > [LAMW] Build Android Apk and Run

And I tried this but failed.

I am not even near step "III. USING LAMW".

I have done nothing more than what I described in this thread.

As far as I know this referral to file "how_to_64bits_Apk.txt" was way above step "III. USING LAMW" . While now I find it far below that step.

It seems that somebody has changed the "getting started.txt" file in the meantime. Text and numbers have changed. So now I am extremely confused. How to proceed?





jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Preparing my Stack for Android and Blockchain
« Reply #53 on: November 24, 2021, 01:09:37 am »
Quote
I am not even near step "III. USING LAMW"....

But are you ready to go "III. USING LAMW".....


After that You complete this step (How to get more/others ".so" chipset builds):
Quote
4.1. From LazarusIDE menu:
      > Project -> Project Options -> Project Options -> [LAMW] Android Project Options -> "Build" -> Chipset [select!] -> [OK]
   4.2. From LazarusIDE  menu:
      > Run -> Clean up and Build...
   4.3. From LazarusIDE menu:
      > [LAMW] Build Android Apk and Run

I will update the doc again!  [edited: Done!]

Thank you!
« Last Edit: November 24, 2021, 05:15:39 am by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

nick1965

  • New Member
  • *
  • Posts: 23
Re: Preparing my Stack for Android and Blockchain
« Reply #54 on: November 29, 2021, 12:17:07 am »
hi there is it any way for someone to get paid and to help an old man to  install lazarus on windows
with cross compike for android and linux?

i try everything and anything
my last change is the lamw manager which is installing things now.
i dont think is going to work either

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Preparing my Stack for Android and Blockchain
« Reply #55 on: November 29, 2021, 12:42:32 am »

Hi, nick1965!

Yes,  "lamw manager"  is a good choice ((for install cross-android compiler and all LAMW stuff/requirements)!


But,  it has some issues when handling Windows 7...

If you need "All in One" (Android + Linux cross compilers)  there is only one choice: "fpcupdeluxe"

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

Webdrifter

  • Jr. Member
  • **
  • Posts: 68
Re: Preparing my Stack for Android and Blockchain
« Reply #56 on: December 06, 2021, 09:45:46 pm »
Quote
I am not even near step "III. USING LAMW"....

But are you ready to go "III. USING LAMW".....


After that You complete this step (How to get more/others ".so" chipset builds):
Quote
4.1. From LazarusIDE menu:
      > Project -> Project Options -> Project Options -> [LAMW] Android Project Options -> "Build" -> Chipset [select!] -> [OK]
   4.2. From LazarusIDE  menu:
      > Run -> Clean up and Build...
   4.3. From LazarusIDE menu:
      > [LAMW] Build Android Apk and Run

I will update the doc again!  [edited: Done!]

Thank you!


I  really don't understand this. As said: I am not even near step "III. USING LAMW"....

So why would I be ready to go to "III. USING LAMW".....

I really appreciate your effort to help me out, and it surprises me you stuck with me this far, because I can assure you that I am getting more and more discouraged.

« Last Edit: December 06, 2021, 09:49:13 pm by Webdrifter »

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Preparing my Stack for Android and Blockchain
« Reply #57 on: December 06, 2021, 11:07:14 pm »
Quote
I am not even near step "III. USING LAMW"....

Can you, please, say what tasks you have completed?
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Webdrifter

  • Jr. Member
  • **
  • Posts: 68
Re: Preparing my Stack for Android and Blockchain
« Reply #58 on: December 07, 2021, 01:37:29 pm »
As you can see in all the above.

The latest I managed to succeed with is this step:

IDE "Tools" --> "[Lamw] Android Module Wizard" --> "Build FPC Cross Android"
 
                                [ex. Armv7a + Soft]     <<---- tested!
                                .Build 
                                .Install
 
                                [ex. aarch64]           <<---- tested!
                                .Build 
                                .Install


I asked this about the next step I found:
Is it still necessary to take these steps:

3. After "build" and "install" the cross-compiler and before to create your first LAMW project

            [How to fix "Fatal: Cannot find unit system used by fcllaz of package FCL."]

            3.1) Go to "fpc.cfg"  [ex. "lazarus\fpc\3.2.0\bin"]

               Change:
 
               # searchpath for units and other system dependent things
               -FuC:\lazarus1864\fpc\$FPCVERSION/units/$fpctarget
               -FuC:\lazarus1864\fpc\$FPCVERSION/units/$fpctarget/*
               -FuC:\lazarus1864\fpc\$FPCVERSION/units/$fpctarget/rtl

               To:

               # searchpath for units and other system dependent things
               -FuC:\lazarus1864\fpc\3.2.0/units/$fpctarget
               -FuC:\lazarus1864\fpc\3.2.0/units/$fpctarget/*
               -FuC:\lazarus1864\fpc\3.2.0/units/$fpctarget/rtl

            3.2) Go to Lazarus IDE menu "Tools" --> "Options" --> "Environment"

               [FPC Source]

               Change:
                  $(LazarusDir)fpc\$(FPCVer)\source
               To:
                  $(LazarusDir)fpc\3.2.0\source

(However, in the meanwhile somebody seems to have changed the getting started, which now has the following text above this step:

Hint:  After "build" and "install" the cross-compilers and all "II. Infrastructure" 
go to "III. USING LAMW" and try to create your first [New] LAMW project!
If you get a error "Fatal: Cannot find unit system used by fcllaz of package FCL."
when trying "Run" --> "Build"  your project try fix the "fpc.cfg" file:

Which confuses me)



Nex You said: Skip this step and try go ahead ....

I said:
In the meantime next in the "Getting_Started.txt" is this remark:

IMPORTANT!
   Google Play NOW require APKs to include both 32 and 64 bit version of .so libraries....
   ref.  https://github.com/jmpessoa/lazandroidmodulewizard/blob/master/docs/how_to_64bits_Apk.txt

So should I now first take the steps described in:
https://github.com/jmpessoa/lazandroidmodulewizard/blob/master/docs/how_to_64bits_Apk.txt

before moving on with other steps in "Getting_Started.txt".

Or not?

You Said:
go to:

Quote
4) How to get more/others ".so" chipset builds:
   
   .warning: Your Lazarus/Freepascal needs to be prepared [cross-compile] for the various chipset builds!

   4.1. From LazarusIDE menu:
      > Project -> Project Options -> Project Options -> [LAMW] Android Project Options -> "Build" -> Chipset [select!] -> [OK]
   4.2. From LazarusIDE  menu:
      > Run -> Clean up and Build...
   4.3. From LazarusIDE menu:
      > [LAMW] Build Android Apk and Run

   NOTE: If desirable/wanted repeat 4.1/4.2/4.3 for other CPUs...

I tried and failed:

At step 4.1 I got the choice between "Ant" and "Gradle" as APK-builder.
I have both installed with Chocolatey. I chose "Ant".

As chipset I chose: ARMv7a+Soft

Since this was one off the two chipsets I did build for earlier in this process.

I pressed OK. Window disappeared. So I guess, no problem.

I went to step 4.2 and did "Clean up and Build"

Got a lot off messages, and lots went successful until...

I got error. See attached picture.

So that's where I am at













jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Preparing my Stack for Android and Blockchain
« Reply #59 on: December 07, 2021, 01:46:17 pm »
Quote
in the meanwhile somebody seems to have changed the getting started

Yes! Follow the new version! 
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

 

TinyPortal © 2005-2018