Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

opencv compilation error

In file included from /usr/include/GL/gl.h:2059:0,

             from /usr/include/GL/glx.h:32,

             from /home/odroid/opencv-3.0/modules/highgui/src/window_QT.cpp:59:

/usr/include/GL/glext.h:468:19: error: conflicting declaration ‘typedef std::ptrdiff_t GLsizeiptr’

typedef ptrdiff_t GLsizeiptr;

               ^

In file included from /usr/include/qt4/QtOpenGL/qgl.h:79:0,

             from /usr/include/qt4/QtOpenGL/QtOpenGL:5,

             from /home/odroid/opencv-3.0/modules/highgui/src/window_QT.h:46,

             from /home/odroid/opencv-3.0/modules/highgui/src/window_QT.cpp:47:

/usr/include/GLES2/gl2.h:69:25: error: ‘GLsizeiptr’ has a previous declaration as ‘typedef khronos_ssize_t GLsizeiptr’

typedef khronos_ssize_t GLsizeiptr;

                     ^

In file included from /usr/include/GL/gl.h:2059:0,

             from /usr/include/GL/glx.h:32,

             from /home/odroid/opencv-3.0/modules/highgui/src/window_QT.cpp:59:

/usr/include/GL/glext.h:469:19: error: conflicting declaration ‘typedef std::ptrdiff_t GLintptr’

typedef ptrdiff_t GLintptr;

               ^

In file included from /usr/include/qt4/QtOpenGL/qgl.h:79:0,

             from /usr/include/qt4/QtOpenGL/QtOpenGL:5,

             from /home/odroid/opencv-3.0/modules/highgui/src/window_QT.h:46,

             from /home/odroid/opencv-3.0/modules/highgui/src/window_QT.cpp:47:

/usr/include/GLES2/gl2.h:70:26: error: ‘GLintptr’ has a previous declaration as ‘typedef khronos_intptr_t GLintptr’

typedef khronos_intptr_t GLintptr;

                      ^

make[2]: * [modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_QT.cpp.o] Error 1 make[1]: [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2 make: ** [all] Error 2

opencv compilation error

In file included from /usr/include/GL/gl.h:2059:0,

/usr/include/GL/gl.h:2059:0,
                 from /usr/include/GL/glx.h:32,
               from /home/odroid/opencv-3.0/modules/highgui/src/window_QT.cpp:59:

/usr/include/GL/glext.h:468:19: error: conflicting declaration ‘typedef std::ptrdiff_t GLsizeiptr’

GLsizeiptr’ typedef ptrdiff_t GLsizeiptr;

GLsizeiptr;
                   ^

In file included from /usr/include/qt4/QtOpenGL/qgl.h:79:0,

/usr/include/qt4/QtOpenGL/qgl.h:79:0,
                 from /usr/include/qt4/QtOpenGL/QtOpenGL:5,
               from /home/odroid/opencv-3.0/modules/highgui/src/window_QT.h:46,
               from /home/odroid/opencv-3.0/modules/highgui/src/window_QT.cpp:47:

/usr/include/GLES2/gl2.h:69:25: error: ‘GLsizeiptr’ has a previous declaration as ‘typedef khronos_ssize_t GLsizeiptr’

GLsizeiptr’ typedef khronos_ssize_t GLsizeiptr;

GLsizeiptr;
                         ^

In file included from /usr/include/GL/gl.h:2059:0,

/usr/include/GL/gl.h:2059:0,
                 from /usr/include/GL/glx.h:32,
               from /home/odroid/opencv-3.0/modules/highgui/src/window_QT.cpp:59:

/usr/include/GL/glext.h:469:19: error: conflicting declaration ‘typedef std::ptrdiff_t GLintptr’

GLintptr’ typedef ptrdiff_t GLintptr;

GLintptr;
                   ^

In file included from /usr/include/qt4/QtOpenGL/qgl.h:79:0,

/usr/include/qt4/QtOpenGL/qgl.h:79:0,
                 from /usr/include/qt4/QtOpenGL/QtOpenGL:5,
               from /home/odroid/opencv-3.0/modules/highgui/src/window_QT.h:46,
               from /home/odroid/opencv-3.0/modules/highgui/src/window_QT.cpp:47:

/usr/include/GLES2/gl2.h:70:26: error: ‘GLintptr’ has a previous declaration as ‘typedef khronos_intptr_t GLintptr’

GLintptr’ typedef khronos_intptr_t GLintptr;

GLintptr;
                          ^

make[2]: * *** [modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_QT.cpp.o] Error 1 make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2 make: ** *** [all] Error 2

2