Lazarus

Installation => Linux => Topic started by: miab3 on May 11, 2017, 01:17:11 pm

Title: Gtk3 for Debian-64
Post by: miab3 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
Title: Re: Gtk3 for Debian-64
Post by: Handoko 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 ...
Title: Re: Gtk3 for Debian-64
Post by: miab3 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
Title: Re: Gtk3 for Debian-64
Post by: marcov on May 12, 2017, 04:19:32 pm
If you got linking errors, make sure the devel libraries for GTK3 are installed.
Title: Re: Gtk3 for Debian-64
Post by: Handoko 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.
Title: Re: Gtk3 for Debian-64
Post by: Handoko on May 12, 2017, 04:42:15 pm
I forgot to mention:
- UbuntuMate 16.10 64-bit
- Lazarus 1.6.4
- FPC 3.02
Title: Re: Gtk3 for Debian-64
Post by: JuhaManninen 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.
Title: Re: Gtk3 for Debian-64
Post by: Handoko 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.
Title: Re: Gtk3 for Debian-64
Post by: Thaddy 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
Title: Re: Gtk3 for Debian-64
Post by: Handoko 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

Title: Re: Gtk3 for Debian-64
Post by: thierrybo 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
Title: Re: Gtk3 for Debian-64
Post by: Thaddy 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.
TinyPortal © 2005-2018