Guest User

Untitled

a guest
Feb 23rd, 2018
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.39 KB | None | 0 0
  1. #include <GL/glx.h>
  2.  
  3. #include <GLES3/gl3.h>
  4.  
  5. cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=/usr/local -DWITH_QT=5 -DWITH_OPENGLES=ON -DWITH_V4L=ON -DWITH_TBB=ON -DBUILD_TBB=ON -DENABLE_VFPV3=ON -DENABLE_NEON=ON ..
  6.  
  7. make -j8
  8.  
  9. [ 62%] Built target opencv_videoio
  10. [ 63%] Built target opencv_superres
  11. [ 63%] Building CXX object
  12.  
  13. modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_QT.cpp.o
  14. cc1plus: warning: /home/odroid/temporary_cmake_binary_dir/opencv-3.4.0/release/modules/highgui/precomp.hpp.gch/opencv_highgui_RELEASE.gch: not used because `TBB_USE_GCC_BUILTINS' is defined [-Winvalid-pch]
  15. In file included from /usr/include/GL/gl.h:2055:0,
  16. from /usr/include/GL/glx.h:32,
  17. from /home/odroid/temporary_cmake_binary_dir/opencv-3.4.0/modules/highgui/src/window_QT.cpp:59:
  18. /usr/include/GL/glext.h:466:19: error: conflicting declaration ‘typedef ptrdiff_t GLsizeiptr’
  19. typedef ptrdiff_t GLsizeiptr;
  20. ^
  21. In file included from /usr/include/arm-linux-gnueabihf/qt5/QtGui/qopengl.h:95:0,
  22. from /usr/include/arm-linux-gnueabihf/qt5/QtGui/qopenglcontext.h:54,
  23. from /usr/include/arm-linux-gnueabihf/qt5/QtGui/QtGui:32,
  24. from /usr/include/arm-linux-gnueabihf/qt5/QtOpenGL/QtOpenGLDepends:4,
  25. from /usr/include/arm-linux-gnueabihf/qt5/QtOpenGL/QtOpenGL:3,
  26. from /home/odroid/temporary_cmake_binary_dir/opencv-3.4.0/modules/highgui/src/window_QT.h:50,
  27. from /home/odroid/temporary_cmake_binary_dir/opencv-3.4.0/modules/highgui/src/window_QT.cpp:47:
  28. /usr/include/GLES3/gl31.h:77:25: note: previous declaration as ‘typedef khronos_ssize_t GLsizeiptr’
  29. typedef khronos_ssize_t GLsizeiptr;
  30. ^
  31. In file included from /usr/include/GL/gl.h:2055:0,
  32. from /usr/include/GL/glx.h:32,
  33. from /home/odroid/temporary_cmake_binary_dir/opencv-3.4.0/modules/highgui/src/window_QT.cpp:59:
  34. /usr/include/GL/glext.h:467:19: error: conflicting declaration ‘typedef ptrdiff_t GLintptr’
  35. typedef ptrdiff_t GLintptr;
  36. ^
  37. In file included from /usr/include/arm-linux-gnueabihf/qt5/QtGui/qopengl.h:95:0,
  38. from /usr/include/arm-linux-gnueabihf/qt5/QtGui/qopenglcontext.h:54,
  39. from /usr/include/arm-linux-gnueabihf/qt5/QtGui/QtGui:32,
  40. from /usr/include/arm-linux-gnueabihf/qt5/QtOpenGL/QtOpenGLDepends:4,
  41. from /usr/include/arm-linux-gnueabihf/qt5/QtOpenGL/QtOpenGL:3,
  42. from /home/odroid/temporary_cmake_binary_dir/opencv-3.4.0/modules/highgui/src/window_QT.h:50,
  43. from /home/odroid/temporary_cmake_binary_dir/opencv-3.4.0/modules/highgui/src/window_QT.cpp:47:
  44. /usr/include/GLES3/gl31.h:78:26: note: previous declaration as ‘typedef khronos_intptr_t GLintptr’
  45. typedef khronos_intptr_t GLintptr;
  46. ^
  47. [ 63%] Built target gen_opencv_python_source
  48. modules/highgui/CMakeFiles/opencv_highgui.dir/build.make:129: recipe for target 'modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_QT.cpp.o' failed
  49. make[2]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_QT.cpp.o] Error 1
  50. CMakeFiles/Makefile2:5307: recipe for target 'modules/highgui/CMakeFiles/opencv_highgui.dir/all' failed
  51. make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
  52. Makefile:160: recipe for target 'all' failed
  53. make: *** [all] Error 2
Add Comment
Please, Sign In to add comment