After configuring the ROS melody environment for Jetson nano B01 and planning to install the turtle BOT, you need to install opencv3.2.0 and add GPU acceleration support to the compilation of OpenCV. There is a problem when installing opencv from the source code:
CMake Error at cmake/OpenCVModule.cmake:286 (add_subdirectory):
The binary directory
/home/fdse/tools/opencv-3.2.0/release/modules/cudaarithm/.cudaarithm
is already used to build a source directory. It cannot be used to build
source directory
/home/fdse/tools/opencv_contrib/modules/cudaarithm
Specify a unique binary directory name.
Call Stack (most recent call first):
modules/CMakeLists.txt:7 (ocv_glob_modules)
CMake Error at cmake/OpenCVModule.cmake:286 (add_subdirectory):
The binary directory
/home/fdse/tools/opencv-3.2.0/release/modules/cudabgsegm/.cudabgsegm
is already used to build a source directory. It cannot be used to build
source directory
/home/fdse/tools/opencv_contrib/modules/cudabgsegm
Specify a unique binary directory name.
Call Stack (most recent call first):
modules/CMakeLists.txt:7 (ocv_glob_modules)
CMake Error at cmake/OpenCVModule.cmake:286 (add_subdirectory):
The binary directory
/home/fdse/tools/opencv-3.2.0/release/modules/cudacodec/.cudacodec
is already used to build a source directory. It cannot be used to build
source directory
/home/fdse/tools/opencv_contrib/modules/cudacodec
Specify a unique binary directory name.
Call Stack (most recent call first):
modules/CMakeLists.txt:7 (ocv_glob_modules)
CMake Error at cmake/OpenCVModule.cmake:286 (add_subdirectory):
The binary directory
/home/fdse/tools/opencv-3.2.0/release/modules/cudafeatures2d/.cudafeatures2d
is already used to build a source directory. It cannot be used to build
source directory
/home/fdse/tools/opencv_contrib/modules/cudafeatures2d
Specify a unique binary directory name.
Call Stack (most recent call first):
modules/CMakeLists.txt:7 (ocv_glob_modules)
The reason is that the version of opencv_conteib is inconsistent with that of opencv. When cloning opencv, add -b 3.2.0. Similarly, when cloning opencv_contrib, clone version 3.2.0 and add -b 3.2.0, then no error will be reported.
Read More:
- Ubuntu install and compile OpenCV3.4.0 fatal error: dynlink_nvcuvid.h: No such file or directory #include <dynlink_nv
- [Solved] Win10 and Linux address reading format is different (CV2. Error: opencv (4.2.0)/Io/opencv…)
- [Solved] Denseflow Install Error: fatal error: opencv2/cudaarithm.hpp: No such file or directory
- How to Solve labelme Install Error in Ubuntu
- Ubuntu Server: How to Install Chrome
- [Solved] Ubuntu pip Install Error: which is not on PATH
- [Solved] Ubuntu 20.04 install MATLAB and toolbox permissions Error
- Ubuntu 20.04 Desktop Install sublime-text Error: “Certificate verification failed”
- Ubuntu18.04 Install ROS Error: rosdep update [How to Solve]
- How to Solve Xmind Install Error in Ubuntu System
- Ubuntu20.04 install the ROS noetic version in catkin_Problems in make compilation
- mysqlclient in Ubuntu: How to Solve mysqlclient Install Error
- [Solved] Ubuntu20.04 Error: “Failed to install the following Android SDK packages as some licences have not..“error
- [Solved] Ubuntu Install jdk Error: Error occurred during initialization of VM
- [Solved] Ubuntu16.4Install vcs2016 Error: mount.vboxsf: mounting failed with the error: Invalid argument
- How to Solve Mujoco Install Error in Ubuntu (Pycharm Run Error)
- Linux Ubuntu ImportError: Libtk8.5.so: cannot open shared object file:No such file Install tkinter Library
- Windows11 Install Ubuntu Error: WslRegisterDistribution failed with error: 0x800701bc
- ubuntu install package Error: subprocess installed post-installation script returned error exit status 10
- [Solved] Any Softwares Install Error in Ubuntu: /usr/bin/dpkg returned an error code