Closed wangzheallen closed 4 years ago
did you export BOOST_ROOT=$ZZROOT
before install denseflow?
Another try is to remove all anaconda related things in your PATH and LD_LIBRARY_PATH.
Conda is often a trouble when compiling & installing.
Thanks for answering! After adding all the include path, lib path and bin path, I have the following compiling error.
libzzdenseflow.a(denseflow_gpu.cpp.o): In function DenseFlow::calc_optflows_imp(FlowBuffer const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, bool, cv::cuda::Stream&)': denseflow_gpu.cpp:(.text+0x296b): undefined reference to
cv::cuda::OpticalFlowDual_TVL1::create(double, double, double, int, int, double, int, double, double, bool)'
denseflow_gpu.cpp:(.text+0x2a08): undefined reference to cv::cuda::FarnebackOpticalFlow::create(int, double, bool, int, int, int, double, int)' denseflow_gpu.cpp:(.text+0x2a9f): undefined reference to
cv::cuda::BroxOpticalFlow::create(double, double, double, int, int, int)'
collect2: error: ld returned 1 exit status
is the opencv compiled with cuda?
is the opencv compiled with cuda?
I mv anaconda3 to anaconda3_bk (also disable all anaconda in .bashrc) and check the python I am using is /usr/bin/python2.7, then recompile everything following https://github.com/open-mmlab/denseflow/blob/master/INSTALL.md
Could you check if OpenCV is compiled with CUDA?
You may run zzopencv again, and look at its summary when it prints.
Reran zzopencv and getting following summary (only copy cuda related):
-- CUDA detected: 10.0 -- CUDA NVCC target flags: -gencode;arch=compute_30,code=sm_30;-gencode;arch=compute_35,code=sm_35;-gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_52,code=sm_52;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-D_FORCE_INLINES -- LAPACK(OpenBLAS): LAPACK_LIBRARIES: /usr/local/lib/libopenblas.so -- LAPACK(OpenBLAS): Support is enabled.
-- Install to: /home/ubuntu/app
Looks like opencv is okay. Could rm the denseflow dir in $ZZROOT/src/denseflow and rerun the installation? In the meantime, look at its output, and find which opencv it is using.
I guess it finds the wrong opencv (without cuda). Also, did you export OpenCV_DIR=$ZZROOT
before installing denseflow?
Thanks for the kind answer! Below are keys to solve the problems.
Glad you solved it! If the CMakelist.txt or the install scripts could be improved, would you mind make a pr?
https://github.com/open-mmlab/denseflow/blob/master/INSTALL.md when I ran ./zzdenseflow.sh, I got
CMake Error at CMakeLists.txt:67 (install): install TARGETS given no ARCHIVE DESTINATION for static library target "zzdenseflow".
when I read CMakeFiles/CMakeError.log, I got
/usr/bin/cc -fPIC CMakeFiles/cmTC_b7f79.dir/CheckSymbolExists.c.o -o cmTC_b7f79 CMakeFiles/cmTC_b7f79.dir/CheckSymbolExists.c.o: In function
main': CheckSymbolExists.c:(.text+0x1b): undefined reference to
pthread_create' collect2: error: ld returned 1 exit status CMakeFiles/cmTC_b7f79.dir/build.make:86: recipe for target 'cmTC_b7f79' failed