MhLiao / TextBoxes

TextBoxes: A Fast Text Detector with a Single Deep Neural Network
https://github.com/MhLiao/TextBoxes
Other
633 stars 154 forks source link

Make failed #71

Closed kli017 closed 1 year ago

kli017 commented 7 years ago

hello I was trying to complie the project and I have met some problem, first it shows there are something wrong with cudnn. Because I am using cudnn7 so I replaced the cudnn.hpp with the newest version one in caffe. and after it shows below error:

CXX src/caffe/internal_thread.cpp src/caffe/internal_thread.cpp:41:6: error: prototype for ‘void caffe::InternalThread::entry(int, caffe::Caffe::Brew, int, int, bool)’ does not match any in class ‘caffe::InternalThread’ void InternalThread::entry(int device, Caffe::Brew mode, int rand_seed, ^ In file included from src/caffe/internal_thread.cpp:4:0: ./include/caffe/internal_thread.hpp:45:8: error: candidate is: void caffe::InternalThread::entry(int, caffe::Caffe::Brew, int, int, int, bool) void entry(int device, Caffe::Brew mode, int rand_seed, ^ In file included from /usr/include/boost/bind.hpp:22:0, from /usr/include/boost/thread/detail/thread.hpp:30, from /usr/include/boost/thread/thread_only.hpp:22, from /usr/include/boost/thread/thread.hpp:12, from /usr/include/boost/thread.hpp:13, from src/caffe/internal_thread.cpp:1: /usr/include/boost/bind/bind.hpp: In instantiation of ‘void boost::_bi::list6<A1, A2, A3, A4, A5, A6>::operator()(boost::_bi::type, F&, A&, int) [with F = void (caffe::InternalThread::)(int, caffe::Caffe::Brew, int, int, int, bool); A = boost::_bi::list0; A1 = boost::_bi::value<caffe::InternalThread>; A2 = boost::_bi::value; A3 = boost::_bi::value; A4 = boost::_bi::value; A5 = boost::_bi::value; A6 = boost::_bi::value]’: /usr/include/boost/bind/bind_template.hpp:20:59: required from ‘boost::_bi::bind_t<R, F, L>::result_type boost::_bi::bind_t<R, F, L>::operator()() [with R = void; F = void (caffe::InternalThread::)(int, caffe::Caffe::Brew, int, int, int, bool); L = boost::_bi::list6<boost::_bi::value<caffe::InternalThread>, boost::_bi::value, boost::_bi::value, boost::_bi::value, boost::_bi::value, boost::_bi::value >; boost::_bi::bind_t<R, F, L>::result_type = void]’ /usr/include/boost/thread/detail/thread.hpp:116:17: required from ‘void boost::detail::thread_data::run() [with F = boost::_bi::bind_t<void, void (caffe::InternalThread::)(int, caffe::Caffe::Brew, int, int, int, bool), boost::_bi::list6<boost::_bi::value<caffe::InternalThread>, boost::_bi::value, boost::_bi::value, boost::_bi::value, boost::_bi::value, boost::_bi::value > >]’ src/caffe/internal_thread.cpp:66:1: required from here /usr/include/boost/bind/bind.hpp:596:35: error: no match for call to ‘(boost::_mfi::dm<void(int, caffe::Caffe::Brew, int, int, int, bool), caffe::InternalThread>) (caffe::InternalThread&, int&, caffe::Caffe::Brew&, int&, int&, bool&)’ unwrapper::unwrap(f, 0)(a[basetype::a1], a[basetype::a2], a[basetype::a3], a[basetype::a4], a[basetype::a5], a[basetype::a6]); ^ In file included from /usr/include/boost/mem_fn.hpp:22:0, from /usr/include/boost/bind/bind.hpp:26, from /usr/include/boost/bind.hpp:22, from /usr/include/boost/thread/detail/thread.hpp:30, from /usr/include/boost/thread/thread_only.hpp:22, from /usr/include/boost/thread/thread.hpp:12, from /usr/include/boost/thread.hpp:13, from src/caffe/internal_thread.cpp:1: /usr/include/boost/bind/mem_fn.hpp:340:9: note: candidate: R& boost::_mfi::dm<R, T>::operator()(T) const [with R = void(int, caffe::Caffe::Brew, int, int, int, bool); T = caffe::InternalThread] R & operator()(T p) const ^ /usr/include/boost/bind/mem_fn.hpp:340:9: note: candidate expects 1 argument, 6 provided /usr/include/boost/bind/mem_fn.hpp:345:15: note: candidate: const R& boost::_mfi::dm<R, T>::operator()(const T) const [with R = void(int, caffe::Caffe::Brew, int, int, int, bool); T = caffe::InternalThread] R const & operator()(T const * p) const ^ /usr/include/boost/bind/mem_fn.hpp:345:15: note: candidate expects 1 argument, 6 provided /usr/include/boost/bind/mem_fn.hpp:350:33: note: candidate: template const R& boost::_mfi::dm<R, T>::operator()(const U&) const [with U = U; R = void(int, caffe::Caffe::Brew, int, int, int, bool); T = caffe::InternalThread] template R const & operator()(U const & u) const ^ /usr/include/boost/bind/mem_fn.hpp:350:33: note: template argument deduction/substitution failed: In file included from /usr/include/boost/bind.hpp:22:0, from /usr/include/boost/thread/detail/thread.hpp:30, from /usr/include/boost/thread/thread_only.hpp:22, from /usr/include/boost/thread/thread.hpp:12, from /usr/include/boost/thread.hpp:13, from src/caffe/internal_thread.cpp:1: /usr/include/boost/bind/bind.hpp:596:35: note: candidate expects 1 argument, 6 provided unwrapper::unwrap(f, 0)(a[basetype::a1], a[basetype::a2], a[basetype::a3], a[basetype::a4], a[basetype::a5], a[basetype::a6]); ^ In file included from /usr/include/boost/mem_fn.hpp:22:0, from /usr/include/boost/bind/bind.hpp:26, from /usr/include/boost/bind.hpp:22, from /usr/include/boost/thread/detail/thread.hpp:30, from /usr/include/boost/thread/thread_only.hpp:22, from /usr/include/boost/thread/thread.hpp:12, from /usr/include/boost/thread.hpp:13, from src/caffe/internal_thread.cpp:1: /usr/include/boost/bind/mem_fn.hpp:357:9: note: candidate: R& boost::_mfi::dm<R, T>::operator()(T&) const [with R = void(int, caffe::Caffe::Brew, int, int, int, bool); T = caffe::InternalThread] R & operator()(T & t) const ^ /usr/include/boost/bind/mem_fn.hpp:357:9: note: candidate expects 1 argument, 6 provided /usr/include/boost/bind/mem_fn.hpp:362:15: note: candidate: const R& boost::_mfi::dm<R, T>::operator()(const T&) const [with R = void(int, caffe::Caffe::Brew, int, int, int, bool); T = caffe::InternalThread] R const & operator()(T const & t) const ^ /usr/include/boost/bind/mem_fn.hpp:362:15: note: candidate expects 1 argument, 6 provided Makefile:575: recipe for target '.build_release/src/caffe/internal_thread.o' failed

Anyone help?