Recent

Author Topic: LAMW - Compilation Error  (Read 8960 times)

wcleyton

  • Jr. Member
  • **
  • Posts: 80
LAMW - Compilation Error
« on: June 20, 2016, 11:26:32 pm »
Hello,

I tried to install LAMW following the WIKI : http://wiki.lazarus.freepascal.org/LAMW

When compiling a project appears the error ( attached):
Fatal: Cannot find system used by controls. Make sure all ppu files of a package are in its output directory. ppu in wrong directory=C:\lamw\laz4android\fpc\3.0.0\units\arm-android\rtl\system.ppu..

How to fix this error ?

Lazarus 1.6 - FPC 3.0.0 - Win 10 64 Bits


jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: LAMW - Compilation Error
« Reply #1 on: June 21, 2016, 12:04:25 am »

Hi wcleyton!

Please,  put here (attached and ziped) your project  "....\jni"  folder....
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

wcleyton

  • Jr. Member
  • **
  • Posts: 80
Re: LAMW - Compilation Error
« Reply #2 on: June 21, 2016, 04:30:13 pm »
Hi jmpessoa,

Attached the requested folder.


jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: LAMW - Compilation Error
« Reply #3 on: June 21, 2016, 06:00:02 pm »

Hi WCleyton!

There is a  gtk  "contamination" in your "controls.lps".  Possibly because you, accidentally, dragged some LCL control to your "jForm".

Suggestions: 

1) delete "controls.lps"  and re-open your jForm/unit1  using:
IDE menu "Project" ---> "Form..."

2) IDE menu "Project" ---> "Project Inspector" and delete some LCL reference (if there is some...)


Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

wcleyton

  • Jr. Member
  • **
  • Posts: 80
Re: LAMW - Compilation Error
« Reply #4 on: June 21, 2016, 09:28:57 pm »
Hi jmpessoa,

The error remains . Any more suggestions?

A.S.

  • Jr. Member
  • **
  • Posts: 76
Re: LAMW - Compilation Error
« Reply #5 on: June 21, 2016, 10:45:27 pm »
lps does not have any sense. Could you post here zip of whole project?
I suggest to check your fpc.cfg

wcleyton

  • Jr. Member
  • **
  • Posts: 80
Re: LAMW - Compilation Error
« Reply #6 on: June 22, 2016, 04:39:20 pm »
Hi,

Attached: Project and fpc.cfg

A.S.

  • Jr. Member
  • **
  • Posts: 76
Re: LAMW - Compilation Error
« Reply #7 on: June 22, 2016, 08:26:48 pm »
Menu Project -> Project Options... -> Custom options: change -CfVFPv3 to -CfSoft.

wcleyton

  • Jr. Member
  • **
  • Posts: 80
[SOLVED] - Re: LAMW - Compilation Error
« Reply #8 on: June 23, 2016, 03:26:32 pm »
Hi,

It worked! Thank you all for your help.

 :D

sesilla

  • Newbie
  • Posts: 3
Re: LAMW - Compilation Error
« Reply #9 on: July 08, 2017, 01:08:05 am »
Hi,

which is the differenze between -CfVFPv3 vs -CfSoft?

Why with -CfVFPv3 option appears this error: Fatal: Cannot find system used by controls. Make sure all ppu files of a package are in its output directory. ppu in wrong directory=C:\lamw\laz4android\fpc\3.0.0\units\arm-android\rtl\system.ppu?

Thanks in advance
Sesilla

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: LAMW - Compilation Error
« Reply #10 on: July 08, 2017, 07:27:45 pm »


Quote
Hi,

which is the differenze between -CfVFPv3 vs -CfSoft?

Why with -CfVFPv3 option appears this error: Fatal: Cannot find system used by controls. Make sure all ppu files of a package are in its output directory. ppu in wrong directory=C:\lamw\laz4android\fpc\3.0.0\units\arm-android\rtl\system.ppu?

This will depend on the way/options with which you build your FPC "cross-compiler" by source ...

[In case of Laz4Android distro, we have support only for  -CfSoft ...]





Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

