thor icon indicating copy to clipboard operation
thor copied to clipboard

/usr/bin/ld: thor_simple.cpp:(.text+0xc61): undefined reference to `thor::iter::ImageSourceIter<cv::Mat>::next()'

Open GeLink9999 opened this issue 3 years ago • 1 comments

I have tried to make your examples thor_demo.cpp. But i have met a small issue.

I have copied the libthor.so from /usr/local/lib to the current example file. When make, it shows: /usr/bin/ld: thor_simple.cpp:(.text+0xc61): undefined reference to `thor::iter::ImageSourceItercv::Mat::next()'

why does it cannot find ImageSourceIter? I am wondering if libthor.so includes ImageSourceIter. inside cmakelists.txt, it shows: add_executable(thor_simple thor_simple.cpp) target_link_libraries(thor_simple libthor.so ${Protobuf_LIBRARIES} thor)

GeLink9999 avatar May 08 '22 04:05 GeLink9999

Hi,I renewed the project, now the example demo will be build with build_simple.sh. For usage, it should stay the same.

lucasjinreal avatar May 08 '22 08:05 lucasjinreal