Fresh install of LAMW with fpcupdeluxe 2.4.0fp lazarus / 43-Android ---------------------------------------------------------------------- Jerome Lioret · 2024-11-26 09:29 Dear members, I am struggling with my first try with LAMW, installed on a Linux Debian 12 machine with the help of fpcupdeluxe v2.4.0fp, with any previous installation removed. Trying to build AppHelloWorld fails with the following messages: QuoteBuilding 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. I tried to use the  gradle-local-build.sh in a terminal. Try fails with the following messages in terminal : QuoteInitialized native services in: /home/jlioret/.gradle/native Initialized jansi services in: /home/jlioret/.gradle/native Received JVM installation metadata from '/usr/lib/jvm/java-17-openjdk- amd64': {JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64, JAVA_VERSION=17.0.13, JAVA_VENDOR=Debian, RUNTIME_NAME=OpenJDK Runtime Environment, RUNTIME_VERSION=17.0.13+11-Debian-2deb12u1, VM_NAME=OpenJDK 64-Bit Server VM, VM_VERSION=17.0.13+11-Debian-2deb12u1, VM_VENDOR=Debian, OS_ARCH=amd64} Removing 0 daemon stop events from registry Starting a Gradle Daemon (subsequent builds will be faster) Starting process 'Gradle build daemon'. Working directory: /home/jlioret/.gradle/daemon/8.2.1 Command: /usr/lib/jvm/java-17-openjdk-amd64/bin/java --add- opens=java.base/java.util=ALL-UNNAMED --add- opens=java.base/java.lang=ALL-UNNAMED --add- opens=java.base/java.lang.invoke=ALL-UNNAMED --add- opens=java.prefs/java.util.prefs=ALL-UNNAMED --add- opens=java.base/java.nio.charset=ALL-UNNAMED --add- opens=java.base/java.net=ALL-UNNAMED --add- opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED -XX:MaxMetaspaceSize=384m -XX:+HeapDumpOnOutOfMemoryError -Xms256m -Xmx512m -Dfile.encoding=UTF-8 -Duser.country=FR -Duser.language=fr -Duser.variant -cp /home/jlioret/Dev/android/fpclaz/ccr/lamw- gradle/gradle-8.2.1/lib/gradle-launcher-8.2.1.jar -javaagent:/home/jlioret/Dev/android/fpclaz/ccr/lamw- gradle/gradle-8.2.1/lib/agents/gradle-instrumentation-agent-8.2.1.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 8.2.1 Successfully started process 'Gradle build daemon' An attempt to start the daemon took 0.589 secs. The client will now receive all logging from the daemon (pid: 7254). The daemon log file: /home/jlioret/.gradle/daemon/8.2.1/daemon-7254.out.log Starting build in new daemon [memory: 512 MiB] Using 32 worker leases. FAILURE: Build failed with an exception. * What went wrong: Directory '/home/jlioret/Dev/android/fpclaz/ccr/lamw/demos/GUI/AppHell oWord/utils/unix' does not contain a Gradle build. A Gradle build should contain a 'settings.gradle' or 'settings.gradle.kts' file in its root directory. It may also contain a 'build.gradle' or 'build.gradle.kts' file. To create a new Gradle build in this directory run 'gradle init' For more information about the 'init' task, please refer to https://docs.gradle.org/8.2.1/userguide/build_init_plugin.html in the Gradle documentation. For more details on creating a Gradle build, please refer to https://docs.gradle.org/8.2.1/userguide/tutorial_using_tasks.html in the Gradle documentation. * Try: > Run gradle init to create a new Gradle build in this directory. > Run with --stacktrace option to get the stack trace. > Run with --debug option to get more log output. > Get more help at https://help.gradle.org. BUILD FAILED in 1s If I try to create a new App, using the "New project" menu, followed by the "LAMW [GUI] Android App" option, it ends up with the lollowing error message : QuoteUnable to open file "/home/release": No such file or directory I am looking forward to your advises. Cheers, Jerome ---------------------------------------------------------------------- jmpessoa · 2024-11-26 18:14 Hi, Jerome! Please, try find the config file "LAMW.ini"  from your Lazarus installation and put it here... otherwise,  you can check the "LAMW.ini" content config paths from menu "Tools" -> "[LAMW]....." ->  "Paths Settings..." ---------------------------------------------------------------------- Jerome Lioret · 2024-11-27 11:08 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: Quote[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: QuoteMessages, Hints: 2 Verbose: Selected chip architecture: armeabi-v7a Verbose: Taking libraries from folder: /home/jlioret/Dev/android/fpcla z/projects/LAMWProjects/AppLAMWProject1/libs/armeabi-v7a Verbose: Found library: libcontrols.so Note: Duplicate unit "controls" in "controls", orphaned ppu "/home/jli oret/Dev/android/fpclaz/projects/LAMWProjects/AppLAMWProject1/obj/cont rols/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/andr oid/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/LAMWProject s/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 ---------------------------------------------------------------------- jmpessoa · 2024-11-27 18:32 Hi, Jerome! 1) Please, create a new project and before try any compile/run action put the ziped project folder on some open/public drive.... (or try send me by e-mail) 2) Note:  Lazarus+LAMW instalation by fpcUpdeluxe" need new project "ARMv7a+VFPv3" or "Aarch64"  chipset.... do you know about your device? ---------------------------------------------------------------------- Jerome Lioret · 2024-11-28 07:53 Hi JM, Thank you for your message. I attach to this message the project you asked me for, prior to any compiling and building. The device on which I pretend to perform tests is a Motorola g84 5G: https://fr- fr.support.motorola.com/app/answers/detail/a_id/175717/~/moto-g84-5g ---sp%C3%A9cifications https://pt-br.support.motorola.com/app/product_page/faqs/p/11601 I don't know if it has a "ARMv7a+VFPv3" or "Aarch64"  chipset. With regards to "Lazarus+LAMW instalation by fpcUpdeluxe", is it a way of installation that restricts the possibilities of LAMW? Thank you for your help. Cheers, Jérôme