Cannot install OpenCV with GStreamer support on JetPack 6.2 with OpenCV 4.11

Hello,

I’m currently working with a Jetson Orin NX running JetPack 6.2 and I’m trying to install OpenCV 4.11 with GStreamer support. I’ve followed the instructions to compile OpenCV from source, and the compilation completes without any errors. However, when I check the build information using cv2.getBuildInformation(), it shows that GStreamer is not enabled (GStreamer: NO), even though I have explicitly set the WITH_GSTREAMER=ON option during the configuration with CMake.

Here are the steps I’ve followed so far:

Installed the necessary GStreamer libraries:

sudo apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev

Cloned OpenCV from the official GitHub repository:

git clone GitHub - opencv/opencv: Open Source Computer Vision Library
cd opencv
git checkout 4.11 # OpenCV 4.11 branch

Created a build directory and ran CMake:

mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=RELEASE
-D CMAKE_INSTALL_PREFIX=/usr/local
-D WITH_GSTREAMER=ON
-D BUILD_opencv_apps=ON
-D OPENCV_EXTRA_MODULES_PATH=…/…/opencv_contrib/modules

Compiled OpenCV:

make -j$(nproc)

Installed OpenCV:

sudo make install
sudo ldconfig

Verified the build information in Python:

import cv2
print(cv2.getBuildInformation())

However, the output still shows:

GStreamer: NO

I have checked the dependencies and everything seems to be in place. I also tried installing OpenCV from NVIDIA’s repositories, but I still get the same result.

Has anyone else encountered this issue or does anyone have any suggestions on how to get GStreamer support working with OpenCV 4.10 on JetPack 6.2?

I would appreciate any help or advice!

Thank you!

Hi,
The OpenCV package in SDK components have gstreamer enabled. You may install the package and give it a try.

May also try this script:
Jetson AGX Orin FAQ

OpenCV 4.1.1 is old and uncertain whether it works with Jetpack 6.2. Would suggest use later version.

Hi,

Thank you for your reply!

I’ve also tried installing OpenCV through the script provided here: install_opencv4.10.0_Jetpack6.1.sh, but I’m still encountering the same issue where GStreamer support is not enabled in the build.

I understand that the OpenCV package in the SDK components has GStreamer support enabled, but I was hoping to avoid reinstalling the SDK, as I would lose all the changes I’ve made so far. Is there any other possible solution before considering a full reinstall of the SDK?

Thank you again!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.