Lazarus

Programming => Widgetset => GTK => Topic started by: guest65109 on January 05, 2020, 01:52:29 pm

Title: Code GTK3 by hand anyone?
Post by: guest65109 on January 05, 2020, 01:52:29 pm
The lazarus-ccr GTK3 headers is outdated, I have to replace them with the version shipped by Lazarus itself and could have the helloworld example here compiled and worked (https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/bindings/gtk3/examples/helloworld/HelloWorld.lpr (https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/bindings/gtk3/examples/helloworld/HelloWorld.lpr)). The only notice is we have to prepend the laz prefix before unit name, for example: lazgtk3, and have to add lcl/interfaces/gtk3/gtk3bindings/ to Other unit files.

My conclusion is... we are so lucky because of having the LCL and the Lazarus Form Designer  :P
Title: Re: Code GTK3 by hand anyone?
Post by: benohb on January 06, 2020, 05:22:07 am
You are right .. Thanks fpc/laz Dev
Title: Re: Code GTK3 by hand anyone?
Post by: JuhaManninen on January 06, 2020, 11:12:39 am
... and have to add lcl/interfaces/gtk3/gtk3bindings/ to Other unit files.
You should not add library paths to "Other unit files". I know that is how you do it in Delphi but in Lazarus a package (LCL in this case) injects its paths to a project when added as a dependency.
Adding it also to "Other unit files" may cause strange errors about incompatible .ppu or similar.
I don't know why those source files are in Lazarus-CCR. I guess they should be removed. Who's project is it?
TinyPortal © 2005-2018