[GtkGLExt] /usr/include/gtk-2.0/gdk/gdkinput.h error
- From: YuGiOhJCJ Mailing-List <yugiohjcj-mailinglist laposte net>
- To: gtkglext-list gnome org
- Subject: [GtkGLExt] /usr/include/gtk-2.0/gdk/gdkinput.h error
- Date: Wed, 6 Mar 2013 20:20:38 +0100
Hello,
I got an error when I try to compile gtkglext-1.0.6 (and the same error on gtkglext-1.2.0).
See here:
$ make
make all-recursive
make[1]: Entering directory `/home/yugiohjcj/documents/downloads/software/gtkglext-1.0.6'
Making all in gdk
make[2]: Entering directory `/home/yugiohjcj/documents/downloads/software/gtkglext-1.0.6/gdk'
make all-recursive
make[3]: Entering directory `/home/yugiohjcj/documents/downloads/software/gtkglext-1.0.6/gdk'
Making all in glext
make[4]: Entering directory `/home/yugiohjcj/documents/downloads/software/gtkglext-1.0.6/gdk/glext'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/yugiohjcj/documents/downloads/software/gtkglext-1.0.6/gdk/glext'
Making all in x11
make[4]: Entering directory `/home/yugiohjcj/documents/downloads/software/gtkglext-1.0.6/gdk/x11'
if /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DG_LOG_DOMAIN=\"GdkGLExt\"
-DGDK_GL_COMPILATION -DINSIDE_GDK_GL_X11 -I../.. -I../../gdk -I../../gdk -DG_DISABLE_CAST_CHECKS -pthread
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/libpng14 -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED
-DGDK_PIXBUF_DISABLE_DEPRECATED -g -O2 -Wall -MT gdkglquery-x11.lo -MD -MP -MF ".deps/gdkglquery-x11.Tpo" \
-c -o gdkglquery-x11.lo `test -f 'gdkglquery-x11.c' || echo './'`gdkglquery-x11.c; \
then mv -f ".deps/gdkglquery-x11.Tpo" ".deps/gdkglquery-x11.Plo"; \
else rm -f ".deps/gdkglquery-x11.Tpo"; exit 1; \
fi
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DG_LOG_DOMAIN=\"GdkGLExt\" -DGDK_GL_COMPILATION -DINSIDE_GDK_GL_X11
-I../.. -I../../gdk -I../../gdk -DG_DISABLE_CAST_CHECKS -pthread -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2
-I/usr/include/libpng14 -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -g
-O2 -Wall -MT gdkglquery-x11.lo -MD -MP -MF .deps/gdkglquery-x11.Tpo -c gdkglquery-x11.c -fPIC -DPIC -o
.libs/gdkglquery-x11.o
In file included from /usr/include/gtk-2.0/gdk/gdkevents.h:37:0,
from /usr/include/gtk-2.0/gdk/gdkdisplay.h:32,
from /usr/include/gtk-2.0/gdk/gdkscreen.h:33,
from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:31,
from /usr/include/gtk-2.0/gdk/gdk.h:32,
from /usr/include/gtk-2.0/gdk/gdkprivate.h:30,
from /usr/include/gtk-2.0/gdk/gdkx.h:30,
from gdkglx.h:22,
from gdkglquery-x11.c:27:
/usr/include/gtk-2.0/gdk/gdkinput.h:133:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before
'gchar'
In file included from /usr/include/gtk-2.0/gdk/gdkscreen.h:33:0,
from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:31,
from /usr/include/gtk-2.0/gdk/gdk.h:32,
from /usr/include/gtk-2.0/gdk/gdkprivate.h:30,
from /usr/include/gtk-2.0/gdk/gdkx.h:30,
from gdkglx.h:22,
from gdkglquery-x11.c:27:
/usr/include/gtk-2.0/gdk/gdkdisplay.h:112:3: error: expected specifier-qualifier-list before 'G_CONST_RETURN'
/usr/include/gtk-2.0/gdk/gdkdisplay.h:144:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before
'gchar'
In file included from /usr/include/gtk-2.0/gdk/gdkprivate.h:30:0,
from /usr/include/gtk-2.0/gdk/gdkx.h:30,
from gdkglx.h:22,
from gdkglquery-x11.c:27:
/usr/include/gtk-2.0/gdk/gdk.h:83:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'char'
/usr/include/gtk-2.0/gdk/gdk.h:97:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gchar'
In file included from gdkglx.h:22:0,
from gdkglquery-x11.c:27:
/usr/include/gtk-2.0/gdk/gdkx.h:151:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gchar'
/usr/include/gtk-2.0/gdk/gdkx.h:187:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gchar'
/usr/include/gtk-2.0/gdk/gdkx.h:193:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gchar'
gdkglquery-x11.c: In function 'gdk_gl_get_proc_address':
gdkglquery-x11.c:408:11: warning: pointer targets in passing argument 1 of 'glx_get_proc_address' differ in
signedness
gdkglquery-x11.c:408:11: note: expected 'const GLubyte *' but argument is of type 'const char *'
make[4]: *** [gdkglquery-x11.lo] Error 1
make[4]: Leaving directory `/home/yugiohjcj/documents/downloads/software/gtkglext-1.0.6/gdk/x11'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/yugiohjcj/documents/downloads/software/gtkglext-1.0.6/gdk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/yugiohjcj/documents/downloads/software/gtkglext-1.0.6/gdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/yugiohjcj/documents/downloads/software/gtkglext-1.0.6'
make: *** [all] Error 2
The first error is on the /usr/include/gtk-2.0/gdk/gdkinput.h file, at the 133 line, if I refer to this:
/usr/include/gtk-2.0/gdk/gdkinput.h:133:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before
'gchar'
What I can read at the 133 line of the /usr/include/gtk-2.0/gdk/gdkinput.h file is:
G_CONST_RETURN gchar *gdk_device_get_name (GdkDevice *device);
Probably there is a type it doesn't recognize here (maybe G_CONST_RETURN or gchar).
I don't know exactly.
My gtk-2.0 version is: gtk+2-2.24.4.
But maybe I have conflicts because I use all these gtk versions on my system:
- gtk+-1.2.10
- gtk+2-2.24.4
- gtk+3-3.4.4
But I think there is no conflict because the headers are correctly separated:
- /usr/include/gtk-1.2
- /usr/include/gtk-2.0
- /usr/include/gtk-3.0
The same for the libraries:
- /usr/lib/libgtk-1.2.so.0.9.1
- /usr/lib/libgtk-x11-2.0.so.0.2400.4
- /usr/lib/libgtk-3.so.0.400.4
Do you see why I got this error at compile time ?
Thank you.
Regards.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]