# Building opencv+contrib with gstreamer support

**URL:** <https://forum.opencv.org/t/building-opencv-contrib-with-gstreamer-support/5888>\
**Category:** Python\
**Tags:** gstreamer, build, cmake, contrib\
**Created:** [October 27, 2021, 3:30pm UTC](https://forum.opencv.org/t/building-opencv-contrib-with-gstreamer-support/5888 "2021-10-27T15:30:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ELSH](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/elsh/32/4259_2.png) [@ELSH](https://forum.opencv.org/u/ELSH)\
**Post date:** [October 27, 2021, 3:30pm UTC](https://forum.opencv.org/t/building-opencv-contrib-with-gstreamer-support/5888/1 "2021-10-27T15:30:13Z")

</div>

i’ve been trying to build opencv +contrib modules with gstreamer support for a while now and i cant seem to be able to. I’ve finally managed to make the cmake file come out with no fatal errors and the paths seem correct, but when trying to launch a pi camera and putting it in cv2.VideoCapture im getting gstreamer erros.  
i can launch the camera just fine using the terminal but cant seem to be able to do it through opencv.  
my Cmake command:  
cmake  
-D CMAKE\_BUILD\_TYPE=RELEASE  
-D INSTALL\_PYTHON\_EXAMPLES=ON  
-D INSTALL\_C\_EXAMPLES=OFF  
-D PYTHON\_EXECUTABLE=(dollar sign here if i add it it breaks the font) (which python3)  
-D BUILD\_opencv\_python2=OFF  
-D CMAKE\_INSTALL\_PREFIX=(dollar sign here if i add it it breaks the font)(python3 -c ‘import sys; print(sys.prefix)’)  
-D PYTHON3\_EXECUTABLE=$ (which python3)  
-D PYTHON3\_INCLUDE\_DIR=(dollar sign here if i add it it breaks the font) (python3 -c ‘from distutils.sysconfig import get\_python\_inc; print(get\_python\_inc())’)  
-D PYTHON3\_PACKAGES\_PATH=(dollar sign here if i add it it breaks the font) (python3 -c ‘from distutils.sysconfig import get\_python\_lib; print(get\_python\_lib())’)  
-D WITH\_GSTREAMER=ON -D BUILD\_EXAMPLES=ON \   
-D OPENCV\_EXTRA\_MODULES\_PATH=home/ktbm/Downloads/opencv\_contrib-4.5.3/modules   
-D WITH\_VTK=OFF \

-D BUILD\_opencv\_viz=OFF ..

my cmake output:  
– The CXX compiler identification is GNU 7.5.0  
– The C compiler identification is GNU 7.5.0  
– Check for working CXX compiler: /usr/bin/c++  
– Check for working CXX compiler: /usr/bin/c++ – works  
– Detecting CXX compiler ABI info  
– Detecting CXX compiler ABI info - done  
– Detecting CXX compile features  
– Detecting CXX compile features - done  
– Check for working C compiler: /usr/bin/cc  
– Check for working C compiler: /usr/bin/cc – works  
– Detecting C compiler ABI info  
– Detecting C compiler ABI info - done  
– Detecting C compile features  
– Detecting C compile features - done  
– Detected processor: aarch64  
– Found PythonInterp: /home/ktbm/miniconda3/envs/THOR\_test/bin/python3 (found suitable version “3.9.7”, minimum required is “2.7”)  
CMake Warning at cmake/OpenCVDetectPython.cmake:81 (message):  
CMake’s ‘find\_host\_package(PythonInterp 2.7)’ found wrong Python version:

PYTHON\_EXECUTABLE=/home/ktbm/miniconda3/envs/THOR\_test/bin/python3

PYTHON\_VERSION\_STRING=3.9.7

Consider providing the ‘PYTHON2\_EXECUTABLE’ variable via CMake command line  
or environment variables

Call Stack (most recent call first):  
cmake/OpenCVDetectPython.cmake:271 (find\_python)  
CMakeLists.txt:620 (include)

– Consider using CMake 3.12+ for better Python support  
– Found PythonInterp: /home/ktbm/miniconda3/envs/THOR\_test/bin/python3 (found suitable version “3.9.7”, minimum required is “3.2”)  
– Found PythonLibs: /home/ktbm/miniconda3/envs/THOR\_test/lib/libpython3.9.so (found suitable exact version “3.9.7”)  
– Looking for ccache - not found  
– Performing Test HAVE\_CXX\_FSIGNED\_CHAR  
– Performing Test HAVE\_CXX\_FSIGNED\_CHAR - Success  
– Performing Test HAVE\_C\_FSIGNED\_CHAR  
– Performing Test HAVE\_C\_FSIGNED\_CHAR - Success  
– Performing Test HAVE\_CXX\_W  
– Performing Test HAVE\_CXX\_W - Success  
– Performing Test HAVE\_C\_W  
– Performing Test HAVE\_C\_W - Success  
– Performing Test HAVE\_CXX\_WALL  
– Performing Test HAVE\_CXX\_WALL - Success  
– Performing Test HAVE\_C\_WALL  
– Performing Test HAVE\_C\_WALL - Success  
– Performing Test HAVE\_CXX\_WERROR\_RETURN\_TYPE  
– Performing Test HAVE\_CXX\_WERROR\_RETURN\_TYPE - Success  
– Performing Test HAVE\_C\_WERROR\_RETURN\_TYPE  
– Performing Test HAVE\_C\_WERROR\_RETURN\_TYPE - Success  
– Performing Test HAVE\_CXX\_WERROR\_NON\_VIRTUAL\_DTOR  
– Performing Test HAVE\_CXX\_WERROR\_NON\_VIRTUAL\_DTOR - Success  
– Performing Test HAVE\_C\_WERROR\_NON\_VIRTUAL\_DTOR  
– Performing Test HAVE\_C\_WERROR\_NON\_VIRTUAL\_DTOR - Failed  
– Performing Test HAVE\_CXX\_WERROR\_ADDRESS  
– Performing Test HAVE\_CXX\_WERROR\_ADDRESS - Success  
– Performing Test HAVE\_C\_WERROR\_ADDRESS  
– Performing Test HAVE\_C\_WERROR\_ADDRESS - Success  
– Performing Test HAVE\_CXX\_WERROR\_SEQUENCE\_POINT  
– Performing Test HAVE\_CXX\_WERROR\_SEQUENCE\_POINT - Success  
– Performing Test HAVE\_C\_WERROR\_SEQUENCE\_POINT  
– Performing Test HAVE\_C\_WERROR\_SEQUENCE\_POINT - Success  
– Performing Test HAVE\_CXX\_WFORMAT  
– Performing Test HAVE\_CXX\_WFORMAT - Success  
– Performing Test HAVE\_C\_WFORMAT  
– Performing Test HAVE\_C\_WFORMAT - Success  
– Performing Test HAVE\_CXX\_WERROR\_FORMAT\_SECURITY  
– Performing Test HAVE\_CXX\_WERROR\_FORMAT\_SECURITY - Success  
– Performing Test HAVE\_C\_WERROR\_FORMAT\_SECURITY  
– Performing Test HAVE\_C\_WERROR\_FORMAT\_SECURITY - Success  
– Performing Test HAVE\_CXX\_WMISSING\_DECLARATIONS  
– Performing Test HAVE\_CXX\_WMISSING\_DECLARATIONS - Success  
– Performing Test HAVE\_C\_WMISSING\_DECLARATIONS  
– Performing Test HAVE\_C\_WMISSING\_DECLARATIONS - Success  
– Performing Test HAVE\_CXX\_WMISSING\_PROTOTYPES  
– Performing Test HAVE\_CXX\_WMISSING\_PROTOTYPES - Failed  
– Performing Test HAVE\_C\_WMISSING\_PROTOTYPES  
– Performing Test HAVE\_C\_WMISSING\_PROTOTYPES - Success  
– Performing Test HAVE\_CXX\_WSTRICT\_PROTOTYPES  
– Performing Test HAVE\_CXX\_WSTRICT\_PROTOTYPES - Failed  
– Performing Test HAVE\_C\_WSTRICT\_PROTOTYPES  
– Performing Test HAVE\_C\_WSTRICT\_PROTOTYPES - Success  
– Performing Test HAVE\_CXX\_WUNDEF  
– Performing Test HAVE\_CXX\_WUNDEF - Success  
– Performing Test HAVE\_C\_WUNDEF  
– Performing Test HAVE\_C\_WUNDEF - Success  
– Performing Test HAVE\_CXX\_WINIT\_SELF  
– Performing Test HAVE\_CXX\_WINIT\_SELF - Success  
– Performing Test HAVE\_C\_WINIT\_SELF  
– Performing Test HAVE\_C\_WINIT\_SELF - Success  
– Performing Test HAVE\_CXX\_WPOINTER\_ARITH  
– Performing Test HAVE\_CXX\_WPOINTER\_ARITH - Success  
– Performing Test HAVE\_C\_WPOINTER\_ARITH  
– Performing Test HAVE\_C\_WPOINTER\_ARITH - Success  
– Performing Test HAVE\_CXX\_WSHADOW  
– Performing Test HAVE\_CXX\_WSHADOW - Success  
– Performing Test HAVE\_C\_WSHADOW  
– Performing Test HAVE\_C\_WSHADOW - Success  
– Performing Test HAVE\_CXX\_WSIGN\_PROMO  
– Performing Test HAVE\_CXX\_WSIGN\_PROMO - Success  
– Performing Test HAVE\_C\_WSIGN\_PROMO  
– Performing Test HAVE\_C\_WSIGN\_PROMO - Failed  
– Performing Test HAVE\_CXX\_WUNINITIALIZED  
– Performing Test HAVE\_CXX\_WUNINITIALIZED - Success  
– Performing Test HAVE\_C\_WUNINITIALIZED  
– Performing Test HAVE\_C\_WUNINITIALIZED - Success  
– Performing Test HAVE\_CXX\_WSUGGEST\_OVERRIDE  
– Performing Test HAVE\_CXX\_WSUGGEST\_OVERRIDE - Success  
– Performing Test HAVE\_C\_WSUGGEST\_OVERRIDE  
– Performing Test HAVE\_C\_WSUGGEST\_OVERRIDE - Failed  
– Performing Test HAVE\_CXX\_WNO\_DELETE\_NON\_VIRTUAL\_DTOR  
– Performing Test HAVE\_CXX\_WNO\_DELETE\_NON\_VIRTUAL\_DTOR - Success  
– Performing Test HAVE\_C\_WNO\_DELETE\_NON\_VIRTUAL\_DTOR  
– Performing Test HAVE\_C\_WNO\_DELETE\_NON\_VIRTUAL\_DTOR - Failed  
– Performing Test HAVE\_CXX\_WNO\_UNNAMED\_TYPE\_TEMPLATE\_ARGS  
– Performing Test HAVE\_CXX\_WNO\_UNNAMED\_TYPE\_TEMPLATE\_ARGS - Failed  
– Performing Test HAVE\_C\_WNO\_UNNAMED\_TYPE\_TEMPLATE\_ARGS  
– Performing Test HAVE\_C\_WNO\_UNNAMED\_TYPE\_TEMPLATE\_ARGS - Failed  
– Performing Test HAVE\_CXX\_WNO\_COMMENT  
– Performing Test HAVE\_CXX\_WNO\_COMMENT - Success  
– Performing Test HAVE\_C\_WNO\_COMMENT  
– Performing Test HAVE\_C\_WNO\_COMMENT - Success  
– Performing Test HAVE\_CXX\_WIMPLICIT\_FALLTHROUGH\_3  
– Performing Test HAVE\_CXX\_WIMPLICIT\_FALLTHROUGH\_3 - Success  
– Performing Test HAVE\_C\_WIMPLICIT\_FALLTHROUGH\_3  
– Performing Test HAVE\_C\_WIMPLICIT\_FALLTHROUGH\_3 - Success  
– Performing Test HAVE\_CXX\_WNO\_STRICT\_OVERFLOW  
– Performing Test HAVE\_CXX\_WNO\_STRICT\_OVERFLOW - Success  
– Performing Test HAVE\_C\_WNO\_STRICT\_OVERFLOW  
– Performing Test HAVE\_C\_WNO\_STRICT\_OVERFLOW - Success  
– Performing Test HAVE\_CXX\_FDIAGNOSTICS\_SHOW\_OPTION  
– Performing Test HAVE\_CXX\_FDIAGNOSTICS\_SHOW\_OPTION - Success  
– Performing Test HAVE\_C\_FDIAGNOSTICS\_SHOW\_OPTION  
– Performing Test HAVE\_C\_FDIAGNOSTICS\_SHOW\_OPTION - Success  
– Performing Test HAVE\_CXX\_PTHREAD  
– Performing Test HAVE\_CXX\_PTHREAD - Success  
– Performing Test HAVE\_C\_PTHREAD  
– Performing Test HAVE\_C\_PTHREAD - Success  
– Performing Test HAVE\_CXX\_FOMIT\_FRAME\_POINTER  
– Performing Test HAVE\_CXX\_FOMIT\_FRAME\_POINTER - Success  
– Performing Test HAVE\_C\_FOMIT\_FRAME\_POINTER  
– Performing Test HAVE\_C\_FOMIT\_FRAME\_POINTER - Success  
– Performing Test HAVE\_CXX\_FFUNCTION\_SECTIONS  
– Performing Test HAVE\_CXX\_FFUNCTION\_SECTIONS - Success  
– Performing Test HAVE\_C\_FFUNCTION\_SECTIONS  
– Performing Test HAVE\_C\_FFUNCTION\_SECTIONS - Success  
– Performing Test HAVE\_CXX\_FDATA\_SECTIONS  
– Performing Test HAVE\_CXX\_FDATA\_SECTIONS - Success  
– Performing Test HAVE\_C\_FDATA\_SECTIONS  
– Performing Test HAVE\_C\_FDATA\_SECTIONS - Success  
– Performing Test HAVE\_CPU\_NEON\_SUPPORT (check file: cmake/checks/cpu\_neon.cpp)  
– Performing Test HAVE\_CPU\_NEON\_SUPPORT - Success  
– Performing Test HAVE\_CPU\_FP16\_SUPPORT (check file: cmake/checks/cpu\_fp16.cpp)  
– Performing Test HAVE\_CPU\_FP16\_SUPPORT - Success  
– Performing Test HAVE\_CPU\_BASELINE\_FLAGS  
– Performing Test HAVE\_CPU\_BASELINE\_FLAGS - Success  
– Performing Test HAVE\_CXX\_FVISIBILITY\_HIDDEN  
– Performing Test HAVE\_CXX\_FVISIBILITY\_HIDDEN - Success  
– Performing Test HAVE\_C\_FVISIBILITY\_HIDDEN  
– Performing Test HAVE\_C\_FVISIBILITY\_HIDDEN - Success  
– Performing Test HAVE\_CXX\_FVISIBILITY\_INLINES\_HIDDEN  
– Performing Test HAVE\_CXX\_FVISIBILITY\_INLINES\_HIDDEN - Success  
– Performing Test HAVE\_C\_FVISIBILITY\_INLINES\_HIDDEN  
– Performing Test HAVE\_C\_FVISIBILITY\_INLINES\_HIDDEN - Failed  
– Performing Test HAVE\_LINK\_AS\_NEEDED  
– Performing Test HAVE\_LINK\_AS\_NEEDED - Success  
– Looking for pthread.h  
– Looking for pthread.h - found  
– Looking for posix\_memalign  
– Looking for posix\_memalign - found  
– Looking for malloc.h  
– Looking for malloc.h - found  
– Looking for memalign  
– Looking for memalign - found  
– Check if the system is big endian  
– Searching 16 bit integer  
– Looking for sys/types.h  
– Looking for sys/types.h - found  
– Looking for stdint.h  
– Looking for stdint.h - found  
– Looking for stddef.h  
– Looking for stddef.h - found  
– Check size of unsigned short  
– Check size of unsigned short - done  
– Using unsigned short  
– Check if the system is big endian - little endian  
– Found ZLIB: /usr/lib/aarch64-linux-gnu/libz.so (found suitable version “1.2.11”, minimum required is “1.2.3”)  
– Found JPEG: /usr/lib/aarch64-linux-gnu/libjpeg.so  
– Found TIFF: /usr/lib/aarch64-linux-gnu/libtiff.so (found version “4.0.9”)  
– Performing Test HAVE\_C\_STD\_C99  
– Performing Test HAVE\_C\_STD\_C99 - Success  
– Performing Test HAVE\_C\_WNO\_UNUSED\_VARIABLE  
– Performing Test HAVE\_C\_WNO\_UNUSED\_VARIABLE - Success  
– Performing Test HAVE\_C\_WNO\_UNUSED\_FUNCTION  
– Performing Test HAVE\_C\_WNO\_UNUSED\_FUNCTION - Success  
– Performing Test HAVE\_C\_WNO\_SHADOW  
– Performing Test HAVE\_C\_WNO\_SHADOW - Success  
– Performing Test HAVE\_C\_WNO\_MAYBE\_UNINITIALIZED  
– Performing Test HAVE\_C\_WNO\_MAYBE\_UNINITIALIZED - Success  
– Performing Test HAVE\_C\_WNO\_MISSING\_PROTOTYPES  
– Performing Test HAVE\_C\_WNO\_MISSING\_PROTOTYPES - Success  
– Performing Test HAVE\_C\_WNO\_MISSING\_DECLARATIONS  
– Performing Test HAVE\_C\_WNO\_MISSING\_DECLARATIONS - Success  
– Performing Test HAVE\_C\_WNO\_IMPLICIT\_FALLTHROUGH  
– Performing Test HAVE\_C\_WNO\_IMPLICIT\_FALLTHROUGH - Success  
– Could NOT find OpenJPEG (minimal suitable version: 2.0, recommended version \>= 2.3.1). OpenJPEG will be built from sources  
– Performing Test HAVE\_C\_WNO\_IMPLICIT\_CONST\_INT\_FLOAT\_CONVERSION  
– Performing Test HAVE\_C\_WNO\_IMPLICIT\_CONST\_INT\_FLOAT\_CONVERSION - Failed  
– OpenJPEG: VERSION = 2.4.0, BUILD = opencv-4.5.3-openjp2-2.4.0  
– Check if the system is big endian  
– Searching 16 bit integer  
– Using unsigned short  
– Check if the system is big endian - little endian  
– Looking for string.h  
– Looking for string.h - found  
– Looking for memory.h  
– Looking for memory.h - found  
– Looking for stdlib.h  
– Looking for stdlib.h - found  
– Looking for stdio.h  
– Looking for stdio.h - found  
– Looking for math.h  
– Looking for math.h - found  
– Looking for float.h  
– Looking for float.h - found  
– Looking for time.h  
– Looking for time.h - found  
– Looking for stdarg.h  
– Looking for stdarg.h - found  
– Looking for ctype.h  
– Looking for ctype.h - found  
– Looking for assert.h  
– Looking for assert.h - found  
– Looking for stdint.h  
– Looking for stdint.h - found  
– Looking for inttypes.h  
– Looking for inttypes.h - found  
– Looking for strings.h  
– Looking for strings.h - found  
– Looking for sys/stat.h  
– Looking for sys/stat.h - found  
– Looking for unistd.h  
– Looking for unistd.h - found  
– Looking for include file malloc.h  
– Looking for include file malloc.h - found  
– Looking for \_aligned\_malloc  
– Looking for \_aligned\_malloc - not found  
– Looking for posix\_memalign  
– Looking for posix\_memalign - found  
– Looking for memalign  
– Looking for memalign - found  
– Performing Test HAVE\_C\_WNO\_UNDEF  
– Performing Test HAVE\_C\_WNO\_UNDEF - Success  
– Performing Test HAVE\_C\_WNO\_STRICT\_PROTOTYPES  
– Performing Test HAVE\_C\_WNO\_STRICT\_PROTOTYPES - Success  
– Performing Test HAVE\_C\_WNO\_CAST\_FUNCTION\_TYPE  
– Performing Test HAVE\_C\_WNO\_CAST\_FUNCTION\_TYPE - Failed  
– OpenJPEG libraries will be built from sources: libopenjp2 (version “2.4.0”)  
– Found ZLIB: /usr/lib/aarch64-linux-gnu/libz.so (found version “1.2.11”)  
– Found PNG: /usr/lib/aarch64-linux-gnu/libpng.so (found version “1.6.34”)  
– Looking for /usr/include/libpng/png.h  
– Looking for /usr/include/libpng/png.h - found  
– Looking for semaphore.h  
– Looking for semaphore.h - found  
– Performing Test HAVE\_CXX\_WNO\_SHADOW  
– Performing Test HAVE\_CXX\_WNO\_SHADOW - Success  
– Performing Test HAVE\_CXX\_WNO\_UNUSED  
– Performing Test HAVE\_CXX\_WNO\_UNUSED - Success  
– Performing Test HAVE\_CXX\_WNO\_SIGN\_COMPARE  
– Performing Test HAVE\_CXX\_WNO\_SIGN\_COMPARE - Success  
– Performing Test HAVE\_CXX\_WNO\_UNDEF  
– Performing Test HAVE\_CXX\_WNO\_UNDEF - Success  
– Performing Test HAVE\_CXX\_WNO\_MISSING\_DECLARATIONS  
– Performing Test HAVE\_CXX\_WNO\_MISSING\_DECLARATIONS - Success  
– Performing Test HAVE\_CXX\_WNO\_UNINITIALIZED  
– Performing Test HAVE\_CXX\_WNO\_UNINITIALIZED - Success  
– Performing Test HAVE\_CXX\_WNO\_SWITCH  
– Performing Test HAVE\_CXX\_WNO\_SWITCH - Success  
– Performing Test HAVE\_CXX\_WNO\_PARENTHESES  
– Performing Test HAVE\_CXX\_WNO\_PARENTHESES - Success  
– Performing Test HAVE\_CXX\_WNO\_ARRAY\_BOUNDS  
– Performing Test HAVE\_CXX\_WNO\_ARRAY\_BOUNDS - Success  
– Performing Test HAVE\_CXX\_WNO\_EXTRA  
– Performing Test HAVE\_CXX\_WNO\_EXTRA - Success  
– Performing Test HAVE\_CXX\_WNO\_DEPRECATED\_DECLARATIONS  
– Performing Test HAVE\_CXX\_WNO\_DEPRECATED\_DECLARATIONS - Success  
– Performing Test HAVE\_CXX\_WNO\_MISLEADING\_INDENTATION  
– Performing Test HAVE\_CXX\_WNO\_MISLEADING\_INDENTATION - Success  
– Performing Test HAVE\_CXX\_WNO\_DEPRECATED  
– Performing Test HAVE\_CXX\_WNO\_DEPRECATED - Success  
– Performing Test HAVE\_CXX\_WNO\_SUGGEST\_OVERRIDE  
– Performing Test HAVE\_CXX\_WNO\_SUGGEST\_OVERRIDE - Success  
– Performing Test HAVE\_CXX\_WNO\_INCONSISTENT\_MISSING\_OVERRIDE  
– Performing Test HAVE\_CXX\_WNO\_INCONSISTENT\_MISSING\_OVERRIDE - Failed  
– Performing Test HAVE\_CXX\_WNO\_IMPLICIT\_FALLTHROUGH  
– Performing Test HAVE\_CXX\_WNO\_IMPLICIT\_FALLTHROUGH - Success  
– Performing Test HAVE\_CXX\_WNO\_TAUTOLOGICAL\_COMPARE  
– Performing Test HAVE\_CXX\_WNO\_TAUTOLOGICAL\_COMPARE - Success  
– Performing Test HAVE\_CXX\_WNO\_MISSING\_PROTOTYPES  
– Performing Test HAVE\_CXX\_WNO\_MISSING\_PROTOTYPES - Failed  
– Performing Test HAVE\_CXX\_WNO\_REORDER  
– Performing Test HAVE\_CXX\_WNO\_REORDER - Success  
– Performing Test HAVE\_CXX\_WNO\_UNUSED\_RESULT  
– Performing Test HAVE\_CXX\_WNO\_UNUSED\_RESULT - Success  
– Performing Test HAVE\_CXX\_WNO\_IMPLICIT\_CONST\_INT\_FLOAT\_CONVERSION  
– Performing Test HAVE\_CXX\_WNO\_IMPLICIT\_CONST\_INT\_FLOAT\_CONVERSION - Failed  
– Could not find OpenBLAS include. Turning OpenBLAS\_FOUND off  
– Could not find OpenBLAS lib. Turning OpenBLAS\_FOUND off  
– Found Atlas: /usr/include/aarch64-linux-gnu  
– Found Atlas (include: /usr/include/aarch64-linux-gnu, library: /usr/lib/aarch64-linux-gnu/libatlas.so)  
– LAPACK(Atlas): LAPACK\_LIBRARIES: /usr/lib/aarch64-linux-gnu/liblapack.so;/usr/lib/aarch64-linux-gnu/libcblas.so;/usr/lib/aarch64-linux-gnu/libatlas.so  
– LAPACK(Atlas): Support is enabled.  
– Performing Test HAVE\_CXX\_WNO\_UNUSED\_PARAMETER  
– Performing Test HAVE\_CXX\_WNO\_UNUSED\_PARAMETER - Success  
– Performing Test HAVE\_CXX\_WNO\_UNUSED\_LOCAL\_TYPEDEFS  
– Performing Test HAVE\_CXX\_WNO\_UNUSED\_LOCAL\_TYPEDEFS - Success  
– Performing Test HAVE\_CXX\_WNO\_SIGN\_PROMO  
– Performing Test HAVE\_CXX\_WNO\_SIGN\_PROMO - Success  
– Performing Test HAVE\_CXX\_WNO\_TAUTOLOGICAL\_UNDEFINED\_COMPARE  
– Performing Test HAVE\_CXX\_WNO\_TAUTOLOGICAL\_UNDEFINED\_COMPARE - Failed  
– Performing Test HAVE\_CXX\_WNO\_IGNORED\_QUALIFIERS  
– Performing Test HAVE\_CXX\_WNO\_IGNORED\_QUALIFIERS - Success  
– Performing Test HAVE\_CXX\_WNO\_UNUSED\_FUNCTION  
– Performing Test HAVE\_CXX\_WNO\_UNUSED\_FUNCTION - Success  
– Performing Test HAVE\_CXX\_WNO\_UNUSED\_CONST\_VARIABLE  
– Performing Test HAVE\_CXX\_WNO\_UNUSED\_CONST\_VARIABLE - Success  
– Performing Test HAVE\_CXX\_WNO\_SHORTEN\_64\_TO\_32  
– Performing Test HAVE\_CXX\_WNO\_SHORTEN\_64\_TO\_32 - Failed  
– Performing Test HAVE\_CXX\_WNO\_INVALID\_OFFSETOF  
– Performing Test HAVE\_CXX\_WNO\_INVALID\_OFFSETOF - Success  
– Performing Test HAVE\_CXX\_WNO\_ENUM\_COMPARE\_SWITCH  
– Performing Test HAVE\_CXX\_WNO\_ENUM\_COMPARE\_SWITCH - Failed  
– Could NOT find JNI (missing: JAVA\_AWT\_LIBRARY JAVA\_JVM\_LIBRARY JAVA\_INCLUDE\_PATH JAVA\_INCLUDE\_PATH2 JAVA\_AWT\_INCLUDE\_PATH)  
– Found Pylint: /home/ktbm/.local/bin/pylint (found version “2.11.1”)  
– Could NOT find Flake8 (missing: FLAKE8\_EXECUTABLE)  
– Looking for dlerror in dl  
– Looking for dlerror in dl - found  
– Performing Test HAVE\_C\_WNO\_SIGN\_COMPARE  
– Performing Test HAVE\_C\_WNO\_SIGN\_COMPARE - Success  
– ADE: Download: v0.1.1f.zip  
– Found PkgConfig: /usr/bin/pkg-config (found version “0.29.1”)  
– Checking for module ‘gtk±3.0’  
– Found gtk±3.0, version 3.22.30  
– Checking for module ‘gtk±2.0’  
– Found gtk±2.0, version 2.24.32  
– Checking for module ‘gthread-2.0’  
– Found gthread-2.0, version 2.56.4  
– OpenCV Python: during development append to PYTHONPATH: /home/ktbm/Downloads/opencv-4.5.3/build/python\_loader  
– Checking for modules ‘libavcodec;libavformat;libavutil;libswscale’  
– Found libavcodec, version 57.107.100  
– Found libavformat, version 57.83.100  
– Found libavutil, version 55.78.100  
– Found libswscale, version 4.8.100  
– Checking for module ‘libavresample’  
– No package ‘libavresample’ found  
– Checking for module ‘gstreamer-base-1.0’  
– Found gstreamer-base-1.0, version 1.14.5  
– Checking for module ‘gstreamer-app-1.0’  
– Found gstreamer-app-1.0, version 1.14.5  
– Checking for module ‘gstreamer-riff-1.0’  
– Found gstreamer-riff-1.0, version 1.14.5  
– Checking for module ‘gstreamer-pbutils-1.0’  
– Found gstreamer-pbutils-1.0, version 1.14.5  
– Checking for module ‘gstreamer-video-1.0’  
– Found gstreamer-video-1.0, version 1.14.5  
– Checking for module ‘libdc1394-2’  
– Found libdc1394-2, version 2.2.5  
– Allocator metrics storage type: ‘int’  
– Excluding from source files list: /modules/core/test/test\_intrin128.sse2.cpp  
– Excluding from source files list: /modules/core/test/test\_intrin128.sse3.cpp  
– Excluding from source files list: /modules/core/test/test\_intrin128.ssse3.cpp  
– Excluding from source files list: /modules/core/test/test\_intrin128.sse4\_1.cpp  
– Excluding from source files list: /modules/core/test/test\_intrin128.sse4\_2.cpp  
– Excluding from source files list: /modules/core/test/test\_intrin128.avx.cpp  
– Excluding from source files list: /modules/core/test/test\_intrin128.avx2.cpp  
– Excluding from source files list: /modules/core/test/test\_intrin128.avx512\_skx.cpp  
– Excluding from source files list: /modules/core/test/test\_intrin256.avx2.cpp  
– Excluding from source files list: /modules/core/test/test\_intrin256.avx512\_skx.cpp  
– Excluding from source files list: /modules/core/test/test\_intrin512.avx512\_skx.cpp  
– Excluding from source files list: modules/imgproc/src/corner.avx.cpp  
– Excluding from source files list: modules/imgproc/src/imgwarp.avx2.cpp  
– Excluding from source files list: modules/imgproc/src/imgwarp.sse4\_1.cpp  
– Excluding from source files list: modules/imgproc/src/resize.avx2.cpp  
– Excluding from source files list: modules/imgproc/src/resize.sse4\_1.cpp  
– Registering hook ‘INIT\_MODULE\_SOURCES\_opencv\_dnn’: /home/ktbm/Downloads/opencv-4.5.3/modules/dnn/cmake/hooks/INIT\_MODULE\_SOURCES\_opencv\_dnn.cmake  
– opencv\_dnn: filter out cuda4dnn source code  
– Excluding from source files list: /modules/dnn/layers/layers\_common.avx.cpp  
– Excluding from source files list: /modules/dnn/layers/layers\_common.avx2.cpp  
– Excluding from source files list: /modules/dnn/layers/layers\_common.avx512\_skx.cpp  
– Excluding from source files list: modules/features2d/src/fast.avx2.cpp  
– highgui: using builtin backend: GTK3  
– Performing Test HAVE\_CXX\_WNO\_OVERLOADED\_VIRTUAL  
– Performing Test HAVE\_CXX\_WNO\_OVERLOADED\_VIRTUAL - Success  
– Performing Test HAVE\_CXX\_WNO\_UNUSED\_PRIVATE\_FIELD  
– Performing Test HAVE\_CXX\_WNO\_UNUSED\_PRIVATE\_FIELD - Failed  
– OpenCL samples are skipped: OpenCL SDK is required  
– SYCL/OpenCL samples are skipped: SYCL SDK is required  
– - check configuration of SYCL\_DIR/SYCL\_ROOT/CMAKE\_MODULE\_PATH  
– - ensure that right compiler is selected from SYCL SDK (e.g, clang++): CMAKE\_CXX\_COMPILER=/usr/bin/c++  
– Registered ‘check\_pylint’ target: using /home/ktbm/.local/bin/pylint (ver: 2.11.1), checks: 186  
CMake Warning at cmake/OpenCVGenSetupVars.cmake:54 (message):  
CONFIGURATION IS NOT SUPPORTED: validate setupvars script in install  
directory  
Call Stack (most recent call first):  
CMakeLists.txt:1018 (include)

## – – General configuration for OpenCV 4.5.3 ===================================== – Version control: unknown

## – Platform: – Timestamp: 2021-10-27T15:19:00Z – Host: Linux 4.9.253-tegra aarch64 – CMake: 3.10.2 – CMake generator: Unix Makefiles – CMake build tool: /usr/bin/make – Configuration: RELEASE

## – CPU/HW features: – Baseline: NEON FP16

## – C/C++: – Built as dynamic libs?: YES – C++ standard: 11 – C++ Compiler: /usr/bin/c++ (ver 7.5.0) – C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG – C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D\_DEBUG – C Compiler: /usr/bin/cc – C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG – C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -fvisibility=hidden -g -O0 -DDEBUG -D\_DEBUG – Linker flags (Release): -Wl,–gc-sections -Wl,–as-needed – Linker flags (Debug): -Wl,–gc-sections -Wl,–as-needed – ccache: NO – Precompiled headers: NO – Extra dependencies: dl m pthread rt – 3rdparty dependencies:

## – OpenCV modules: – To be built: calib3d core dnn features2d flann gapi highgui imgcodecs imgproc ml objdetect photo python3 stitching ts video videoio – Disabled: world – Disabled by dependency: - – Unavailable: java python2 – Applications: tests perf\_tests examples apps – Documentation: NO – Non-free algorithms: NO

## – GUI: – GTK+: YES (ver 3.22.30) – GThread : YES (ver 2.56.4) – GtkGlExt: NO

## – Media I/O: – ZLib: /usr/lib/aarch64-linux-gnu/libz.so (ver 1.2.11) – JPEG: /usr/lib/aarch64-linux-gnu/libjpeg.so (ver 80) – WEBP: build (ver encoder: 0x020f) – PNG: /usr/lib/aarch64-linux-gnu/libpng.so (ver 1.6.34) – TIFF: /usr/lib/aarch64-linux-gnu/libtiff.so (ver 42 / 4.0.9) – JPEG 2000: build (ver 2.4.0) – OpenEXR: build (ver 2.3.0) – HDR: YES – SUNRASTER: YES – PXM: YES – PFM: YES

## – Video I/O: – DC1394: YES (2.2.5) – FFMPEG: YES – avcodec: YES (57.107.100) – avformat: YES (57.83.100) – avutil: YES (55.78.100) – swscale: YES (4.8.100) – avresample: NO – GStreamer: YES (1.14.5) – v4l/v4l2: YES (linux/videodev2.h)

## – Parallel framework: pthreads

## – Trace: YES (with Intel ITT)

## – Other third-party libraries: – Lapack: YES (/usr/lib/aarch64-linux-gnu/liblapack.so /usr/lib/aarch64-linux-gnu/libcblas.so /usr/lib/aarch64-linux-gnu/libatlas.so) – Eigen: YES (ver 3.3.4) – Custom HAL: YES (carotene (ver 0.0.1)) – Protobuf: build (3.5.1)

## – OpenCL: YES (no extra features) – Include path: /home/ktbm/Downloads/opencv-4.5.3/3rdparty/include/opencl/1.2 – Link libraries: Dynamic load

## – Python 3: – Interpreter: /home/ktbm/miniconda3/envs/THOR\_test/bin/python3 (ver 3.9.7) – Libraries: /home/ktbm/miniconda3/envs/THOR\_test/lib/libpython3.9.so (ver 3.9.7) – numpy: /home/ktbm/miniconda3/envs/THOR\_test/lib/python3.9/site-packages/numpy/core/include (ver 1.20.3) – install path: /home/ktbm/miniconda3/envs/THOR\_test/lib/python3.9/site-packages/cv2/python-3.9

## – Python (for build): /home/ktbm/miniconda3/envs/THOR\_test/bin/python3

## – Java: – ant: NO – JNI: NO – Java wrappers: NO – Java tests: NO

– Install to: /home/ktbm/miniconda3/envs/THOR\_test

* * *

–  
– Configuring done  
– Generating done  
– Build files have been written to: /home/ktbm/Downloads/opencv-4.5.3/build

maybe im missing an error but im not sure what to do.  
just to clarify when launching the camera from terminal it works and when launching through opencv it gives the error:

GStreamer-WARNING \*\*: 16:53:11.876: Failed to load plugin ‘/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstnvarguscamerasrc.so’: /usr/lib/aarch64-linux-gnu/tegra/libnvcam\_imageencoder.so: undefined symbol: jpeg\_set\_defaults

but i’ve done the gstreamer check file command and found 0 blacklisted files and both listed files above to be good and in the correct path.  
I’d appreciate any help i’ve been stuck on this for a long time.
