-
Notifications
You must be signed in to change notification settings - Fork 352
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
dense_flow Compile Error ->opencv2/xfeatures2d.hpp #15
Comments
@zhaoyue-zephyrus sorry for trouble you |
Hi, @yangyuke001 How do you install your opencv 3.4.0? xfeatures2d is in opencv_contrib. You probably have to build your opencv with this extra module by explicitly setting Please refer to issue #9 for compiling dense_flow with opencv 4.1.0. Compiling with opencv 3.x should be similar. Also as a reminder, please check out the branch property. |
@zhaoyue-zephyrus Thanks for your reply,I will try it now. |
Another error happened ,some of the errors log like : dense_warp_flow_gpu.cpp:(.text+0x251a):对‘cv::cuda::BroxOpticalFlow::create(double, double, double, int, int, int)’未定义的引用 my envirenment:Ubuntu 16.04 + CUDA 10.1,and I download NVIDIA VIDEO CODEC SDK and copy the two header files to cuda path . |
Are you enabling CUDA when install opencv? |
@zhaoyue-zephyrus And I cloned the lasted dense_flow codebase supports opencv4.1.0 |
@yangyuke001 |
@zhaoyue-zephyrus heart-broken |
@yangyuke001 |
@zhaoyue-zephyrus in dense_flow.cpp and other .cpp files: in dense_flow.cpp :
|
@yangyuke001 Good to hear that:) Actually what you mentioned have been merged into the master branch. (Check it out at https://github.com/yjxiong/dense_flow/blob/master/src/dense_flow_gpu.cpp#L32 for example) I will update the submodule and the related workaround quickly. |
@zhaoyue-zephyrus |
my environment:ubuntu16.04,opencv3.4.0
the error log as blew:
/dense_flow/build$ cmake .. && make -j
-- Boost version: 1.65.1
-- Found the following Boost libraries:
-- python
-- Configuring done
-- Generating done
-- Build files have been written to: /home/yyk/ACTION/mmaction/third_party/dense_flow/build
Scanning dependencies of target denseflow
[ 7%] Building CXX object CMakeFiles/denseflow.dir/src/dense_warp_flow_gpu.cpp.o
[ 14%] Building CXX object CMakeFiles/denseflow.dir/src/dense_flow_gpu.cpp.o
/home/yyk/ACTION/mmaction/third_party/dense_flow/src/dense_warp_flow_gpu.cpp:12:10: fatal error: opencv2/xfeatures2d.hpp: No such file or directory
#include "opencv2/xfeatures2d.hpp"
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
/home/yyk/ACTION/mmaction/third_party/dense_flow/src/dense_flow_gpu.cpp:5:10: fatal error: opencv2/xfeatures2d.hpp: No such file or directory
#include "opencv2/xfeatures2d.hpp"
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
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
make[2]: *** Waiting for unfinished jobs....
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/Makefile2:215: recipe for target 'CMakeFiles/denseflow.dir/all' failed
make[1]: *** [CMakeFiles/denseflow.dir/all] Error 2
thanks in advance!
The text was updated successfully, but these errors were encountered: