Recent

Author Topic: LAMW projects do not compile anymore  (Read 939 times)

CC

  • Full Member
  • ***
  • Posts: 144
LAMW projects do not compile anymore
« on: May 06, 2021, 06:18:35 pm »
Hi,

I have not compiled a LAMW project for a while. After pulling the latest LAMW + ugdating FPC&Lazarus (fixes branches) with the latest  FPCUpDeluxe now I am getting this error even for a freshly created LAMW GUI project:

Code: Pascal  [Select][+][-]
  1. Compile Project, OS: android, CPU: arm, Target: C:\A\Test\AppLAMWProject2\libs\armeabi-v7a\libcontrols.so: Exit code 1, Errors: 1
  2. Fatal: Cannot find system used by controls. Make sure all ppu files of a package are in its output directory. ppu in wrong directory=D:\fpcupdeluxe_fixes\fpc\units\arm-android\rtl\system.ppu..

What settings should I check?

PS: I have read about LAMW Manager, but I prefer&use Windows 7 which is not supported by that.
« Last Edit: May 06, 2021, 06:20:52 pm by CC »

CC

  • Full Member
  • ***
  • Posts: 144
Re: LAMW projects do not compile anymore
« Reply #1 on: May 07, 2021, 10:42:08 am »
To answer my question:

FPCUpDeluxe earlier had  default options for android cross compilation which were suitable for LAMW.
It is not the case any more, but it's setup  includes a "Cross build override" edit box. So the solution generally is to add the necessary options needed for your LAMW project.

These worked for me:

"Select CPU" = arm
"Select OS" = android
"Cross build override"  = -CaEABI -Xd -CfVFPv3 -CpARMV7A -XParm-linux-androideabi-  (maybe not all of them is actually necessary)
"ARM target" = armhf

tfpandroidbridge_pack.lpk
"Compiler options" --> "Custom options" =$(IDEBuildOptions) -CfVFPV3 -CpARMV7A



 

TinyPortal © 2005-2018