* * *

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

miab3

  • Full Member
  • ***
  • Posts: 101
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: 2387
  • 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

  • Full Member
  • ***
  • Posts: 101
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: 6328
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: 2387
  • 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: 2387
  • 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: 3401
  • 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: 2387
  • 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: 6368
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
I am enjoining wine, not whine....

Handoko

  • Hero Member
  • *****
  • Posts: 2387
  • 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


thierrybo

  • Full Member
  • ***
  • Posts: 119
Re: Gtk3 for Debian-64
« Reply #10 on: May 09, 2018, 12:20:45 pm »

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

These are gtk3-engines for theming, this is not what you need. gtk3 libraries are installed by default since a long time. For using gtk3 apps, just check you have libgtk-3-bin,libgtk-3-0 and libgtk-3-common. For building for gtk3, add libgtk-3-dev

Thaddy

  • Hero Member
  • *****
  • Posts: 6368
Re: Gtk3 for Debian-64
« Reply #11 on: May 09, 2018, 02:30:27 pm »
Code: Bash  [Select]
  1. /usr/share/lazarus/1.6.4/lcl/units/x86_64-linux/gtk3
As I explained:
"It also says 1.6.4..... For GTK3 to work you need 1.8.X (stable) or 1.9 (trunk)"
There have been a considerable amount of changes. You will probably also need FPC 3.0.4.

Please upgrade first. Then report back.
« Last Edit: May 09, 2018, 02:34:08 pm by Thaddy »
I am enjoining wine, not whine....

 

Recent

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