Gtk3 for Debian-64 lazarus / 1-Linux ---------------------------------------------------------------------- miab3 · 2017-05-11 11:17 Where to get gtk3?: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i WARNING: unit search path does not exist: /usr/share/lazarus/1.6.4/lcl/units/x86_64-linux/gtk3for Debian 8.8-64 GNOME3 Michal ---------------------------------------------------------------------- Handoko · 2017-05-11 11:35 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 · 2017-05-12 14:01 It does not want to rebuild. It looks like gtk3 (for Lazarus) is not ready yet. Michal ---------------------------------------------------------------------- marcov · 2017-05-12 14:19 If you got linking errors, make sure the devel libraries for GTK3 are installed. ---------------------------------------------------------------------- Handoko · 2017-05-12 14:38 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 · 2017-05-12 14:42 I forgot to mention: - UbuntuMate 16.10 64-bit - Lazarus 1.6.4 - FPC 3.02 ---------------------------------------------------------------------- JuhaManninen · 2017-05-12 14:56 Quote from: Handoko on May 12, 2017, 04:38:51 pmBut 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. ---------------------------------------------------------------------- Handoko · 2017-05-12 15:03 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. ---------------------------------------------------------------------- Thaddy · 2017-05-12 16:45 It also says 1.6.4..... For GTK3 to work you need 1.8 or 1.9 ---------------------------------------------------------------------- Handoko · 2017-05-12 17:03 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 · 2018-05-09 10:20 Quote from: Handoko on May 12, 2017, 07:03:01 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 · 2018-05-09 12:30 Code: Bash  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i /usr/share/lazarus/1.6.4/lcl/units/x86_64-linux/gtk3As 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.