sesilla

  • Newbie
  • Posts: 3
Re: LAMW - Compilation Error
« Reply #11 on: July 15, 2017, 10:03:54 am »
Hi jmpessoa,

thanks for the reply. I tried to compile with [Lamw] Build FPC Cross Android and ArmV7a + VFPv3 but I get this error: Cannot Run Extern [make] Tool.

I use Lazarus 1.6.4 64bit.

Have you suggestions?

Thanks
Regards
Sesilla

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: LAMW - Compilation Error
« Reply #12 on: July 15, 2017, 06:19:24 pm »
which is the differenze between -CfVFPv3 vs -CfSoft?
ARM processors have "Vector Floating Point" unit, v3 is the 3rd version of this unit. With this switch on, the compiler will generate FPU instruction for that VFP unit. Hence, the compiled code can only be run on processors having compatible VFP unit. Soft, as its name implies, is an emulation of floating point operations, done purely in software using integer arithmetics. It will run on wider processors, but the speed is a hell lot slower.
Why with -CfVFPv3 option appears this error: Fatal: Cannot find system used by controls. Make sure all ppu files of a package are in its output directory. ppu in wrong directory=C:\lamw\laz4android\fpc\3.0.0\units\arm-android\rtl\system.ppu?
-Cf option (and any other options that form a compilation target) must be applied to ALL used units, including ones from RTL, especially the system unit. Above message appears when the compiler cannot find system unit with matching option for the target you want to compile for. e.g. your RTL is compiled to target soft FPU, but you want to compile for VFPv3.

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: LAMW - Compilation Error
« Reply #13 on: July 15, 2017, 07:12:35 pm »

Quote
... I tried to compile with [Lamw] Build FPC Cross Android and ArmV7a + VFPv3 but I get this error: Cannot Run Extern [make] Tool.

In "dialog build"

Configure the Path to fpc "*.exe"       [so,  we will get the fpc  "make.exe" path]

example: c:\lazarus\fpc\3.0.0\bin\i386-win32

Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

sesilla

  • Newbie
  • Posts: 3
Re: LAMW - Compilation Error
« Reply #14 on: July 18, 2017, 05:01:07 pm »
Quote
In "dialog build"

Configure the Path to fpc "*.exe"       [so,  we will get the fpc  "make.exe" path]

example: c:\lazarus\fpc\3.0.0\bin\i386-win32

The paths are correct.

Has any of you compiled Android Module Wizard demo with option "-CpARMv7a -CfVFPv3"?

I have compiled lazarus/fpc with this instructions:
Code: Pascal  [Select][+][-]
  1. C:\lazarus\fpc\3.0.2\bin\x86_64-win64\make.exe clean crossall crossinstall FPC=C:\lazarus\fpc\3.0.2\bin\x86_64-win64\fpc.exe OS_TARGET=android CPU_TARGET=arm OPT="-dFPC_ARMEL" CROSSOPT="-CpARMv7a -OoFASTMATH -CfVFPv3" CROSSBINDIR=C:\android-ndk-r10e\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64\arm-linux-androideabi\bin INSTALL_PREFIX=C:\fpc_svn_3.1.1
  2.  

The result: ppcrossarm.exe and "arm-android" folder under units. When compile a demo (Android Module Wizard) width follow custom options: "-Xd -CfVFPv3 -CpARMv7a -XParm-linux-androideabi- -FDC:\android-ndk-r10e\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64\bin"

