Recent

Author Topic: LAMW : what are "NoGUI" apps?  (Read 4328 times)

majid.ebru

  • Sr. Member
  • ****
  • Posts: 494
LAMW : what are "NoGUI" apps?
« on: March 14, 2017, 08:18:48 am »
Hi
inside demo folder exist "AppTFPNoGUIGraphicsBridgeDemo1" folder ?

1 - what is it?
.
2 - what are "NoGUI" apps?
.
3 - i can't compile it?(where is tfpnoGUIGraphicsbridge_pack file)
« Last Edit: March 14, 2017, 08:58:54 am by majid.ebru »

jmpessoa

  • Hero Member
  • *****
  • Posts: 2296
Re: LAMW : what are "NoGUI" apps?
« Reply #1 on: March 15, 2017, 04:58:05 am »
1) About "NoGUI" graphics
 
you can get this package here:

https://github.com/jmpessoa/tfpnoguigraphicsbridge

but, please, read the "readme.txt" inside

'......\demos\GUI\AppTFPNoGUIGraphicsBridgeDemo1\jni"


2) About "NoGui" LAMW application in "New Project" wizard:
You can design all your application in some java IDEs [Eclipse  and others..]
and use LAMW only to compile some  [JNI] "native" pascal code to
be include in your  Android Apk.
   
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

majid.ebru

  • Sr. Member
  • ****
  • Posts: 494
Re: LAMW : what are "NoGUI" apps?
« Reply #2 on: March 30, 2017, 11:59:57 pm »
2) About "NoGui" LAMW application in "New Project" wizard:
You can design all your application in some java IDEs [Eclipse  and others..]
and use LAMW only to compile some  [JNI] "native" pascal code to
be include in your  Android Apk.
   

how can i do that?
can you show sample?
« Last Edit: March 31, 2017, 12:03:44 am by majid.ebru »

jmpessoa

  • Hero Member
  • *****
  • Posts: 2296
Re: LAMW : what are "NoGUI" apps?
« Reply #3 on: March 31, 2017, 02:50:55 am »
Ok.

Please,

Go to the LAMW folder  ".....\demos\NoGUI\AppNoGUIDemo1\jni"  and open the
Lazarus  project  to read the Pascal code. Then Go to the folder ".....\demos\NoGUI\AppNoGUIDemo1\src\com\example\appnoguidemo1"  to read the Java code.

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

neuro

  • Jr. Member
  • **
  • Posts: 62
Re: LAMW : what are "NoGUI" apps?
« Reply #4 on: March 08, 2022, 05:34:06 pm »
After installation of tfpnoguigraphicsbridge package according to instructions at
https://github.com/jmpessoa/tfpnoguigraphicsbridge
Lazarus no longer starts, Lazarus crashes with error when starting (see screenshot attachment).

And now I have to delete and reinstall Lazarus anew  :(
I am using Lazarus on Windows 7 64-bit.

Zoran

  • Hero Member
  • *****
  • Posts: 1824
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: LAMW : what are "NoGUI" apps?
« Reply #5 on: March 08, 2022, 06:36:28 pm »
After installation of tfpnoguigraphicsbridge package according to instructions at
https://github.com/jmpessoa/tfpnoguigraphicsbridge
Lazarus no longer starts, Lazarus crashes with error when starting (see screenshot attachment).

And now I have to delete and reinstall Lazarus anew  :(
I am using Lazarus on Windows 7 64-bit.

In a situation like this, you need not delete and reinstall. Go to lazarus folder and, from terminal (command prompt) do "make clean all". Wait for lazarus to recompile.
Start the ide, remove the offending package and recompile from ide.

neuro

  • Jr. Member
  • **
  • Posts: 62
Re: LAMW : what are "NoGUI" apps?
« Reply #6 on: March 09, 2022, 05:39:57 pm »
Unfortunately in Windows your suggested solution does not work.
Command “make clean all” results in following error:
Quote
make: *** No rule to make target `clean'.  Stop.

Zoran

  • Hero Member
  • *****
  • Posts: 1824
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: LAMW : what are "NoGUI" apps?
« Reply #7 on: March 09, 2022, 06:34:58 pm »
Unfortunately in Windows your suggested solution does not work.
Command “make clean all” results in following error:
Quote
make: *** No rule to make target `clean'.  Stop.

Do you have fpc bin folder in your path? If I remember well, another problem might be that delphi is installed and it also has make utility which hides fpc's...

Try to create a batch file (save it for example as makelazarus.bat) with content like this (first carefully adjust full paths to your fpc and lazarus folders!):
Code: [Select]
cd C:\lazarus\
set path=C:\FPC\3.2.2\bin\i386-win32
make clean all

And execute (double-click) this batch file. Does it help?

jmpessoa

  • Hero Member
  • *****
  • Posts: 2296
Re: LAMW : what are "NoGUI" apps?
« Reply #8 on: March 09, 2022, 08:26:29 pm »

Hi, neuro!

First:  sorry.... but the critical issue is here:   (from "readme.txt")

Quote
1) WARNING [windows]: Before install the component TFPNoGuiGraphicsBridge:
   Copy: "freetype-6.dll" and "zlib1.dll"
      FROM: component sub-folder "dll_stuff_win32"
      TO: folder "C:\windows" or "C:\windows\system32" [win32]  or  C:\Windows\SysWOW64   [win64]

And so, maybe you will need Lazarus 32bits....
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

neuro

  • Jr. Member
  • **
  • Posts: 62
Re: LAMW : what are "NoGUI" apps?
« Reply #9 on: March 10, 2022, 01:47:35 am »
Yes, I have copied "freetype-6.dll" and "zlib1.dll" to required directories as described in instructions.
When "freetype-6.dll" and "zlib1.dll" are not copied, then Lazarus fails to start showing error message “unable to load freetype-6.dll”.
When "freetype-6.dll" and "zlib1.dll" are copied to required directories, then Lazarus simply crashes.
I am using Windows 64-bit version of Lazarus, and I guess these DLLs are 32-bit, and that is the reason of crashing.
I had to delete and reinstall Lazarus anew.
Btw, please note that current latest version release v2.2.0h of fpcupdeluxe-x86_64-win64.exe by default installs incorrect version of gradle-7.3.1 and all Android apps fail to launch.
The workaround solution is to manually install Gradle 6.8.3.
Please read here:
https://github.com/LongDirtyAnimAlf/fpcupdeluxe/issues/507
Release v2.2.0h of fpcupdeluxe-x86_64-win64.exe needs gradle-6.8.3 instead of gradle-7.3.1

 

TinyPortal © 2005-2018