ukiKwon / bank-assistant-system

[장려] 2019 KISA-KB 핀테크 해커톤
0 stars 0 forks source link

Unknown CMake command "ocv_include_modules_recurse" #2

Closed ukiKwon closed 5 years ago

ukiKwon commented 5 years ago

(1) This is a error msg.

CMake Error at CMakeLists.txt:17 (ocv_include_modules_recurse):
  Unknown CMake command "ocv_include_modules_recurse".

-- Configuring incomplete, errors occurred!
See also "~/opencv-4.0.0/samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/CMakeFiles/CMakeOutput.log".

(2) and this is OpenCV_EXTRA_MODULES_PATH in build/CMakeCache.txt created by cmake first.

//Where to look for additional OpenCV modules (can be ;-separated
// list of paths)
OPENCV_EXTRA_MODULES_PATH:PATH=/absolute_path/opencv/opencv_contrib-4.0.0/modules

(3) cmak command

cmake \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D BUILD_WITH_DEBUG_INFO=OFF \
-D BUILD_EXAMPLES=ON \
-D BUILD_opencv_python3=ON \
-D INSTALL_PYTHON_EXAMPLES=ON \
-D OPENCV_ENABLE_NONFREE=ON \
-D OPENCV_EXTRA_MODULES_PATH=/absolute_path/opencv_contrib-4.0.0/modules \
-D OPENCV_GENERATE_PKGCONFIG=ON \
-D CMAKE_CXX_FLAGS="-std=c++11"
-D WITH_TBB=ON \
../opencv-4.0.0/

I read the issue but have no idea. heelllllllp

ukiKwon commented 5 years ago

This problem is simple. I installed 2 things, "opencv" and "opencv_contrib" by 'apt-get'. But there were some bugs, which downloaded same files despite of different commands. So the opencv_contrib had a problem, and I will replaced it righr "open_contrib".