This is the full error:
Code: Pascal  [Select][+][-]
  1. [0.008] (1002) Target OS: Android for ARMEL
  2. [0.008] (1003) Using executable path: C:\lazarus\fpc\3.0.2\bin\x86_64-win64\
  3. [0.008] (1004) Using unit path: .\
  4. [0.008] (1004) Using unit path: C:\lazarus\fpc\3.1.1\units\arm-android\httpd22\
  5. [0.008] (1004) Using unit path: C:\lazarus\fpc\3.1.1\units\arm-android\rtl\
  6. [0.008] (1004) Using unit path: C:\lazarus\fpc\3.1.1\units\arm-android\zlib\
  7. [0.008] (1004) Using unit path: etc etc etc --> all others units
  8. [0.008] (1004) Using unit path: C:\lazarus\fpc\3.1.1\units\arm-android\
  9. [0.008] (1004) Using unit path: C:\lazarus\fpc\3.0.2\bin\x86_64-win64\
  10. [0.008] (1006) Using library path: .\
  11. [0.008] (1006) Using library path: C:\lazarus\fpc\3.1.1\units\arm-android\httpd22\
  12. [0.008] (1006) Using library path: C:\lazarus\fpc\3.1.1\units\arm-android\rtl\
  13. [0.008] (1006) Using library path: etc etc etc --> all others units
  14. [0.008] (1007) Using object path: .\
  15. [0.008] (1007) Using object path: C:\lazarus\fpc\3.1.1\units\arm-android\httpd22\
  16. [0.008] (1007) Using object path: C:\lazarus\fpc\3.1.1\units\arm-android\rtl\
  17. [0.008] (1007) Using library path: etc etc etc --> all others units
  18. [0.008] (3104) Compiling fcllaz.pas
  19. [0.008] Searching file fcllaz.pas... found
  20. 2 171/800 Kb Used
  21. [0.008] C:\lazarus\packager\registration\fcllaz.pas(7,2)  (2032) Handling switch "$WARN"
  22. [0.008] C:\lazarus\packager\registration\fcllaz.pas(8,1)  (3101) Macro defined: FPC_PIC
  23. [0.008] C:\lazarus\packager\registration\fcllaz.pas(8,1)  (3101) Macro defined: PIC
  24. [0.008] (PROGRAM)  (10043) Loading interface units from FCLLAZ
  25. [0.008] (fcllaz)   (10057) Registering new unit SYSTEM
  26. [0.008] (fcllaz)   (10027) Load from FCLLAZ (interface) unit SYSTEM
  27. [0.008] (SYSTEM)   (10055) Loading unit SYSTEM
  28. [0.008] (10000) Unitsearch: system.ppu
  29. [0.008] (10000) Unitsearch: C:\lazarus\packager\units\arm-android\system.ppu
  30. [0.008] (10000) Unitsearch: system.pp
  31. [0.008] (10000) Unitsearch: system.pas
  32. [0.008] (10000) Unitsearch: system.ppu
  33. [0.008] (10000) Unitsearch: system.pp
  34. [0.008] (10000) Unitsearch: system.pas
  35. [0.008] (10000) Unitsearch: C:\lazarus\fpc\3.1.1\units\arm-android\httpd22\system.ppu
  36. [0.008] (10000) Unitsearch: C:\lazarus\fpc\3.1.1\units\arm-android\httpd22\system.pp
  37. [0.008] (10000) Unitsearch: C:\lazarus\fpc\3.1.1\units\arm-android\httpd22\system.pas
  38. [0.008] (10000) Unitsearch: C:\lazarus\fpc\3.1.1\units\arm-android\rtl\system.ppu
  39. [0.008] (10001) PPU Loading C:\lazarus\fpc\3.1.1\units\arm-android\rtl\system.ppu
  40. [0.008] (SYSTEM)   (10002) PPU Name: C:\lazarus\fpc\3.1.1\units\arm-android\rtl\system.ppu
  41. [0.008] (SYSTEM)   (10042) Trying to use a unit which was compiled with a different FPU mode
  42. [0.008] (10000) Unitsearch: C:\lazarus\fpc\3.1.1\units\arm-android\rtl\system.pp
  43. [0.008] (10000) Unitsearch: C:\lazarus\fpc\3.1.1\units\arm-android\rtl\system.pas
  44. [0.008] (10000) Unitsearch: etc etc etc --> all others units
  45. [0.020] Fatal: (10022) Can't find unit system used by fcllaz
  46. [0.020] Fatal: (1018) Compilation aborted
  47. Error: C:\lazarus\fpc\3.0.2\bin\x86_64-win64\ppcrossarm.exe returned an error exitcode
  48.  


Thank you
Regards
Sesilla

 

TinyPortal © 2005-2018