Recent

Author Topic: Code GTK3 by hand anyone?  (Read 2174 times)

guest65109

  • Guest
Code GTK3 by hand anyone?
« 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). 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

benohb

  • Full Member
  • ***
  • Posts: 213
Re: Code GTK3 by hand anyone?
« Reply #1 on: January 06, 2020, 05:22:07 am »
You are right .. Thanks fpc/laz Dev

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4474
  • I like bugs.
Re: Code GTK3 by hand anyone?
« Reply #2 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?
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

 

TinyPortal © 2005-2018