yjxiong / temporal-segment-networks

Code & Models for Temporal Segment Networks (TSN) in ECCV 2016
BSD 2-Clause "Simplified" License
1.54k stars 477 forks source link

dense_flow #210

Closed Zhuysheng closed 6 years ago

Zhuysheng commented 6 years ago

when I use opencv_cuda9.patch opencv2.4.13 installed successfully, but build dense_flow meet the question: /usr/bin/ld: cannot find -lcudart /usr/bin/ld: cannot find -lnppc /usr/bin/ld: cannot find -lnppial /usr/bin/ld: cannot find -lnppicc /usr/bin/ld: cannot find -lnppicom /usr/bin/ld: cannot find -lnppidei /usr/bin/ld: cannot find -lnppif /usr/bin/ld: cannot find -lnppig /usr/bin/ld: cannot find -lnppim /usr/bin/ld: cannot find -lnppist /usr/bin/ld: cannot find -lnppisu /usr/bin/ld: cannot find -lnppitc /usr/bin/ld: cannot find -lnpps /usr/bin/ld: cannot find -lcufft collect2: error: ld returned 1 exit status /usr/bin/ld: cannot find -lcudart /usr/bin/ld: cannot find -lnppc /usr/bin/ld: cannot find -lnppial /usr/bin/ld: cannot find -lnppicc /usr/bin/ld: cannot find -lnppicom /usr/bin/ld: cannot find -lnppidei /usr/bin/ld: cannot find -lnppif /usr/bin/ld: cannot find -lnppig /usr/bin/ld: cannot find -lnppim /usr/bin/ld: cannot find -lnppist /usr/bin/ld: cannot find -lnppisu /usr/bin/ld: cannot find -lnppitc /usr/bin/ld: cannot find -lnpps /usr/bin/ld: cannot find -lcufft collect2: error: ld returned 1 exit status CMakeFiles/extract_gpu.dir/build.make:117: recipe for target 'extract_gpu' failed make[2]: [extract_gpu] Error 1 CMakeFiles/Makefile2:178: recipe for target 'CMakeFiles/extract_gpu.dir/all' failed make[1]: [CMakeFiles/extract_gpu.dir/all] Error 2 make[1]: Waiting for unfinished jobs.... CMakeFiles/extract_cpu.dir/build.make:117: recipe for target 'extract_cpu' failed make[2]: [extract_cpu] Error 1 CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/extract_cpu.dir/all' failed make[1]: [CMakeFiles/extract_cpu.dir/all] Error 2 /usr/bin/ld: cannot find -lcudart /usr/bin/ld: cannot find -lnppc /usr/bin/ld: cannot find -lnppial /usr/bin/ld: cannot find -lnppicc /usr/bin/ld: cannot find -lnppicom /usr/bin/ld: cannot find -lnppidei /usr/bin/ld: cannot find -lnppif /usr/bin/ld: cannot find -lnppig /usr/bin/ld: cannot find -lnppim /usr/bin/ld: cannot find -lnppist /usr/bin/ld: cannot find -lnppisu /usr/bin/ld: cannot find -lnppitc /usr/bin/ld: cannot find -lnpps /usr/bin/ld: cannot find -lcufft collect2: error: ld returned 1 exit status CMakeFiles/extract_warp_gpu.dir/build.make:117: recipe for target 'extract_warp_gpu' failed make[2]: [extract_warp_gpu] Error 1 CMakeFiles/Makefile2:141: recipe for target 'CMakeFiles/extract_warp_gpu.dir/all' failed make[1]: [CMakeFiles/extract_warp_gpu.dir/all] Error 2 In file included from /home/zys/Downloads/Dev/dense_flow/src/py_denseflow.cpp:8:0: /home/zys/Downloads/Dev/3rd-party/opencv-2.4.13/modules/gpu/include/opencv2/gpu/gpu.hpp:2119:10: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] std::autoptr impl; ^ In file included from /usr/include/c++/5/memory:81:0, from /usr/include/boost/function/function_base.hpp:16, from /usr/include/boost/function/detail/prologue.hpp:17, from /usr/include/boost/function/function_template.hpp:13, from /usr/include/boost/function/detail/maybe_include.hpp:13, from /usr/include/boost/function/function0.hpp:11, from /usr/include/boost/python/errors.hpp:13, from /usr/include/boost/python/handle.hpp:11, from /usr/include/boost/python/args_fwd.hpp:10, from /usr/include/boost/python/args.hpp:10, from /usr/include/boost/python.hpp:11, from /home/zys/Downloads/Dev/dense_flow/src/py_denseflow.cpp:2: /usr/include/c++/5/bits/unique_ptr.h:49:28: note: declared here template class auto_ptr; ^ In file included from /home/zys/Downloads/Dev/dense_flow/src/py_denseflow.cpp:8:0: /home/zys/Downloads/Dev/3rd-party/opencv-2.4.13/modules/gpu/include/opencv2/gpu/gpu.hpp:2435:10: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] std::autoptr impl; ^ In file included from /usr/include/c++/5/memory:81:0, from /usr/include/boost/function/function_base.hpp:16, from /usr/include/boost/function/detail/prologue.hpp:17, from /usr/include/boost/function/function_template.hpp:13, from /usr/include/boost/function/detail/maybe_include.hpp:13, from /usr/include/boost/function/function0.hpp:11, from /usr/include/boost/python/errors.hpp:13, from /usr/include/boost/python/handle.hpp:11, from /usr/include/boost/python/args_fwd.hpp:10, from /usr/include/boost/python/args.hpp:10, from /usr/include/boost/python.hpp:11, from /home/zys/Downloads/Dev/dense_flow/src/py_denseflow.cpp:2: /usr/include/c++/5/bits/unique_ptr.h:49:28: note: declared here template class auto_ptr; ^ In file included from /home/zys/Downloads/Dev/dense_flow/src/py_denseflow.cpp:8:0: /home/zys/Downloads/Dev/3rd-party/opencv-2.4.13/modules/gpu/include/opencv2/gpu/gpu.hpp:2534:10: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] std::autoptr impl; ^ In file included from /usr/include/c++/5/memory:81:0, from /usr/include/boost/function/function_base.hpp:16, from /usr/include/boost/function/detail/prologue.hpp:17, from /usr/include/boost/function/function_template.hpp:13, from /usr/include/boost/function/detail/maybe_include.hpp:13, from /usr/include/boost/function/function0.hpp:11, from /usr/include/boost/python/errors.hpp:13, from /usr/include/boost/python/handle.hpp:11, from /usr/include/boost/python/args_fwd.hpp:10, from /usr/include/boost/python/args.hpp:10, from /usr/include/boost/python.hpp:11, from /home/zys/Downloads/Dev/dense_flow/src/py_denseflow.cpp:2: /usr/include/c++/5/bits/unique_ptr.h:49:28: note: declared here template class auto_ptr; ^ [100%] Linking CXX shared library libpydenseflow.so /usr/bin/ld: cannot find -lcudart /usr/bin/ld: cannot find -lnppc /usr/bin/ld: cannot find -lnppial /usr/bin/ld: cannot find -lnppicc /usr/bin/ld: cannot find -lnppicom /usr/bin/ld: cannot find -lnppidei /usr/bin/ld: cannot find -lnppif /usr/bin/ld: cannot find -lnppig /usr/bin/ld: cannot find -lnppim /usr/bin/ld: cannot find -lnppist /usr/bin/ld: cannot find -lnppisu /usr/bin/ld: cannot find -lnppitc /usr/bin/ld: cannot find -lnpps /usr/bin/ld: cannot find -lcufft collect2: error: ld returned 1 exit status CMakeFiles/pydenseflow.dir/build.make:117: recipe for target 'libpydenseflow.so' failed make[2]: [libpydenseflow.so] Error 1 CMakeFiles/Makefile2:215: recipe for target 'CMakeFiles/pydenseflow.dir/all' failed make[1]: [CMakeFiles/pydenseflow.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: [all] Error 2

aoliao12138 commented 6 years ago

I faced a similar problem too.

yjxiong commented 6 years ago

You can use the built docker image. See the README