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!