gitbrowser icon indicating copy to clipboard operation
gitbrowser copied to clipboard

error: won't compile on CentOS 7 64bit

Open grkblood13 opened this issue 6 years ago • 8 comments

I'm getting the following 2 errors when compiling on CentOS 7:

gitbrowser.c:1319:53: error: 'GtkDialog' has no member named 'action_area' gtk_box_pack_start(GTK_BOX(GTK_DIALOG(qoi->dialog)->action_area), hbox, TRUE, TRUE, 0);

gitbrowser.c:1320:56: error: 'GtkDialog' has no member named 'action_area' gtk_box_recorder_child(GTK_BOX(GTK_DIALOG(qoi->dialog)->action_area), hbox, 0);

grkblood13 avatar Mar 29 '18 16:03 grkblood13

Okay, first: thanks a lot for reporting this. I had no idea that anyone but me uses this software, and learning that someone cares is always cool!

Second: please add the output of running:

$ pkg-config --modversion gtk+-3.0

on your system. I seem to have 3.22.25 (Ubuntu 17.10), and for me it builds. GTK+'s documentation wasn't clear that this field has been removed either, so right now I'm a bit confused.

unwind avatar Mar 30 '18 14:03 unwind

I have 3.22.10

grkblood13 avatar Mar 30 '18 16:03 grkblood13

And no problem reporting it. I wouldn't say I'm using it yet though, but I'd like to. :) I really like Geany so I'd like to keep it as my IDE when working on git projects, so right now I'm trying to incorporate whatever git plugins I can find. I see that your tool doesn't allow you to check anything in which would be nice but beggars can't be choosers.

grkblood13 avatar Mar 30 '18 19:03 grkblood13

Thanks.

I'm stumped though, this makes no sense.

  • You get a deprecated-warning on an older version of GTK+ than the one I use, while I don't get a warning. Wut?
  • The docs discourage accessing the field directly but don't deprecate it.

Confused.

unwind avatar Mar 31 '18 13:03 unwind

Have you tried building on a CentOS 7 VM?

Sent from my iPhone

On Mar 31, 2018, at 9:27 AM, Emil Brink [email protected] wrote:

Thanks.

I'm stumped though, this makes no sense.

You get a deprecated-warning on an older version of GTK+ than the one I use, while I don't get a warning. Wut? The docs discourage accessing the field directly but don't deprecate it. Confused.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

grkblood13 avatar Mar 31 '18 13:03 grkblood13

Uh, okay, just realized Geany builds using GTK+ 2, not GTK+ 3.

So, what's the output of pkg-config --modversion gtk+-2.0 on your system? Mine is 2.24.31.

I did try the VM route, but it's verrry slow going (I'm not at all used to working with virtual maches).

unwind avatar Apr 05 '18 19:04 unwind

I just pushed a tiny change which avoids the direct access of action_area, please let me know if that changes anything. Thanks.

unwind avatar Apr 05 '18 19:04 unwind

So that time it built and it created /usr/lib64/geany/gitbrowser.so

The plugin is not showing up in the plugin manager though.

grkblood13 avatar Apr 06 '18 16:04 grkblood13