yjxiong / temporal-segment-networks

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

Compile error at dense_flow #269

Open poweryin opened 5 years ago

poweryin commented 5 years ago

Hi,Thanks for your great work.when I git clone -- recursive the temporal-segment-networks.when bash build_all.sh,find following mistakes(In README.txt,I didn't find the useful instruction for the problem):

In file included from /usr/include/c++/5/memory:81:0, from/home/z840/caffe_tsn/lib/dense_flow/include/easylogging++/src/easylogging++.h:337, from /home/z840/caffe_tsn/lib/dense_flow/include/dense_flow.h:9, from /home/z840/caffe_tsn/lib/dense_flow/src/dense_warp_flow_gpu.cpp:2: /usr/include/c++/5/bits/unique_ptr.h:49:28: note: declared here template class auto_ptr; ^ [ 42%] Linking CXX static library libdenseflow.a [ 42%] Built target denseflow Scanning dependencies of target pydenseflow Scanning dependencies of target extract_warp_gpu Scanning dependencies of target extract_gpu Scanning dependencies of target extract_cpu [ 50%] Building CXX object CMakeFiles/extract_warp_gpu.dir/tools/extract_warp_flow_gpu.cpp.o [ 57%] Building CXX object CMakeFiles/extract_gpu.dir/tools/extract_flow_gpu.cpp.o [ 64%] Building CXX object CMakeFiles/extract_cpu.dir/tools/extract_flow.cpp.o make[2]: stat: /usr/lib/libpython3.6.so: 符号连接的层数过多 make[2]: No rule to make target '/usr/lib/libpython3.6.so', needed by 'libpydenseflow.so'。 停止。 make[2]: 正在等待未完成的任务.... [ 71%] Building CXX object CMakeFiles/pydenseflow.dir/src/py_denseflow.cpp.o [ 78%] Linking CXX executable extract_warp_gpu [ 85%] Linking CXX executable extract_gpu [ 92%] Linking CXX executable extract_cpu [ 92%] Built target extract_cpu [ 92%] Built target extract_gpu [ 92%] Built target extract_warp_gpu In file included from /home/z840/caffe_tsn/3rd-party/opencv-2.4.13/modules/core/include/opencv2/core/gpumat.hpp:49:0, from /home/z840/caffe_tsn/3rd-party/opencv-2.4.13/modules/gpu/include/opencv2/gpu/gpu.hpp:52, from /home/z840/caffe_tsn/lib/dense_flow/src/py_denseflow.cpp:8: /home/z840/caffe_tsn/3rd-party/opencv-2.4.13/modules/core/include/opencv2/core/cudadevptrs.hpp:147:17: warning: ‘template struct cv::gpu::DevMem2D’ is deprecated [-Wdeprecated-declarations] typedef DevMem2D_ DevMem2Db; ^ /home/z840/caffe_tsn/3rd-party/opencv-2.4.13/modules/core/include/opencv2/core/cuda_devptrs.hpp:138:61: note: declared here template struct __CV_GPU_DEPR_BEFORE_ DevMem2D : public PtrStepSz ^

In file included from /usr/include/c++/5/memory:81:0, from /usr/local/include/boost/function/function_base.hpp:16, from /usr/local/include/boost/function/detail/prologue.hpp:17, from /usr/local/include/boost/function/function_template.hpp:13, from /usr/local/include/boost/function/detail/maybe_include.hpp:15, from /usr/local/include/boost/function/function0.hpp:11, from /usr/local/include/boost/python/errors.hpp:13, from /usr/local/include/boost/python/handle.hpp:11, from /usr/local/include/boost/python/args_fwd.hpp:10, from /usr/local/include/boost/python/args.hpp:10, from /usr/local/include/boost/python.hpp:11, from /home/z840/caffe_tsn/lib/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/z840/caffe_tsn/lib/dense_flow/src/py_denseflow.cpp:8:0: /home/z840/caffe_tsn/3rd-party/opencv-2.4.13/modules/gpu/include/opencv2/gpu/gpu.hpp:2516: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/local/include/boost/function/function_base.hpp:16, from /usr/local/include/boost/function/detail/prologue.hpp:17, from /usr/local/include/boost/function/function_template.hpp:13, from /usr/local/include/boost/function/detail/maybe_include.hpp:15, from /usr/local/include/boost/function/function0.hpp:11, from /usr/local/include/boost/python/errors.hpp:13, from /usr/local/include/boost/python/handle.hpp:11, from /usr/local/include/boost/python/args_fwd.hpp:10, from /usr/local/include/boost/python/args.hpp:10, from /usr/local/include/boost/python.hpp:11, from /home/z840/caffe_tsn/lib/dense_flow/src/py_denseflow.cpp:2: /usr/include/c++/5/bits/unique_ptr.h:49:28: note: declared here template class auto_ptr; ^ CMakeFiles/Makefile2:67: 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 Failed to build Dense Flow. Please check the logs above.

I don't know where the problem is, can you give me some advice?Thanks Looking forward to your reply Best wishes