jetsonhacks / buildOpenCVTX2

Build and install OpenCV for the NVIDIA Jetson TX2
MIT License
276 stars 153 forks source link

Build Error - OpenGL Support #14

Open JohannesBetz opened 6 years ago

JohannesBetz commented 6 years ago

Hey everyone,

i got an Issue while building the OpenCV based on your description. This could be an issue with the new Jetpack 3.2 and Cuda 9.0 because some OpenGL support in Cuda is broke.

If someone has the same problem, try the following which helped me:

Edit the file: "/usr/local/cuda-8.0/include/cuda_gl_interop.h"

Find the code: #else /* __APPLE__ */

It should be around line 7.. then replace all the If Def's with the following to force include of GL/gl.h

#else /* __APPLE__ */

 #include <GL/gl.h>

 #endif /* __APPLE__ */