Recent

Author Topic: LAMW - Compilation Error ("Cannot find system ..")  (Read 5718 times)

BjPascal

  • New Member
  • *
  • Posts: 15
LAMW - Compilation Error ("Cannot find system ..")
« on: July 17, 2018, 12:13:32 pm »
using Lazarus 1.9.0  and FPC 3.1.1 on Win7 x64

Just installed Android stuff by using laztoapk, all went fine.

Now I created my first LAMW project, and get this error:
Cannot find system used by controls. Make sure all ppu files of a package are in its output directory. ppu in wrong directory=C:\fpcupdeluxe\fpc\units\arm-android\rtl\system.ppu..

Any idea how to fix it?
I read older posting with the same problem, but they did not help.




DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: LAMW - Compilation Error ("Cannot find system ..")
« Reply #1 on: July 17, 2018, 02:24:26 pm »
Use fpcupdeluxe (also) to install an arm-android cross-compiler !

BjPascal

  • New Member
  • *
  • Posts: 15
Re: LAMW - Compilation Error ("Cannot find system ..")
« Reply #2 on: July 17, 2018, 03:31:47 pm »
Thanks DonAlfredo !

I already had done that, and redid it again.
But the error remains.
I checked and system.ppu is in the folder. Perhaps a wrong version of it?

What else can I do?


DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: LAMW - Compilation Error ("Cannot find system ..")
« Reply #3 on: July 17, 2018, 10:32:50 pm »
I will try to explain.

Fpcupdeluxe installs a cross-compiler for ARMV7 and some more pre-defined settings, that work well for Android.

LAMW has its own pre-defined settings. These settings can be seen in the project-options. There will see something with ARMV6 and softfloat.

Just remove all these LAMW settings. If removed, your project will use the fpcupdeluxe settings and will find the correct system.ppu.

Alternative: build cross-compiler with LAMW settings (ARMV6, softfloat).

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: LAMW - Compilation Error ("Cannot find system ..")
« Reply #4 on: July 17, 2018, 11:29:37 pm »

if  you build your Lazarus/cross-arm using Fpcupdeluxe  then  select  "ARMV7a + VFPv3"  in  "new project"  settings...
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

BjPascal

  • New Member
  • *
  • Posts: 15
Re: LAMW - Compilation Error ("Cannot find system ..")
« Reply #5 on: July 18, 2018, 01:27:29 am »
I now found the cause:
In the past I had set the PathToAndroidSDK to a wrong folder.
Since I did not know how to get back to this setting I found it in JNIAndroidProject.ini. After setting the proper path it now compiles and runs.
I also selected  "ARMV7a + VFPv3" in the new project.

Many thanks for your patience, you helped me a lot !!

P.S. What SDK is currently wise to use?
I installed API 22

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: LAMW - Compilation Error ("Cannot find system ..")
« Reply #6 on: July 18, 2018, 01:57:05 am »

Quote
I installed API 22...

Api 22 is good!  But, "AppCompat" [material] theme will need API >= 25
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: LAMW - Compilation Error ("Cannot find system ..")
« Reply #7 on: July 18, 2018, 09:42:17 pm »

Ok.

Now the option  "ARMV7a + VFPv3" (*)

link to:

(*) Fpcupdeluxe
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

pfms

  • New Member
  • *
  • Posts: 12
Re: LAMW - Compilation Error ("Cannot find system ..")
« Reply #8 on: January 28, 2019, 08:58:51 pm »
I now found the cause:
In the past I had set the PathToAndroidSDK to a wrong folder.
Since I did not know how to get back to this setting I found it in JNIAndroidProject.ini. After setting the proper path it now compiles and runs.
I also selected  "ARMV7a + VFPv3" in the new project.

Many thanks for your patience, you helped me a lot !!

P.S. What SDK is currently wise to use?
I installed API 22

I'm a similar problm, but after have checked my  JNIAndroidProject.ini file (correct in my case), I still have the same problem. Any additional suggestions? Is it possible to avoid FPCUPdelx, if it is possible.

Thanks in advance

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: LAMW - Compilation Error ("Cannot find system ..")
« Reply #9 on: January 28, 2019, 10:19:17 pm »
Quote
Is it possible to avoid FPCUPdelx, if it is possible...

FPCUPdelux is a nice tool!

But,  for windows you can try directly the package  laz4android + LAMW

https://sourceforge.net/projects/laz4android/


side note: "LAMW 0.83"  changed "JNIAndroidProject.ini" to "LAMW.ini" ...
« Last Edit: January 28, 2019, 10:23:52 pm by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

 

TinyPortal © 2005-2018