mirror of
https://github.com/opencv/opencv.git
synced 2024-11-28 13:10:12 +08:00
Merge pull request #15658 from tolysz:patch-1
* Cuda + OpenGL on ARM There might be multiple ways of getting OpenCV compile on Tegra (NVIDIA Jetson) platform, but mainly they modify CUDA(8,9,10...) source code, this one fixes it for all installations. ( https://devtalk.nvidia.com/default/topic/1007290/jetson-tx2/building-opencv-with-opengl-support-/post/5141945/#5141945 et al.). This way is exactly the same as the one proposed but the code change happens in OpenCV. * Updated, The link provided mentions: cuda8 + 9, I have cuda 10 + 10.1 (and can confirm it is still defined this way). NVIDIA is probably using some other "secret" backend with Jetson.
This commit is contained in:
parent
2ff1fb60ad
commit
3fd36c1be1
@ -45,6 +45,13 @@
|
||||
#ifdef HAVE_OPENGL
|
||||
# include "gl_core_3_1.hpp"
|
||||
# ifdef HAVE_CUDA
|
||||
# if (defined(__arm__) || defined(__aarch64__)) \
|
||||
&& !defined(OPENCV_SKIP_CUDA_OPENGL_ARM_WORKAROUND)
|
||||
# include <GL/gl.h>
|
||||
# ifndef GL_VERSION
|
||||
# define GL_VERSION 0x1F02
|
||||
# endif
|
||||
# endif
|
||||
# include <cuda_gl_interop.h>
|
||||
# endif
|
||||
#else // HAVE_OPENGL
|
||||
|
Loading…
Reference in New Issue
Block a user