I can't install the compiler. lazarus / 43-Android ---------------------------------------------------------------------- shyub · 2021-04-28 11:47 Installed "lazarus-2.0.12-fpc-3.2.0-win32" and "LAMW". According to "LAMW_Getting_Started.txt" downloaded "FPCTrunk". Completed the assembly and installation of "ARMV7a + VFPv3". Changed "fpc.cfg" and "Tools" -> "Options" -> "Environment". When I try to compile the project, I get an error: "The system cannot be found. Make sure that all the PPU files of the package are in its output directory. PPU is in the wrong directory C: \ Lazarus \ lazarus \ fpc \ 3.2.0 \ units \ arm-android \ rtl \ system.ppu .. " What could be the reason? ---------------------------------------------------------------------- jmpessoa · 2021-04-28 19:51 Can you try "ARMV7a + Soft"? ---------------------------------------------------------------------- shyub · 2021-04-29 03:07 Tested "ARMv7a + Soft", "ARM7a + VFPv3" and "x86". Does not work. Today I will reinstall Wimdows, Lazarus and check again. ---------------------------------------------------------------------- shyub · 2021-04-30 06:13 Reinstalled Lazarus and LAMW. Then follow the instructions "LAMW_Getting_Started.txt". All the same... Copied the file "fpc.cfg" from "laz4android2.0.0-FPC3.0.4", changed the path. It works under "Windows", under "Android" the same error ... ---------------------------------------------------------------------- shyub · 2021-04-30 06:20 Has anyone managed to install "lazarus-2.0.12-fpc-3.2.0-win32.exe" (https://www.lazarus-ide.org/index.php?page=downloads) and then configure according to "LAMW_Getting_Started .txt "? ---------------------------------------------------------------------- shyub · 2021-04-30 11:18 I continue to figure it out. This message is suspicious: (3104) Compiling fcllaz.pas (10001) PPU Loading C:\lazarus\fpc\3.2.0\units\arm- android\rtl\system.ppu (10042) Trying to use a unit which was compiled with a different FPU mode Fatal: (10022) Can't find unit system used by fcllaz Fatal: (1018) Compilation aborted Error: C:\lazarus\fpc\3.2.0\bin\i386-win32\ppcrossarm.exe returned an error exitcode The fact is that I have Windows-7 installed with Russian localization. Could this lead to a problem? ---------------------------------------------------------------------- shyub · 2021-05-01 06:24 I switched the computer to the English (USA) localization mode, repeated the assembly and installation of the compiler. Same errors: (10042) Trying to use a unit which was compiled with a different FPU mode Fatal: (10022) Can't find unit system used by fcllaz Fatal: (1018) Compilation aborted ---------------------------------------------------------------------- shyub · 2021-05-01 07:48 I put the computer back into English (US) localization mode. Reinstalled Lazarus and LAMW, compiled ArmV7a + Soft. The project compiles and runs (Hooray)! Moreover, I checked the compilation with English and Russian localization. However, if I install the ArmV7a + VFPv3 compiler, the same error appears again. ---------------------------------------------------------------------- shyub · 2021-05-01 08:06 The "Aarch64" compiler is working! ---------------------------------------------------------------------- jmpessoa · 2021-05-01 14:44 Good! Yes, ArmV7a + VFPv3 has some bug and  I can't fix it ....(Sorry...) Maybe someone can help here...  The code is in LAMW folder "....\ide_tools"  unit "uFormBuildFPCCross.pas"  starting on line  330... (some parameter missing (or wrong) ??? The variable "FFPUSet" in line 339 is empty??? ---------------------------------------------------------------------- loaded · 2021-05-01 15:30 I don't think the problem is with LAMW. The situation is probably related to the FPC version and settings used; I use; In Lazarus 2.0.10  -FPC 3.2.0,  ARMv7a + VFPv3   compiles without any problems. In Lazarus 2.0.6   - FPC 3.0.4,  ARMv7a + Soft      compiles without any problems. Lazarus 2.0.10 - FPC 3.2.0, ARMv7a + Soft       error occurs. Lazarus 2.0.6   - FPC 3.0.4, ARMv7a + VFPv3    error occurs. ---------------------------------------------------------------------- jmpessoa · 2021-05-01 21:07 Hi, loaded! The issue is about how to "build" the cross-compilers using only Lazarus canonical + LAMW + FPC source.... Can you do some test about? ---------------------------------------------------------------------- loaded · 2021-05-02 04:24 Quote from: jmpessoa on May 01, 2021, 11:07:39 pmCan you do some test about? Hi jmpessoa , gladly. ---------------------------------------------------------------------- loaded · 2021-05-02 13:13 In my extensive research, I found that the cause of this behavior was FPC. (I don't know if there are other reasons.) FPC configures itself according to the CfVFPV3 or CfSoft options offered when compiling for the first time. So whichever option it is compiled with, it also recognizes that option in LAMW projects. Other options fail. As I understand it, -FPC 3.0.4 also this option CfSoft -FPC 3.2.0 this option is CfVFPV3 These options can be changed by recompiling FPC. 3.0.4 We do this as follows. Downloading the FPC 3.0.4 source from  https://sourceforge.net/project s/freepascal/files/Source/3.0.4/fpc-3.0.4.source.zip/download We open it to the folder. From the directives at https://wiki.freepascal.org/Installing_the_Free_Pascal_Compiler We are following the instructions in the Compiling the FPC source header. Before you start -At a command prompt, navigate to your local FPC source directory (eg C:\Download\Source\ fpc-3.0.4) by typing: After this ; Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i make clean all Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i make crossall crossinstall OS_TARGET=android CPU_TARGET=arm CROSSOPT="-CfVFPV3 -CpARMV7A" INSTALL_PREFIX=C:\lazarus_2_0_6\fpc\3.0.4 PP=C:\lazarus_2_0_6\fpc\3.0.4\bin\i386-win32\fpc.exe BINDIR=D:\lamw_manager\LAMW\sdk\ndk-bundle\toolchains\arm-linux- androideabi-4.9\prebuilt\windows-x86_64\arm-linux-androideabi\bin  CROSSBINDIR=D:\lamw_manager\LAMW\sdk\ndk-bundle\toolchains\arm-linux- androideabi-4.9\prebuilt\windows-x86_64\bin BINUTILSPREFIX=arm-linux- androideabi- We run the commands. You have to change the sdk-ndk folder path names in the second command according to your own. then in the fpc folder in the directory where Lazarus is installed. We open the file "C:\lazarus_2_0_6\fpc\3.0.4\bin\i386-win32\fpc.cfg" in the text editor and Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i # --- Android NDK config begin --- #ifdef android  #ifdef cpuarm    # Use CPU armv7a and FPU vfpv3-d16 since corresponding units are installed  -Cparmv7a    -Cfvfpv3_d16    -FlD:\lamw_manager\LAMW\sdk\ndk- bundle\platforms\android-28\arch-arm\usr\lib    -FDD:\lamw_manager\LAMW\sdk\ndk-bundle\toolchains\arm-linux- androideabi-4.9\prebuilt\windows-x86_64\bin  #endif  #ifdef cpuaarch64    -FlD:\lamw_manager\LAMW\sdk\ndk- bundle\platforms\android-28\arch-arm64\usr\lib    -FDD:\lamw_manager\LAMW\sdk\ndk-bundle\toolchains\aarch64-linux- android-4.9\prebuilt\windows-x86_64\bin  #endif  #ifdef cpui386    -FlD:\lamw_manager\LAMW\sdk\ndk- bundle\platforms\android-28\arch-x86\usr\lib    -FDD:\lamw_manager\LAMW\sdk\ndk- bundle\toolchains\x86-4.9\prebuilt\windows-x86_64\bin  #endif  #ifdef cpux86_64    -FlD:\lamw_manager\LAMW\sdk\ndk- bundle\platforms\android-28\arch-x86_64\usr\lib64    -FDD:\lamw_manager\LAMW\sdk\ndk- bundle\toolchains\x86_64-4.9\prebuilt\windows-x86_64\bin  #endif#endif # --- Android NDK config end ---  We add the lines. Then we can compile our project with CfVFPV3 now. ---------------------------------------------------------------------- jmpessoa · 2021-05-02 16:15 Nice! Thank you! PS. Do you have some suggestion to fix/improve LAMW code?  LAMW Folder: "....\ide_tools"  unit "uFormBuildFPCCross.pas"  starting on line  330... ---------------------------------------------------------------------- loaded · 2021-05-02 18:59 jmpessoa you are a legend, LAMW is like a magic sphere, you never know where it will appear.  I paddled in vain to prepare the above post. FPC Cross Compiler is already doing this job.  The attached FPC Cross Compiler completes successfully, but when I do the compilation, it gives an error. I've been working on this issue since the morning. My brain is about to burn. Quote from: jmpessoa on May 02, 2021, 06:15:40 pmPS. Do you have some suggestion to fix/improve LAMW code? LAMW Folder: "....\ide_tools"  unit "uFormBuildFPCCross.pas"  starting on line  330... I have no idea I can give here. Sorry. For now, it's best to work with the error-free one.