error in opencv compilation
I get the following errors in ODROID XU3. Help please.
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 khronosssizet GLsizeiptr’
typedef khronosssizet 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 khronosintptrt GLintptr’
typedef khronosintptrt GLintptr; ^ make[2]: *** [modules/highgui/CMakeFiles/opencvhighgui.dir/src/windowQT.cpp.o] Error 1 make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2 make: *** [all] Error 2
Asked by saamishon on 2015-01-07 10:48:55 UTC
Comments