Hi Tony,

2016-02-24 3:39 GMT+09:00 Tony Mechelynck <[email protected]>:

> N.B. In my Huge build, which has --enable-gnome-check but neither
> --enable nor --disable -gui, configure sets gui=gtk2 as expected. The
> following errors are in my Tiny build, which has --disable-gui
>
> IMHO, when --disable-gui, configure should skip the GTK3 test and
> enable no GUI of any kind. The "Makefile" mentioned shortly before
> make aborts is of course the src/Makefile
>

You're definitely right.   That's my mistake.

The following patch fixes the problem:

diff --git a/src/configure.in b/src/configure.in
index 930278c..acbccde 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -2207,6 +2207,7 @@ enable_gui_canon=`echo "_$enable_gui" | \

 dnl Skip everything by default.
 SKIP_GTK2=YES
+SKIP_GTK3=YES
 SKIP_GNOME=YES
 SKIP_MOTIF=YES
 SKIP_ATHENA=YES

Best regards,
Kazunobu


> […]
> checking --enable-gui argument... no GUI support
> checking whether or not to look for GTK+ 3... yes
> checking --disable-gtktest argument... gtk test enabled
> checking for pkg-config... /usr/bin/pkg-config
> checking for GTK - version >= 3.0.0... yes; found version 3.16.7
> checking version of Gdk-Pixbuf... OK.
> checking for glib-compile-resources... /usr/bin/glib-compile-resources
> checking glib-compile-resources... usable.
> […]
> X GUI selected; xim has been enabled
> configure: updating cache auto/config.cache
> configure: creating auto/config.status
> config.status: creating auto/config.mk
> config.status: creating auto/config.h
> […]
> gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -pthread
> -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0
> -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0
> -I/usr/lib64/dbus-1.0/include -I/usr/include/gtk-3.0
> -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo
> -I/usr/include/pango-1.0 -I/usr/include/harfbuzz
> -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo
> -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm
> -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0
> -I/usr/include/libpng16 -I/usr/include/glib-2.0
> -I/usr/lib64/glib-2.0/include    -O2 -fno-strength-reduce -Wall
> -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1       -o objects/gui_gtk_x11.o
> gui_gtk_x11.c
> gui_gtk_x11.c: In function ‘gui_mch_mousehide’:
> gui_gtk_x11.c:7118:37: error: ‘GtkWidget’ has no member named ‘window’
>    gdk_window_set_cursor(gui.drawarea->window, NULL);
>                                      ^
> gui_gtk_x11.c: At top level:
> gui_gtk_x11.c:1824:1: warning: ‘gui_gtk_window_at_position’ defined
> but not used [-Wunused-function]
>  gui_gtk_window_at_position(GtkWidget *widget,
>  ^
> Makefile:2760: recipe for target 'objects/gui_gtk_x11.o' failed
> make: *** [objects/gui_gtk_x11.o] Error 1
> exit status 2
>
>
> Best regards,
> Tony.
>
> --
> --
> You received this message from the "vim_dev" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups
> "vim_dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui