* * *

Author Topic: Gtk3 for Debian-64  (Read 1621 times)

miab3

  • Jr. Member
  • **
  • Posts: 92
Gtk3 for Debian-64
« on: May 11, 2017, 01:17:11 pm »
Where to get gtk3?:
Code: Pascal  [Select]
  1. WARNING: unit search path does not exist: /usr/share/lazarus/1.6.4/lcl/units/x86_64-linux/gtk3
for Debian 8.8-64 GNOME3

Michal

Handoko

  • Hero Member
  • *****
  • Posts: 1644
  • My goal: build my own game engine using Lazarus
Re: Gtk3 for Debian-64
« Reply #1 on: May 11, 2017, 01:35:15 pm »
Have you tried to rebuild your Lazarus to support GTK 3?
To do it:
Lazarus main menu > Tools > Configure Build Lazarus > on LCL widget type, choose GTK 3 (alpha) > Click the "Build" button > wait several minute ...

miab3

  • Jr. Member
  • **
  • Posts: 92
Re: Gtk3 for Debian-64
« Reply #2 on: May 12, 2017, 04:01:47 pm »
It does not want to rebuild. It looks like gtk3 (for Lazarus) is not ready yet.

Michal

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5740
Re: Gtk3 for Debian-64
« Reply #3 on: May 12, 2017, 04:19:32 pm »
If you got linking errors, make sure the devel libraries for GTK3 are installed.

Handoko

  • Hero Member
  • *****
  • Posts: 1644
  • My goal: build my own game engine using Lazarus
Re: Gtk3 for Debian-64
« Reply #4 on: May 12, 2017, 04:38:51 pm »
I've tried to rebuilt it using GTK 3. It succeed but needs some works.

The first error I got said OpenGLContext wasn't supported by ... (duh I forget). So I uninstall lazopenglcontext 0.0.1 package. And rebuilt again.

But I got a permission error. So I started my Lazarus using sudo lazarus-ide and rebuilt. No error anymore.

But because I built it using root account, now I get a dialog telling me there are multiple Lazarus when starting the IDE.

Does my GTK 3 work correctly? I don't know but at least I managed to rebuild without error.

You can the setting I used to rebuilt Lazarus using GTK 3 and the multiple Lazarus warning dialog on the images below.

Handoko

  • Hero Member
  • *****
  • Posts: 1644
  • My goal: build my own game engine using Lazarus
Re: Gtk3 for Debian-64
« Reply #5 on: May 12, 2017, 04:42:15 pm »
I forgot to mention:
- UbuntuMate 16.10 64-bit
- Lazarus 1.6.4
- FPC 3.02

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3124
  • I like bugs.
Re: Gtk3 for Debian-64
« Reply #6 on: May 12, 2017, 04:56:54 pm »
But I got a permission error. So I started my Lazarus using sudo lazarus-ide and rebuilt. No error anymore.
Don't build with sudo.
A new executable is built under your user dir ~/.lazarus if the original one is write protected.
"startlazarus" is clever enough to know which executable should be started.
That's the idea anyway. Does it work for you?

BTW, I did not know GTK3 bindings are good enough for building the whole IDE.
I must test it when I have time.
« Last Edit: May 12, 2017, 04:58:32 pm by JuhaManninen »

Handoko

  • Hero Member
  • *****
  • Posts: 1644
  • My goal: build my own game engine using Lazarus
Re: Gtk3 for Debian-64
« Reply #7 on: May 12, 2017, 05:03:50 pm »
If I didn't build it using sudo, I get permission error. But I never tried using startlazarus.

I don't think GTK 3 works on my test. Because the splash screen still showing GTK 2.
« Last Edit: May 12, 2017, 05:05:42 pm by Handoko »

Thaddy

  • Hero Member
  • *****
  • Posts: 4516
Re: Gtk3 for Debian-64
« Reply #8 on: May 12, 2017, 06:45:23 pm »
It also says 1.6.4..... For GTK3 to work you need 1.8 or 1.9
"Logically, no number of positive outcomes at the level of experimental testing can confirm a scientific theory, but a single counterexample is logically decisive."

Handoko

  • Hero Member
  • *****
  • Posts: 1644
  • My goal: build my own game engine using Lazarus
Re: Gtk3 for Debian-64
« Reply #9 on: May 12, 2017, 07:03:01 pm »
I've just found this explanation how to enable GTK3 interface:
http://wiki.lazarus.freepascal.org/GTK3_Interface

I think my test failed because I haven't installed GTK 3 and I didn't uncomment that "USEGTK3ALPHA".

Anyway, which GTK 3 should I install? There are 5 gtk3 things showed on my Synaptic Package Manager:
- gtk3-engines-breeze
- gtk3-engines-unico
- gtk3-engines-xfce
- gtk3-im-libthai (not this one, it's for Thai language)
- gtk3-nocsd


 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus