← Back to team overview

sikuli-driver team mailing list archive

[Question #189403]: Opencv installation error

 

New question #189403 on Sikuli:
https://answers.launchpad.net/sikuli/+question/189403

Hi,

I'm sorry that I'm posting  question related to opencv installation in this forum.
I thought I could get some hint on this since opencv is a dependent package for Sikuli.

My aim is to work with sikuli, but I got suck with opencv installation on my linux machine.
I'm trying to compile opencv-2.1.0 on my Centos 5.4 (64 bit) machine. Below is the error I'm getting 

==============================================================
In file included from /usr/include/glib-2.0/glib.h:52,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkcolor.h:4,
                 from /usr/include/gtk-2.0/gdk/gdk.h:30,
                 from /usr/include/gtk-2.0/gtk/gtk.h:31,
                 from /home/Suni/tools/Sikuli-Tool/packages/OpenCV-2.1.0/src/highgui/window_gtk.cpp:48:
/usr/include/glib-2.0/glib/gmessages.h:109: error: expected initializer before "G_GNUC_INTERNAL"
In file included from /usr/include/glib-2.0/gobject/gboxed.h:26,
                 from /usr/include/glib-2.0/glib-object.h:25,
                 from /usr/include/pango-1.0/pango/pango-types.h:26,
                 from /usr/include/pango-1.0/pango/pango-font.h:26,
                 from /usr/include/pango-1.0/pango/pango-attributes.h:25,
                 from /usr/include/pango-1.0/pango/pango.h:25,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:33,
                 from /usr/include/gtk-2.0/gdk/gdkcolor.h:4,
                 from /usr/include/gtk-2.0/gdk/gdk.h:30,
                 from /usr/include/gtk-2.0/gtk/gtk.h:31,
                 from /home/Sunil/tools/Sikuli-Tool/packages/OpenCV-2.1.0/src/highgui/window_gtk.cpp:48:
/usr/include/glib-2.0/gobject/gtype.h:431: error: expected initializer before "G_GNUC_INTERNAL"
/usr/include/glib-2.0/gobject/gtype.h:432: error: expected initializer before "G_GNUC_INTERNAL"
/usr/include/glib-2.0/gobject/gtype.h:433: error: expected initializer before "G_GNUC_INTERNAL"
/usr/include/glib-2.0/gobject/gtype.h:434: error: expected initializer before "G_GNUC_INTERNAL"
/usr/include/glib-2.0/gobject/gtype.h:435: error: expected initializer before "G_GNUC_INTERNAL"
/usr/include/glib-2.0/gobject/gtype.h:436: error: expected initializer before "G_GNUC_INTERNAL"
/usr/include/glib-2.0/gobject/gtype.h:437: error: expected initializer before "G_GNUC_INTERNAL"
/usr/include/glib-2.0/gobject/gtype.h:438: error: expected initializer before "G_GNUC_INTERNAL"
/usr/include/glib-2.0/gobject/gtype.h:439: error: expected initializer before "G_GNUC_INTERNAL"
make[2]: *** [src/highgui/CMakeFiles/highgui.dir/window_gtk.o] Error 1
make[1]: *** [src/highgui/CMakeFiles/highgui.dir/all] Error 2
make: *** [all] Error 2

===============================


Thanks,
Sunil

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.