Recent

Author Topic: LAMW Build Error - Windows  (Read 473 times)

bsod

  • Newbie
  • Posts: 6
LAMW Build Error - Windows
« on: November 27, 2024, 01:37:26 pm »
I followed all the steps described in the installation documentation.

But i can't compile the android project with LAMW and laz4android2.2.2.

Error message:

Projeto:Executando comando anterior

Compile Reason: State file "C:\Sistemas\Android\HelloWord\obj\controls\controls.compiled" of Project is missing.


Executable:
C:\Sistemas\Android\HelloWord\jni\before_build.bat

CurrentDirectory:
C:\Sistemas\Android\HelloWord\jni\

Parameters:

Command Line:
C:\Sistemas\Android\HelloWord\jni\before_build.bat

Parsers: Exibir todas as linhas de saída

ProcessID:
46412

ExitCode:
1
ExitStatus:
1

Erro: Código saída 1
 

jmpessoa

  • Hero Member
  • *****
  • Posts: 2317
Re: LAMW Build Error - Windows
« Reply #1 on: November 27, 2024, 07:23:06 pm »

Hi, bsod!

don't run "before_build.bat"  and "after_build.bat"  by hand.....

Try compile and build apk using Lazarus/LAMW menu....
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

bsod

  • Newbie
  • Posts: 6
Re: LAMW Build Error - Windows
« Reply #2 on: November 28, 2024, 12:24:03 am »
Hi jmpessoa,

I don't run the scripts by hand, i'm folowing the HelloWord App tutorial from documentation, and the error happen when i select Run > Build menu.

jmpessoa

  • Hero Member
  • *****
  • Posts: 2317
Re: LAMW Build Error - Windows
« Reply #3 on: November 28, 2024, 01:32:08 am »

Can you put  here the "LAMW.ini"  from "laz4android2.2.2/config"?
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

bsod

  • Newbie
  • Posts: 6
Re: LAMW Build Error - Windows
« Reply #4 on: November 29, 2024, 01:51:04 pm »
Hi jmpessoa,

Below the content of file:

[NewProject]
PathToSmartDesigner=c:\laz4android2.2.2\components\lazandroidmodulewizard\android_wizard\smartdesigner
PathToJavaTemplates=c:\laz4android2.2.2\components\lazandroidmodulewizard\android_wizard\smartdesigner\java
PathToAntBin=C:\Android\apache-ant-1.10.15\bin
PathToAndroidNDK=C:\Android\android-ndk-r21e
NDKRelease=21.4.7075529
NDK=5
PathToJavaJDK=C:\Program Files\Eclipse Adoptium\jdk-21.0.5.11-hotspot
PathToAndroidSDK=C:\Android\sdkJ21
PathToGradle=C:\Android\gradle-8.5
PrebuildOSYS=windows-x86_64
PathToWorkspace=C:\Sistemas\Android
InstructionSet=1
PackagePrefaceName=org.bsod

[JDKPaths]
0=C:\Program Files\Eclipse Adoptium\jdk-21.0.5.11-hotspot

[SDKPaths]
0=C:\Android\sdkJ21

[GradlePaths]
0=C:\Android\gradle-8.5

af0815

  • Hero Member
  • *****
  • Posts: 1379
Re: LAMW Build Error - Windows
« Reply #5 on: November 29, 2024, 03:34:07 pm »
BTW: Try to avoid using of pathnames with spaces or special characters
Code: Pascal  [Select][+][-]
  1. PathToJavaJDK=C:\Program Files\Eclipse Adoptium\jdk-21.0.5.11-hotspot
                                                  ^                    ^

Sometimes programms or scripts have trouble with the handling and splits the commands here.
« Last Edit: November 29, 2024, 03:36:04 pm by af0815 »
regards
Andreas

 

TinyPortal © 2005-2018