OpenCV 3.2 lab

It’s a long-awaited update to OpenCV 3.x release series, with tons of improvements and bug fixes. I wonder how is JTX1’s support

I have compiled Opencv 3.2 and it’s contrib modules with python3.5 on tx1. It works well.

I tried to compile opencv 3.2 with openvx on tx1. but openvx cannot be detected by cmake for opencv.

Can u share your compiling configs?

It depend on your requirement. If you need cuda, java, of course you need to install them first.

  1. For opengl, you need to relink the libGL.so.
ubuntu@tegra-ubuntu:/media/ubuntu/91df5a31-05fd-4885-b29b-d7e625107ac5/opencv/opencv$ ls /usr/lib/aarch64-linux-gnu/libGL.so -l
lrwxrwxrwx 1 root root 43 Dec 30 04:55 /usr/lib/aarch64-linux-gnu/libGL.so -> /usr/lib/aarch64-linux-gnu/tegra/libGL.so.1
  1. modify below file to using python3.
diff --git a/cmake/OpenCVDetectPython.cmake b/cmake/OpenCVDetectPython.cmake
index 6dec76f..2b17e72 100644
--- a/cmake/OpenCVDetectPython.cmake
+++ b/cmake/OpenCVDetectPython.cmake
@@ -241,9 +241,6 @@ find_python(3.4 "${MIN_VER_PYTHON3}" PYTHON3_LIBRARY PYTHON3_INCLUDE_DIR

 if(PYTHON_DEFAULT_EXECUTABLE)
     set(PYTHON_DEFAULT_AVAILABLE "TRUE")
-elseif(PYTHON2INTERP_FOUND) # Use Python 2 as default Python interpreter
-    set(PYTHON_DEFAULT_AVAILABLE "TRUE")
-    set(PYTHON_DEFAULT_EXECUTABLE "${PYTHON2_EXECUTABLE}")
 elseif(PYTHON3INTERP_FOUND) # Use Python 3 as fallback Python interpreter (if there is no Python 2)
     set(PYTHON_DEFAULT_AVAILABLE "TRUE")
     set(PYTHON_DEFAULT_EXECUTABLE "${PYTHON3_EXECUTABLE}")
  1. other tiny issue.

Hi Allen_Z,

Configuring Opencv-3.2.0, OpenGL is found gone
cmake -DCMAKE_BUILD_TYPE=DEBUG -DBUILD_EXAMPLES=ON -DBUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=/usr/local/opencv-3.2.0 -DWITH_CUDA=ON -DCUDA_ARCH_BIN=“5.3” -DCUDA_ARCH_PTX="" -DCUDA_FAST_MATH=ON -DWITH_OPENGL=ON -DWITH_OPENNI2=ON -DWITH_OPENVX=ON -DENABLE_NEON=ON -DWITH_LIBV4L=ON -DOPENCV_EXTRA_MODULES=…/…/opencv_contrib-3.2.0/modules …

– GUI:
– QT: NO
– GTK+ 2.x: YES (ver 2.24.30)
– GThread : YES (ver 2.48.1)
– GtkGlExt: NO
– OpenGL support: NO
– VTK support: NO

However, here exists the libGL:
ubuntu@tegra-ubuntu:~/opencv-3.2.0/build$ ll /usr/lib/aarch64-linux-gnu/libGLso
lrwxrwxrwx 1 root root 19 Nov 10 2015 /usr/lib/aarch64-linux-gnu/libGLEWmx.so.1.13 -> libGLEWmx.so.1.13.0
-rw-r–r-- 1 root root 481248 Nov 10 2015 /usr/lib/aarch64-linux-gnu/libGLEWmx.so.1.13.0
lrwxrwxrwx 1 root root 17 Nov 10 2015 /usr/lib/aarch64-linux-gnu/libGLEW.so -> libGLEW.so.1.13.0
lrwxrwxrwx 1 root root 17 Nov 10 2015 /usr/lib/aarch64-linux-gnu/libGLEW.so.1.13 -> libGLEW.so.1.13.0
-rw-r–r-- 1 root root 554984 Nov 10 2015 /usr/lib/aarch64-linux-gnu/libGLEW.so.1.13.0
lrwxrwxrwx 1 root root 43 Dec 30 10:02 /usr/lib/aarch64-linux-gnu/libGL.so -> /usr/lib/aarch64-linux-gnu/tegra/libGL.so.1*
lrwxrwxrwx 1 root root 15 Oct 24 2015 /usr/lib/aarch64-linux-gnu/libGLU.so -> libGLU.so.1.3.1
lrwxrwxrwx 1 root root 15 Oct 24 2015 /usr/lib/aarch64-linux-gnu/libGLU.so.1 -> libGLU.so.1.3.1
-rw-r–r-- 1 root root 400040 Oct 24 2015 /usr/lib/aarch64-linux-gnu/libGLU.so.1.3.1

ubuntu@tegra-ubuntu:~/opencv-3.2.0/build$ ldconfig -p | grep libGL*
libGeoIP.so.1 (libc6,AArch64) => /usr/lib/aarch64-linux-gnu/libGeoIP.so.1
libGLdispatch.so.0 (libc6,AArch64) => /usr/lib/aarch64-linux-gnu/tegra/libGLdispatch.so.0
libGLU.so.1 (libc6,AArch64) => /usr/lib/aarch64-linux-gnu/libGLU.so.1
libGLU.so (libc6,AArch64) => /usr/lib/aarch64-linux-gnu/libGLU.so
libGLEWmx.so.1.13 (libc6,AArch64) => /usr/lib/aarch64-linux-gnu/libGLEWmx.so.1.13
libGLEW.so.1.13 (libc6,AArch64) => /usr/lib/aarch64-linux-gnu/libGLEW.so.1.13
libGLEW.so (libc6,AArch64) => /usr/lib/aarch64-linux-gnu/libGLEW.so
libGLESv2.so.2 (libc6,AArch64) => /usr/lib/aarch64-linux-gnu/tegra-egl/libGLESv2.so.2
libGLESv1_CM.so.1 (libc6,AArch64) => /usr/lib/aarch64-linux-gnu/tegra-egl/libGLESv1_CM.so.1
libGL.so.1 (libc6,AArch64) => /usr/lib/aarch64-linux-gnu/tegra/libGL.so.1
libGL.so (libc6,AArch64) => /usr/lib/aarch64-linux-gnu/libGL.so
libGL.so (libc6,AArch64) => /usr/lib/aarch64-linux-gnu/tegra/libGL.so

How does it support OpenGL?

have a solution myself

sudo apt-get install libgtkglext1 libgtkglext1-dev
sudo apt-get install qtbase5-dev

afterwards output lists:
– GUI:
– QT: NO
– GTK+ 2.x: YES (ver 2.24.30)
– GThread : YES (ver 2.48.1)
– GtkGlExt: YES (ver 1.2.0)
– OpenGL support: YES (/usr/lib/aarch64-linux-gnu/libGLU.so /usr/lib/aarch64-linux-gnu/libGL.so)
– VTK support: NO

A non-full JetPack installation is owned. I cannot find OpenVX source and its installpack. How do I install OpenVX standalone.

building 3rdparty/carotene failed. Using -DENABLE_NEON=OFF, build ok.