wanglimin / dense_flow

OpenCV Implementation of different optical flow algorithms
228 stars 204 forks source link

does this support cuda-9.0 #32

Open stevve opened 5 years ago

stevve commented 5 years ago

when I cmake CMake" Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):Could NOT find CUDA: Found unsuitable version "9.0", but required is exact version "8.0" (found /usr/local/cuda-9.0)"

mbotsu commented 5 years ago

Hi. OpenCV4 & CUDA9.0 Fix https://github.com/infocom-tpo/dense_flow

at OpenCV4 Build

$ cmake -DOPENCV_EXTRA_MODULES_PATH=../../opencv_contrib-4.0.1/modules -DWITH_CUDA=ON -DBUILD_JAVA=OFF -DWITH_VTK=OFF -DCMAKE_INSTALL_PREFIX=$HOME/opencv401 -DWITH_FFMPEG=OFF -DWITH_EXAMPLE=ON ..

at CMakeLists.txt

# OpenCVConfig.cmake path
set(OpenCV_DIR "/pathto/src/opencv-4.0.1/build")
find_package(OpenCV REQUIRED)

thank.