使用的是opencv3.1.0+cuda8.0,但是make可以,run出錯。
nvidia@tegra-ubuntu:~$ cd project_wly
nvidia@tegra-ubuntu:~/project_wly$ cmake .
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- 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
-- 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
-- Configuring done
-- Generating done
-- Build files have been written to: /home/nvidia/project_wly
nvidia@tegra-ubuntu:~/project_wly$ make
Scanning dependencies of target project_wly
[ 50%] Building CXX object CMakeFiles/project_wly.dir/project_wly.cpp.o
[100%] Linking CXX executable project_wly
[100%] Built target project_wly
nvidia@tegra-ubuntu:~/project_wly$ ./project_wly
OpenCV Error: Gpu API call (invalid device symbol) in loadUMax, file /home/nvidia/opencv_3.1/opencv-3.1.0/modules/cudafeatures2d/src/cuda/orb.cu, line 148
terminate called after throwing an instance of 'cv::Exception'
what(): /home/nvidia/opencv_3.1/opencv-3.1.0/modules/cudafeatures2d/src/cuda/orb.cu:148: error: (-217) invalid device symbol in function loadUMax
Aborted (core dumped)
nvidia@tegra-ubuntu:~/project_wly$
求教各位大神,怎麼解決這個問題?