Recent

Author Topic: It feels like a big leaky boat. Question 7  (Read 4542 times)

gary

  • New Member
  • *
  • Posts: 28
It feels like a big leaky boat. Question 7
« on: December 21, 2024, 05:45:37 am »
My Environment :
windows 11
Lazarus 3.0 (rev f771d54e) FPC 3.2.2 x86_64-win64-win32/win64
LAMW 0.8.6.4
JDK-21
apache-ant-1.10.14
gradle-8.6
android-ndk-r27c-windows
Android SDK Platform-Tools 35.0.2
Android SDK Build-Tools 36-rc3
Android 14.0 ("UpsideDownCake")

Question 7
   a) As shown in the figure below, if I change any other Chipset except ARMv7a+VFPv3, it will give me an error.
   b) How can I solve this problem

It's a continuous and connected problem
1、Compilation error
https://forum.lazarus.freepascal.org/index.php/topic,69647.0.html

2、Invalid library address
https://forum.lazarus.freepascal.org/index.php/topic,69648.0.html

3、“[LAMW]Build Android Apk and Run” failure
https://forum.lazarus.freepascal.org/index.php/topic,69649.0.html

4、Build Release Signed Apk Failed
https://forum.lazarus.freepascal.org/index.php/topic,69650.0.html

5、NDK Prebuild prompt not found
https://forum.lazarus.freepascal.org/index.php/topic,69651.0.html

6、arm-linux-androideabi-as.exe not found
https://forum.lazarus.freepascal.org/index.php/topic,69652.0.html

7. Change Chipset failed
https://forum.lazarus.freepascal.org/index.php/topic,69653.0.html

I feel lamw is like an aircraft carrier, powerful, but a bit leaky for a newbie, and there are a bit many leaks.
Please give me guidance from the gods as well, thank you very much!
« Last Edit: December 21, 2024, 06:01:52 am by gary »

jcmontherock

  • Sr. Member
  • ****
  • Posts: 282
Re: It feels like a big leaky boat. Question 7
« Reply #1 on: December 21, 2024, 10:37:27 pm »
Really Lazarus 3.0 ?...
Windows 11 UTF8-64 - Lazarus 4.0RC2-64 - FPC 3.2.2

gary

  • New Member
  • *
  • Posts: 28
Re: It feels like a big leaky boat. Question 7
« Reply #2 on: December 22, 2024, 08:00:28 am »
Really Lazarus 3.0 ?...
Yes, my dear friend.

gary

  • New Member
  • *
  • Posts: 28
Re: It feels like a big leaky boat. Question 7
« Reply #3 on: December 22, 2024, 08:03:36 am »
The code for this question is here, know if I'm guessing right. It may be this code that is causing me this problem

procedure TFormSettingsPaths.ComboBoxPrebuildChange(Sender: TObject);
var
 pathToNdkToolchains49: string;
 saveContent: string;
begin
  if EditPathToAndroidNDK.Text = '' then
  begin
    ShowMessage('Please, Enter "Path To Android NDK..."');
    Exit;
  end;

  saveContent:= FPrebuildOSYS;

  pathToNdkToolchains49:= EditPathToAndroidNDK.Text+DirectorySeparator+'toolchains'+DirectorySeparator+
                                                'arm-linux-androideabi-4.9'+DirectorySeparator+
                                                'prebuilt'+DirectorySeparator;

  if not DirectoryExists(pathToNdkToolchains49 + ComboBoxPrebuild.Text) then
  begin
     ShowMessage('Sorry... Path To Ndk Toolchains "'+ ComboBoxPrebuild.Text + '" Not Found!');
     ComboBoxPrebuild.Text:= saveContent;
  end
  else
     Self.FPrebuildOSYS:= ComboBoxPrebuild.Text;

end;

Mongkey

  • Sr. Member
  • ****
  • Posts: 438
Re: It feels like a big leaky boat. Question 7
« Reply #4 on: December 28, 2024, 11:55:21 pm »
Lower your NDK ex:22, on higher ndk your need to copy some build tools from lower NDK, i dont remember exactly, like llvm was throw away on higher NDK, build on android studio, all your problems instantly gone.

gary

  • New Member
  • *
  • Posts: 28
Re: It feels like a big leaky boat. Question 7
« Reply #5 on: December 31, 2024, 04:54:23 pm »
Lower your NDK ex:22, on higher ndk your need to copy some build tools from lower NDK, i dont remember exactly, like llvm was throw away on higher NDK, build on android studio, all your problems instantly gone.

Thank you very much for your help, I have solved it a few days ago and rewrote a posting to make it easier for people who come after me to use lamw. but at the moment I have a new problem with debugging, such as adding breakpoints, and how to debug it which I don't quite understand yet. If you know it and would like to share it, I would be very grateful and will rewrite a debugging post to make it easier for later people to get started!


 

TinyPortal © 2005-2018