Skip to content
This repository was archived by the owner on Oct 24, 2021. It is now read-only.
This repository was archived by the owner on Oct 24, 2021. It is now read-only.

Some questions about enviroments #3

@HigashikataZhangsuke

Description

@HigashikataZhangsuke

I am using the YOLO+KCF but I do not know the opencv version you used, so there will be two questions: If I use the detector you compiled before then I would get
./detect: symbol lookup error: ./detect: undefined symbol: _ZN8DetectorC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_i
and when I choose to compile by myself,there would be this error
In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33:0,
from /usr/include/c++/7/bits/allocator.h:46,
from /usr/include/c++/7/string:41,
from /usr/include/c++/7/stdexcept:39,
from /usr/include/c++/7/array:39,
from /usr/local/include/opencv4/opencv2/core/cvdef.h:722,
from /usr/local/include/opencv4/opencv2/core.hpp:52,
from /home/yzzhang/Downloads/Detect-Track/yolo_KCF/src/opencv.hpp:52,
from /home/yzzhang/Downloads/Detect-Track/yolo_KCF/src/main.cpp:1:
/usr/include/c++/7/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = _IplImage; _Args = {cv::Mat&}; _Tp = _IplImage]’:
/usr/include/c++/7/bits/alloc_traits.h:475:4: required from ‘static void std::allocator_traits<std::allocator<_CharT> >::construct(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, _Up*, _Args&& ...) [with _Up = _IplImage; _Args = {cv::Mat&}; _Tp = _IplImage; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<_IplImage>]’
/usr/include/c++/7/bits/shared_ptr_base.h:526:39: required from ‘std::_Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp>::_Sp_counted_ptr_inplace(_Alloc, _Args&& ...) [with _Args = {cv::Mat&}; _Tp = _IplImage; _Alloc = std::allocator<_IplImage>; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2]’
/usr/include/c++/7/bits/shared_ptr_base.h:637:4: required from ‘std::__shared_count<_Lp>::__shared_count(std::_Sp_make_shared_tag, _Tp*, const _Alloc&, _Args&& ...) [with _Tp = _IplImage; _Alloc = std::allocator<_IplImage>; _Args = {cv::Mat&}; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2]’
/usr/include/c++/7/bits/shared_ptr_base.h:1295:35: required from ‘std::__shared_ptr<_Tp, _Lp>::__shared_ptr(std::_Sp_make_shared_tag, const _Alloc&, _Args&& ...) [with _Alloc = std::allocator<_IplImage>; _Args = {cv::Mat&}; _Tp = _IplImage; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2]’
/usr/include/c++/7/bits/shared_ptr.h:344:64: required from ‘std::shared_ptr<_Tp>::shared_ptr(std::_Sp_make_shared_tag, const _Alloc&, _Args&& ...) [with _Alloc = std::allocator<_IplImage>; _Args = {cv::Mat&}; _Tp = _IplImage]’
/usr/include/c++/7/bits/shared_ptr.h:690:14: required from ‘std::shared_ptr<_Tp> std::allocate_shared(const _Alloc&, _Args&& ...) [with _Tp = _IplImage; _Alloc = std::allocator<_IplImage>; _Args = {cv::Mat&}]’
/usr/include/c++/7/bits/shared_ptr.h:706:39: required from ‘std::shared_ptr<_Tp> std::make_shared(_Args&& ...) [with _Tp = _IplImage; _Args = {cv::Mat&}]’
/home/yzzhang/Downloads/Detect-Track/yolo_KCF/src/yolo_v2_class.hpp:116:77: required from here
/usr/include/c++/7/ext/new_allocator.h:136:4: error: no matching function for call to ‘_IplImage::_IplImage(cv::Mat&)’
{ ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/opencv4/opencv2/core/core_c.h:48:0,
from /usr/local/include/opencv4/opencv2/imgproc/types_c.h:46,
from /usr/local/include/opencv4/opencv2/tracking/tracker.hpp:46,
from /usr/local/include/opencv4/opencv2/tracking.hpp:281,
from /home/yzzhang/Downloads/Detect-Track/yolo_KCF/src/tracking.hpp:46,
from /home/yzzhang/Downloads/Detect-Track/yolo_KCF/src/main.cpp:2:
/usr/local/include/opencv4/opencv2/core/types_c.h:327:1: note: candidate: _IplImage::_IplImage()
_IplImage
^~~~~~~~~
/usr/local/include/opencv4/opencv2/core/types_c.h:327:1: note: candidate expects 0 arguments, 1 provided
/usr/local/include/opencv4/opencv2/core/types_c.h:327:1: note: candidate: constexpr _IplImage::_IplImage(const _IplImage&)
/usr/local/include/opencv4/opencv2/core/types_c.h:327:1: note: no known conversion for argument 1 from ‘cv::Mat’ to ‘const _IplImage&’
/usr/local/include/opencv4/opencv2/core/types_c.h:327:1: note: candidate: constexpr _IplImage::_IplImage(_IplImage&&)
/usr/local/include/opencv4/opencv2/core/types_c.h:327:1: note: no known conversion for argument 1 from ‘cv::Mat’ to ‘_IplImage&&’
CMakeFiles/detect.dir/build.make:62: recipe for target 'CMakeFiles/detect.dir/src/main.cpp.o' failed
make[2]: *** [CMakeFiles/detect.dir/src/main.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/detect.dir/all' failed
make[1]: *** [CMakeFiles/detect.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions