LAMW : what are "NoGUI" apps? lazarus / 43-Android ---------------------------------------------------------------------- majid.ebru · 2017-03-14 07:18 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) ---------------------------------------------------------------------- jmpessoa · 2017-03-15 03:58 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. ---------------------------------------------------------------------- majid.ebru · 2017-03-30 21:59 Quote from: jmpessoa on March 15, 2017, 04:58:05 am2) 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? ---------------------------------------------------------------------- jmpessoa · 2017-03-31 00:50 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. ---------------------------------------------------------------------- neuro · 2022-03-08 16:34 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 · 2022-03-08 17:36 Quote from: neuro on March 08, 2022, 05:34:06 pmAfter 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 · 2022-03-09 16:39 Unfortunately in Windows your suggested solution does not work. Command “make clean all” results in following error: Quotemake: *** No rule to make target `clean'.  Stop. ---------------------------------------------------------------------- Zoran · 2022-03-09 17:34 Quote from: neuro on March 09, 2022, 05:39:57 pmUnfortunately in Windows your suggested solution does not work. Command “make clean all” results in following error: Quotemake: *** 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 · 2022-03-09 19:26 Hi, neuro! First:  sorry.... but the critical issue is here:   (from "readme.txt") Quote1) 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.... ---------------------------------------------------------------------- neuro · 2022-03-10 00:47 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