Hi All,
during porting the scope plugin to GTK3 I had to switch from "GdkColor" to https://developer.gnome.org/gdk3/stable/gdk3-RGBA-Colors.html#GdkRGBA"GdkRGBA". The scope code was calling "vte_terminal_set_color_foreground" which according to the geany header files seems to have a replacement which I called instead: "vte_terminal_set_color_foreground_rgba". Since I replaced the call I get linker errors.
I saw that geany is creating the functions through a macro surrounded by some version checks. I assume I have to change something on the build parameters for geany to make it work. Please help.
Best Regards, Lars
Le 21/02/2018 à 15:06, Lars Paulsen a écrit :
Hi All,
during porting the scope plugin to GTK3 I had to switch from "GdkColor" to https://developer.gnome.org/gdk3/stable/gdk3-RGBA-Colors.html#GdkRGBA"GdkRGBA". The scope code was calling "vte_terminal_set_color_foreground" which according to the geany header files seems to have a replacement which I called instead: "vte_terminal_set_color_foreground_rgba". Since I replaced the call I get linker errors.
I saw that geany is creating the functions through a macro surrounded by some version checks. I assume I have to change something on the build parameters for geany to make it work. Please help.
Don't touch Geany itself, only Geany-Plugins. And you have to change so you use a GTK3 version of libvte with that function ("libvte2.90" package IIRC) and not the GTK2 version ("vte").
Regards, Colomban
Hello Colomban,
I saw that in the GTK3 porting PR for the debugger plugin and also tried changing scope.m4 accordingly: https://github.com/geany/geany-plugins/pull/645/files#diff-41e5fe75dcc03252e...
But if I do that my code does not compile cause it says "#include <vte/vte.h>" not found. I did not see any other build related changes regarding VTE in that PR so I wonder what's missing. Any ideas?
Greetings, Lars
On 21.02.2018 23:12, Colomban Wendling wrote:
Le 21/02/2018 à 15:06, Lars Paulsen a écrit :
Hi All,
during porting the scope plugin to GTK3 I had to switch from "GdkColor" to https://developer.gnome.org/gdk3/stable/gdk3-RGBA-Colors.html#GdkRGBA"GdkRGBA". The scope code was calling "vte_terminal_set_color_foreground" which according to the geany header files seems to have a replacement which I called instead: "vte_terminal_set_color_foreground_rgba". Since I replaced the call I get linker errors.
I saw that geany is creating the functions through a macro surrounded by some version checks. I assume I have to change something on the build parameters for geany to make it work. Please help.
Don't touch Geany itself, only Geany-Plugins. And you have to change so you use a GTK3 version of libvte with that function ("libvte2.90" package IIRC) and not the GTK2 version ("vte").
Regards, Colomban _______________________________________________ Devel mailing list Devel@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/devel
On 22 February 2018 at 16:11, Lars Paulsen lars_paulsen@web.de wrote:
Hello Colomban,
I saw that in the GTK3 porting PR for the debugger plugin and also tried changing scope.m4 accordingly: https://github.com/geany/geany-plugins/pull/645/files#diff-41e5fe75dcc03252e...
But if I do that my code does not compile cause it says "#include <vte/vte.h>" not found. I did not see any other build related changes regarding VTE in that PR so I wonder what's missing. Any ideas?
Are you sure you have the -dev package for libvte2.9x installed, it doesn't seem to be needed to build GTK3 Geany (at least its not installed here and Geany's VTE works) but then Geany does some funny dynamic stuff with VTE so thats maybe why.
Cheers Lex
Greetings, Lars
On 21.02.2018 23:12, Colomban Wendling wrote:
Le 21/02/2018 à 15:06, Lars Paulsen a écrit :
Hi All,
during porting the scope plugin to GTK3 I had to switch from "GdkColor" to
https://developer.gnome.org/gdk3/stable/gdk3-RGBA-Colors.html#GdkRGBA"GdkRGBA". The scope code was calling "vte_terminal_set_color_foreground" which according to the geany header files seems to have a replacement which I called instead: "vte_terminal_set_color_foreground_rgba". Since I replaced the call I get linker errors.
I saw that geany is creating the functions through a macro surrounded by some version checks. I assume I have to change something on the build parameters for geany to make it work. Please help.
Don't touch Geany itself, only Geany-Plugins. And you have to change so you use a GTK3 version of libvte with that function ("libvte2.90" package IIRC) and not the GTK2 version ("vte").
Regards, Colomban _______________________________________________ Devel mailing list Devel@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/devel
Devel mailing list Devel@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/devel
Hi Lex,
it turned out I had not.
Then I installed it using apt-get install but Ubuntu only installed a version 0.42 which was older than required.
So I downloaded the sources and built it myself. After that the error message about the missing "#include <vte/vte.h>" was gone.
But I got linker errors for calls to unresolved external function "vte_terminal_set_color_foreground_rgba". I assume this is some geany macro stuff. It turned out I can simply call "vte_terminal_set_color_foreground" because they changed the parameter from "GdkColor" to "GdkRGBA" - just what I needed.
So far vte issues seems to be solved. Thanks to all for helping out again.
Regards, Lars
On 22.02.2018 09:08, Lex Trotman wrote:
On 22 February 2018 at 16:11, Lars Paulsen lars_paulsen@web.de wrote:
Hello Colomban,
I saw that in the GTK3 porting PR for the debugger plugin and also tried changing scope.m4 accordingly: https://github.com/geany/geany-plugins/pull/645/files#diff-41e5fe75dcc03252e...
But if I do that my code does not compile cause it says "#include <vte/vte.h>" not found. I did not see any other build related changes regarding VTE in that PR so I wonder what's missing. Any ideas?
Are you sure you have the -dev package for libvte2.9x installed, it doesn't seem to be needed to build GTK3 Geany (at least its not installed here and Geany's VTE works) but then Geany does some funny dynamic stuff with VTE so thats maybe why.
Cheers Lex
Greetings, Lars
On 21.02.2018 23:12, Colomban Wendling wrote:
Le 21/02/2018 à 15:06, Lars Paulsen a écrit :
Hi All,
during porting the scope plugin to GTK3 I had to switch from "GdkColor" to
https://developer.gnome.org/gdk3/stable/gdk3-RGBA-Colors.html#GdkRGBA"GdkRGBA". The scope code was calling "vte_terminal_set_color_foreground" which according to the geany header files seems to have a replacement which I called instead: "vte_terminal_set_color_foreground_rgba". Since I replaced the call I get linker errors.
I saw that geany is creating the functions through a macro surrounded by some version checks. I assume I have to change something on the build parameters for geany to make it work. Please help.
Don't touch Geany itself, only Geany-Plugins. And you have to change so you use a GTK3 version of libvte with that function ("libvte2.90" package IIRC) and not the GTK2 version ("vte").
Regards, Colomban _______________________________________________ Devel mailing list Devel@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/devel
Devel mailing list Devel@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/devel
Le 22/02/2018 à 15:09, Lars Paulsen a écrit :
Then I installed it using apt-get install but Ubuntu only installed a version 0.42 which was older than required.
It sounds odd you'd need a version not found in Ubuntu, unless you'd be using a very old Ubuntu. And in any case, depending on something too recent for major distributions to have it has to be a conscious choice: some users might not have access to your software, or have a harder time to get it. Just a thought.
So I downloaded the sources and built it myself. After that the error message about the missing "#include <vte/vte.h>" was gone.
But I got linker errors for calls to unresolved external function "vte_terminal_set_color_foreground_rgba". I assume this is some geany macro stuff. It turned out I can simply call "vte_terminal_set_color_foreground" because they changed the parameter from "GdkColor" to "GdkRGBA" - just what I needed.
Oooh, right, in Geany we have wrappers to bridge this ABI break so we don't have to deal with it, so yeah the `_rgba` suffix is just an internal Geany glitch in vte.c, not any actual API anywhere. Sorry for the confusion it gave you indeed.
Regards, Colomban
On 23.02.2018 04:19, Colomban Wendling wrote:
Le 22/02/2018 à 15:09, Lars Paulsen a écrit :
Then I installed it using apt-get install but Ubuntu only installed a version 0.42 which was older than required.
It sounds odd you'd need a version not found in Ubuntu, unless you'd be using a very old Ubuntu. And in any case, depending on something too recent for major distributions to have it has to be a conscious choice: some users might not have access to your software, or have a harder time to get it. Just a thought.
So I downloaded the sources and built it myself. After that the error message about the missing "#include <vte/vte.h>" was gone.
But I got linker errors for calls to unresolved external function "vte_terminal_set_color_foreground_rgba". I assume this is some geany macro stuff. It turned out I can simply call "vte_terminal_set_color_foreground" because they changed the parameter from "GdkColor" to "GdkRGBA" - just what I needed.
Oooh, right, in Geany we have wrappers to bridge this ABI break so we don't have to deal with it, so yeah the `_rgba` suffix is just an internal Geany glitch in vte.c, not any actual API anywhere. Sorry for the confusion it gave you indeed.
Regards, Colomban _______________________________________________ Devel mailing list Devel@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/devel
About the version I simply copied what I found in the debugger plugin PR for GTK3 porting. If I got a version running I will re-check to find the smallest version of VTE2.91 which still works. For your information: I am running Ubuntu 16.04.
Regards, Lars
A short update:
Checking the documentation on GNOME Developer Center revealed that no VTE function used in the scope plugin seems to require a specific version. So I posted my PR without any version requirement for VTE (so only [vte-2.91]).
Greetings, Lars
On 23.02.2018 07:14, Lars Paulsen wrote:
On 23.02.2018 04:19, Colomban Wendling wrote:
Le 22/02/2018 à 15:09, Lars Paulsen a écrit :
Then I installed it using apt-get install but Ubuntu only installed a version 0.42 which was older than required.
It sounds odd you'd need a version not found in Ubuntu, unless you'd be using a very old Ubuntu. And in any case, depending on something too recent for major distributions to have it has to be a conscious choice: some users might not have access to your software, or have a harder time to get it. Just a thought.
So I downloaded the sources and built it myself. After that the error message about the missing "#include <vte/vte.h>" was gone.
But I got linker errors for calls to unresolved external function "vte_terminal_set_color_foreground_rgba". I assume this is some geany macro stuff. It turned out I can simply call "vte_terminal_set_color_foreground" because they changed the parameter from "GdkColor" to "GdkRGBA" - just what I needed.
Oooh, right, in Geany we have wrappers to bridge this ABI break so we don't have to deal with it, so yeah the `_rgba` suffix is just an internal Geany glitch in vte.c, not any actual API anywhere. Sorry for the confusion it gave you indeed.
Regards, Colomban _______________________________________________ Devel mailing list Devel@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/devel
About the version I simply copied what I found in the debugger plugin PR for GTK3 porting. If I got a version running I will re-check to find the smallest version of VTE2.91 which still works. For your information: I am running Ubuntu 16.04.
Regards, Lars _______________________________________________ Devel mailing list Devel@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/devel