ROS Kinetic Opencv3 build issues

asked 2018-01-18 18:28:42 -0500

gskebe2 gravatar image

Hi, I'm having issues installing opencv3 package on my Debian(Stretch) armhf system. I spent more than a week trying various things, but have been unable to get it to build. I wanted to see if anyone has experienced the same errors on their system and were able to find a solution? All ROS dependencies were successfully install prior.

I'm getting the following errors:

[ 67%] Automatic moc for target opencv_cvv [ 67%] Built target opencv_cvv_automoc [ 67%] Building CXX object modules/cvv/CMakeFiles/opencv_cvv.dir/src/view/dual_filter_view.cpp.o In file included from /usr/include/arm-linux-gnueabihf/qt5/QtGui/qopenglextrafunctions.h:47:0, from /usr/include/arm-linux-gnueabihf/qt5/QtGui/QtGui:55, from /home/linaro/ros/src/opencv3/opencv_contrib/cvv/src/view/dual_filter_view.cpp:15: /usr/include/arm-linux-gnueabihf/qt5/QtGui/qopenglfunctions.h: In member function ‘void QOpenGLFunctions::glBindTexture(GLenum, GLuint)’: /usr/include/arm-linux-gnueabihf/qt5/QtGui/qopenglfunctions.h:595:5: error: ‘::glBindTexture’ has not been declared ::glBindTexture(target, texture); ^~ /usr/include/arm-linux-gnueabihf/qt5/QtGui/qopenglfunctions.h: In member function ‘void QOpenGLFunctions::glBlendFunc(GLenum, GLenum)’: /usr/include/arm-linux-gnueabihf/qt5/QtGui/qopenglfunctions.h:606:5: error: ‘::glBlendFunc’ has not been declared ::glBlendFunc(sfactor, dfactor); ^~ /usr/include/arm-linux-gnueabihf/qt5/QtGui/qopenglfunctions.h: In member function ‘void QOpenGLFunctions::glClear(GLbitfield)’: /usr/include/arm-linux-gnueabihf/qt5/QtGui/qopenglfunctions.h:617:5: error: ‘::glClear’ has not been declared ::glClear(mask); ^~ /usr/include/arm-linux-gnueabihf/qt5/QtGui/qopenglfunctions.h: In member function ‘void QOpenGLFunctions::glClearColor(GLclampf, GLclampf, GLclampf, GLclampf)’: /usr/include/arm-linux-gnueabihf/qt5/QtGui/qopenglfunctions.h:628:5: error: ‘::glClearColor’ has not been declared ::glClearColor(red, green, blue, alpha); ^~ /usr/include/arm-linux-gnueabihf/qt5/QtGui/qopenglfunctions.h: In member function ‘void QOpenGLFunctions::glClearStencil(GLint)’: /usr/include/arm-linux-gnueabihf/qt5/QtGui/qopenglfunctions.h:639:5: error: ‘::glClearStencil’ has not been declared ::glClearStencil(s); ^~

..........keeps going for many other functions

/usr/include/arm-linux-gnueabihf/qt5/QtGui/qopenglfunctions.h: In member function ‘void QOpenGLFunctions::glVertexAttribPointer(GLuint, GLint, GLenum, GLboolean, GLsizei, const void)’: /usr/include/arm-linux-gnueabihf/qt5/QtGui/qopenglfunctions.h:2163:5: error: ‘::glVertexAttribPointer’ has not been declared ::glVertexAttribPointer(indx, size, type, normalized, stride, ptr); ^~ modules/cvv/CMakeFiles/opencv_cvv.dir/build.make:1598: recipe for target 'modules/cvv/CMakeFiles/opencv_cvv.dir/src/view/dual_filter_view.cpp.o' failed make[2]: [modules/cvv/CMakeFiles/opencv_cvv.dir/src/view/dual_filter_view.cpp.o] Error 1 CMakeFiles/Makefile2:4176: recipe for target 'modules/cvv/CMakeFiles/opencv_cvv.dir/all' failed make[1]: [modules/cvv/CMakeFiles/opencv_cvv.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: ** [all] Error 2 <== Failed to process package 'opencv3': Command '['/opt/ros/kinetic/env.sh', 'make', '-j1']' returned non-zero exit status 2

Appreciate any help in advance,

G

edit retag flag offensive close merge delete