Bom dia JM!
Thank you for your quick answer.
You hit the right spot with LAMW.ini: I didn't set properly the path to JDK.
This is how my LAMW.ini looks like now, with some sections automatically added after installation:
[NewProject]
PathToGradle=/home/jlioret/Dev/android/fpclaz/ccr/lamw-gradle/gradle-8.2.1
PathToAntBin=/home/jlioret/Dev/android/fpclaz/ccr/lamw-ant/apache-ant-1.10.12/bin
PathToSmartDesigner=/home/jlioret/Dev/android/fpclaz/ccr/lamw/android_wizard/smartdesigner
PathToJavaTemplates=/home/jlioret/Dev/android/fpclaz/ccr/lamw/android_wizard/smartdesigner/java
PathToJavaJDK=/usr/lib/jvm/java-17-openjdk-amd64
PathToWorkspace=/home/jlioret/Dev/android/fpclaz/projects/LAMWProjects
PathToAndroidSDK=/home/jlioret/Dev/android/sdk
PathToAndroidNDK=/home/jlioret/Dev/android/sdk/ndk/22.1.7171670
NDK=6
InstructionSet=2
NDKRelease=22.1.7171670
PrebuildOSYS=linux-x86_64
[JDKPaths]
0=/usr/lib/jvm/java-17-openjdk-amd64
[SDKPaths]
0=/home/jlioret/Dev/android/sdk
[GradlePaths]
0=/home/jlioret/Dev/android/fpclaz/ccr/lamw-gradle/gradle-8.2.1
Now that the ini file is set properly, as far I can understand, the AppHelloWorld fails on the
Clean up and build... process.
I attach the messages provided by Lazarus IDE as an attached file.
I I try to create a similar HelloWorld app, the
Clean up and build... process is successful.
I attach the messages provided by Lazarus IDE as another attached file.
But when I try to
[LAMW] Build Android Apk and Run, the process fails:
Messages, Hints: 2
Verbose: Selected chip architecture: armeabi-v7a
Verbose: Taking libraries from folder: /home/jlioret/Dev/android/fpclaz/projects/LAMWProjects/AppLAMWProject1/libs/armeabi-v7a
Verbose: Found library: libcontrols.so
Note: Duplicate unit "controls" in "controls", orphaned ppu "/home/jlioret/Dev/android/fpclaz/projects/LAMWProjects/AppLAMWProject1/obj/controls/controls.o"
Note: Duplicate unit "controls" in "LCLBase 3.6", ppu="/home/jlioret/Dev/android/fpclaz/lazarus/lcl/units/arm-android/controls.ppu", source="/home/jlioret/Dev/android/fpclaz/lazarus/lcl/controls.pp"
Project: Executing command before: Success
before build...
Compile Project, OS: android, CPU: arm, Target: /home/jlioret/Dev/android/fpclaz/projects/LAMWProjects/AppLAMWProject1/libs/armeabi-v7a/libcontrols.so: Success, Hints: 2
Hint: Start of reading config file /home/jlioret/Dev/android/fpclaz/fpc/bin/x86_64-linux/fpc.cfg
Hint: End of reading config file /home/jlioret/Dev/android/fpclaz/fpc/bin/x86_64-linux/fpc.cfg
Verbose: Free Pascal Compiler version 3.2.2-r0d122c49 [2024/11/27] for arm
Verbose: Copyright (c) 1993-2021 by Florian Klaempfl and others
Verbose: Target OS: Android for ARMEL
Verbose: Compiling controls.lpr
controls.lpr(9,31) Verbose: Unit "And_jni_Bridge" not used in controls
Verbose: Assembling controls
Verbose: Compiling resource /home/jlioret/Dev/android/fpclaz/projects/LAMWProjects/AppLAMWProject1/obj/controls/controls.or
Verbose: Linking /home/jlioret/Dev/android/fpclaz/projects/LAMWProjects/AppLAMWProject1/libs/armeabi-v7a/libcontrols.so
Verbose: 737 lines compiled, 0.5 sec
Verbose: 5 hint(s) issued
Project: Executing command after: Success
after build...
Building APK (Gradle)... : Exit code 1, Errors: 1
None: # Option “-e” is deprecated and might be removed in a later version of gnome-terminal.
None: # Use “-- ” to terminate the options and put the command line to execute after it.
None: # Failed to parse arguments: Unknown option --info
Panic: tool stopped with exit code 1. Use context menu to get more information.
Exception, Errors: 1
Fatal: [Exception] Failed: Cannot build APK!
For your information, I also joint the fpcupdeluxe installation log.
Thank you so much for your attention and help / Muito obrigado pela atenção e pela ajuda.
Jérôme