-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation failed on GNOME 3.28.3 (RHEL7.6) #113
Comments
@manosnoam I encountered the same issue on Arch Linux. The GTK2 codebase seems to have been abandoned. Or at least isn't building properly any longer (which is why the AUR still carries 1.4.3 by the way). Using the Regards |
Hey, I am running into the same error on Ubuntu 16.04. I have also tried to compile with
Any other alternatives? |
Hi,
|
The GTK version is |
You need to install gtk3-devel.x86_64. On CentOS / RHEL: |
[nmanos@nmanos ClipIt]$ sudo make
make all-recursive
make[1]: Entering directory
/home/nmanos/automation/ClipIt' Making all in data make[2]: Entering directory
/home/nmanos/automation/ClipIt/data'make[2]: Nothing to be done for
all'. make[2]: Leaving directory
/home/nmanos/automation/ClipIt/data'Making all in doc
make[2]: Entering directory
/home/nmanos/automation/ClipIt/doc' make[2]: Nothing to be done for
all'.make[2]: Leaving directory
/home/nmanos/automation/ClipIt/doc' Making all in src make[2]: Entering directory
/home/nmanos/automation/ClipIt/src'gcc -DHAVE_CONFIG_H -I. -I.. -I.. -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/uuid -I/usr/include/pixman-1 -I/usr/include/libdrm -Wall -g -DCLIPITLOCALEDIR=""/usr/local/share/locale"" -g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
main.c: In function ‘item_check’:
main.c:211:7: error: unknown type name ‘GdkSeat’
GdkSeat *seat = gdk_display_get_default_seat(display);
^
main.c:211:7: warning: implicit declaration of function ‘gdk_display_get_default_seat’ [-Wimplicit-function-declaration]
main.c:211:23: warning: initialization makes pointer from integer without a cast [enabled by default]
GdkSeat *seat = gdk_display_get_default_seat(display);
^
main.c:213:7: warning: implicit declaration of function ‘gdk_window_get_device_position’ [-Wimplicit-function-declaration]
gdk_window_get_device_position(window, gdk_seat_get_pointer(seat), NULL,
^
main.c:213:7: warning: implicit declaration of function ‘gdk_seat_get_pointer’ [-Wimplicit-function-declaration]
main.c: In function ‘show_about_dialog’:
main.c:388:25: warning: implicit declaration of function ‘gtk_widget_render_icon_pixbuf’ [-Wimplicit-function-declaration]
gtk_widget_render_icon_pixbuf(about_dialog, GTK_STOCK_ABOUT, GTK_ICON_SIZE_MENU));
^
main.c:388:25: warning: passing argument 2 of ‘gtk_window_set_icon’ makes pointer from integer without a cast [enabled by default]
In file included from /usr/include/gtk-2.0/gtk/gtkdialog.h:35:0,
from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32,
from /usr/include/gtk-2.0/gtk/gtk.h:33,
from main.c:31:
/usr/include/gtk-2.0/gtk/gtkwindow.h:285:12: note: expected ‘struct GdkPixbuf *’ but argument is of type ‘int’
void gtk_window_set_icon (GtkWindow *window,
^
main.c: In function ‘show_actions_menu’:
main.c:510:12: warning: variable ‘fread_return’ set but not used [-Wunused-but-set-variable]
size_t fread_return;
^
main.c: In function ‘underline_match’:
main.c:619:3: warning: passing argument 1 of ‘gtk_label_set_attributes’ from incompatible pointer type [enabled by default]
gtk_label_set_attributes (gtk_label, attr_list);
^
In file included from /usr/include/gtk-2.0/gtk/gtkaccellabel.h:38:0,
from /usr/include/gtk-2.0/gtk/gtk.h:35,
from main.c:31:
/usr/include/gtk-2.0/gtk/gtklabel.h:115:23: note: expected ‘struct GtkLabel *’ but argument is of type ‘struct GtkWidget *’
void gtk_label_set_attributes (GtkLabel label,
^
main.c: In function ‘selected_by_input’:
main.c:642:3: warning: passing argument 1 of ‘gtk_container_get_children’ from incompatible pointer type [enabled by default]
GList element = gtk_container_get_children(menu);
^
In file included from /usr/include/gtk-2.0/gtk/gtkbin.h:35:0,
from /usr/include/gtk-2.0/gtk/gtkwindow.h:36,
from /usr/include/gtk-2.0/gtk/gtkdialog.h:35,
from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32,
from /usr/include/gtk-2.0/gtk/gtk.h:33,
from main.c:31:
/usr/include/gtk-2.0/gtk/gtkcontainer.h:133:10: note: expected ‘struct GtkContainer *’ but argument is of type ‘struct GtkMenuShell ’
GList gtk_container_get_children (GtkContainer *container);
^
main.c:661:7: warning: passing argument 1 of ‘gtk_widget_set_sensitive’ from incompatible pointer type [enabled by default]
gtk_widget_set_sensitive(menu_item, true);
^
In file included from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35:0,
from /usr/include/gtk-2.0/gtk/gtkbin.h:35,
from /usr/include/gtk-2.0/gtk/gtkwindow.h:36,
from /usr/include/gtk-2.0/gtk/gtkdialog.h:35,
from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32,
from /usr/include/gtk-2.0/gtk/gtk.h:33,
from main.c:31:
/usr/include/gtk-2.0/gtk/gtkwidget.h:964:23: note: expected ‘struct GtkWidget *’ but argument is of type ‘struct GtkMenuItem *’
void gtk_widget_set_sensitive (GtkWidget *widget,
^
main.c:663:7: warning: passing argument 1 of ‘gtk_widget_set_sensitive’ from incompatible pointer type [enabled by default]
gtk_widget_set_sensitive(menu_item, false);
^
In file included from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35:0,
from /usr/include/gtk-2.0/gtk/gtkbin.h:35,
from /usr/include/gtk-2.0/gtk/gtkwindow.h:36,
from /usr/include/gtk-2.0/gtk/gtkdialog.h:35,
from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32,
from /usr/include/gtk-2.0/gtk/gtk.h:33,
from main.c:31:
/usr/include/gtk-2.0/gtk/gtkwidget.h:964:23: note: expected ‘struct GtkWidget *’ but argument is of type ‘struct GtkMenuItem *’
void gtk_widget_set_sensitive (GtkWidget *widget,
^
main.c:671:2: warning: passing argument 2 of ‘gtk_menu_shell_select_item’ from incompatible pointer type [enabled by default]
gtk_menu_shell_select_item(menu, first_match);
^
In file included from /usr/include/gtk-2.0/gtk/gtkmenu.h:36:0,
from /usr/include/gtk-2.0/gtk/gtklabel.h:36,
from /usr/include/gtk-2.0/gtk/gtkaccellabel.h:38,
from /usr/include/gtk-2.0/gtk/gtk.h:35,
from main.c:31:
/usr/include/gtk-2.0/gtk/gtkmenushell.h:109:7: note: expected ‘struct GtkWidget *’ but argument is of type ‘struct GtkMenuItem *’
void gtk_menu_shell_select_item (GtkMenuShell *menu_shell,
^
main.c: In function ‘selected_by_digit’:
main.c:723:2: warning: passing argument 1 of ‘gtk_widget_destroy’ discards ‘const’ qualifier from pointer target type [enabled by default]
gtk_widget_destroy(history_menu);
^
In file included from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35:0,
from /usr/include/gtk-2.0/gtk/gtkbin.h:35,
from /usr/include/gtk-2.0/gtk/gtkwindow.h:36,
from /usr/include/gtk-2.0/gtk/gtkdialog.h:35,
from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32,
from /usr/include/gtk-2.0/gtk/gtk.h:33,
from main.c:31:
/usr/include/gtk-2.0/gtk/gtkwidget.h:837:9: note: expected ‘struct GtkWidget *’ but argument is of type ‘const struct GtkWidget *’
void gtk_widget_destroy (GtkWidget *widget);
^
main.c: In function ‘main’:
main.c:1140:2: warning: implicit declaration of function ‘init_history_timeout_timer’ [-Wimplicit-function-declaration]
init_history_timeout_timer();
^
make[2]: *** [main.o] Error 1
make[2]: Leaving directory
/home/nmanos/automation/ClipIt/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory
/home/nmanos/automation/ClipIt'make: *** [all] Error 2
[nmanos@nmanos ClipIt]$
The text was updated successfully, but these errors were encountered: