cmake error compile opencv2.4.13 with jetpack3.3.1 on Tx2

Hi mister,
I need to compile opencv 2.4.13 on the Tx2.

I install package sources.
Try to compile.

obtain that :

[  5%] Built target libtiff
[ 10%] Built target libjpeg
[ 14%] Built target libjasper
[ 16%] Built target libpng
[ 24%] Built target IlmImf
[ 24%] Built target opencv_core_pch_dephelp
[ 24%] Built target pch_Generate_opencv_core
[ 25%] Linking CXX shared library ../../lib/
/usr/bin/ld: cannot find /usr/local/cuda-9.0/targets/aarch64-linux/include: File format not recognized
/usr/bin/ld: cannot find /usr/local/cuda-9.0/targets/aarch64-linux/include: File format not recognized
collect2: error: ld returned 1 exit status
modules/core/CMakeFiles/opencv_core.dir/build.make:935: recipe for target 'lib/' failed
make[2]: *** [lib/] Error 1
CMakeFiles/Makefile2:1060: recipe for target 'modules/core/CMakeFiles/opencv_core.dir/all' failed
make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

What’s the problem ?


Does opencv 2.4.13 support CUDA9?


No it isn’t.

It’s seem necessary to use a little modification.

See at :
I havent try it because I flash with Jetpack2.3.1 with ocv2.4.13 and cuda8.

Is it a good idea to use apt-get update and upgrade directly on the TX2 ?


Hi laurent.delaon,

The better way is to use the latest JetPack to install the newer version of OpenCV to avoid the unknown error which is not we released.