-
Notifications
You must be signed in to change notification settings - Fork 477
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compile error at dense flow when bash build_all.sh #270
Comments
I met this problem, too. Did you solve it? |
You can try : https://github.com/open-mmlab/mmaction |
你用的opencv是2.4.13嘛?是不是需要加入额外的opencv_contrib包? |
不是,我用的opencv4,opencv2版本太老了,很多东西不兼容,所以就用mmaction了,只要能把光流提取出来就可以。 |
Building Dense Flow
CMake Error: The source directory "/home/dfxue/disk/code/temporal-segment-networks/lib/dense_flow/build/CUDA_USE_STATIC_CUDA_RUNTIME=OFF" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
[ 7%] Building CXX object CMakeFiles/denseflow.dir/src/dense_flow.cpp.o
[ 14%] Building CXX object CMakeFiles/denseflow.dir/src/dense_warp_flow_gpu.cpp.o
[ 21%] Building CXX object CMakeFiles/denseflow.dir/src/dense_flow_gpu.cpp.o
/home/dfxue/disk/code/temporal-segment-networks/lib/dense_flow/src/dense_warp_flow_gpu.cpp:13:34: fatal error: opencv2/cudaarithm.hpp: 没有那个文件或目录
#include "opencv2/cudaarithm.hpp"
^
compilation terminated.
/home/dfxue/disk/code/temporal-segment-networks/lib/dense_flow/src/dense_flow_gpu.cpp:5:35: fatal error: opencv2/xfeatures2d.hpp: 没有那个文件或目录
#include "opencv2/xfeatures2d.hpp"
^
compilation terminated.
/home/dfxue/disk/code/temporal-segment-networks/lib/dense_flow/src/dense_flow.cpp:6:31: fatal error: opencv2/optflow.hpp: 没有那个文件或目录
#include "opencv2/optflow.hpp"
^
compilation terminated.
CMakeFiles/denseflow.dir/build.make:86: recipe for target 'CMakeFiles/denseflow.dir/src/dense_flow.cpp.o' failed
make[2]: *** [CMakeFiles/denseflow.dir/src/dense_flow.cpp.o] Error 1
make[2]: *** 正在等待未完成的任务....
CMakeFiles/denseflow.dir/build.make:110: recipe for target 'CMakeFiles/denseflow.dir/src/dense_flow_gpu.cpp.o' failed
make[2]: *** [CMakeFiles/denseflow.dir/src/dense_flow_gpu.cpp.o] Error 1
CMakeFiles/denseflow.dir/build.make:134: recipe for target 'CMakeFiles/denseflow.dir/src/dense_warp_flow_gpu.cpp.o' failed
make[2]: *** [CMakeFiles/denseflow.dir/src/dense_warp_flow_gpu.cpp.o] Error 1
CMakeFiles/Makefile2:215: recipe for target 'CMakeFiles/denseflow.dir/all' failed
make[1]: *** [CMakeFiles/denseflow.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
Failed to build Dense Flow. Please check the logs above.
I have found some solutions by google, but all of them are not useful. And I hope I can get some help from here. I don't know where the problem is, can anyone give me some advices? Thanks
Best wishes
The text was updated successfully, but these errors were encountered: