#1 2016-11-08 07:20:37

tklaz
Member
Registered: 2016-11-02
Posts: 10

Cross compiling to Android -why widgetset gtk2?

Hi, I am crosscompiling a library (without any gui) to Android for the first time.
I select Target OS Android and target CPU arm.
Compilation works but I get this error:

gtk2cellrenderer.pas(30,3) Fatal: Cannot find gtk2 used by Gtk2CellRenderer of package LCL.

Is gtk2 not present on Android?
When not then why is it selected as default?

When I tried to select eg. nogui widgetset the compilation runs ok (+had to remove any packages that depend on Printer4Lazarus).

Thanks!

Offline

#2 2016-11-08 16:48:02

AOG
Member
Registered: 2014-02-24
Posts: 349

Re: Cross compiling to Android -why widgetset gtk2?

Nope. No gtk2 on Android ! No X11 anyhow !!

You should use another tool to make Android apps:
https://github.com/jmpessoa/lazandroidmodulewizard

Works very well together with the mORMot.
There is even a mORMot sample !
https://github.com/jmpessoa/lazandroidm … ORMotDemo1

Offline

#3 2016-11-11 12:15:02

tklaz
Member
Registered: 2016-11-02
Posts: 10

Re: Cross compiling to Android -why widgetset gtk2?

Thank you AOG, been already using LAMW.

Offline

Board footer

Powered by FluxBB