I can't compile the rs-dnn.cpp in linux. Please help me.
rs-dnn.cpp:(.text+0x11af): undefined reference to `cv::noArray()'
rs-dnn.cpp:(.text+0x1207): undefined reference to `cv::mean(cv::_InputArray const&, cv::_InputArray const&)'
rs-dnn.cpp:(.text+0x1380): undefined reference to `cv::rectangle(cv::Mat&, cv::Rect_<int>, cv::Scalar_<double> const&, int, int, int)'
rs-dnn.cpp:(.text+0x13fc): undefined reference to `cv::getTextSize(cv::String const&, int, double, int, int*)'
rs-dnn.cpp:(.text+0x1593): undefined reference to `cv::rectangle(cv::Mat&, cv::Rect_<int>, cv::Scalar_<double> const&, int, int, int)'
rs-dnn.cpp:(.text+0x1662): undefined reference to `cv::putText(cv::_InputOutputA
rs-dnn.cpp:(.text+0x1705): undefined reference to `cv::imshow(cv::String const&, cv::_InputArray const&)'
rs-dnn.cpp:(.text._ZNK3rs28pip
/tmp/ccAtO0ko.o: In function `rs2::pipeline::get_active_pro
rs-dnn.cpp:(.text._ZNK3rs28pip
rs-dnn.cpp:(.text._ZNK3rs28pip
/tmp/ccAtO0ko.o: In function `void rs2::frameset::foreach<rs2::fr
rs-dnn.cpp:(.text._ZNK3rs28fra
/tmp/ccAtO0ko.o: In function `std::enable_if<std::is_base_o
rs-dnn.cpp:(.text._ZNK3rs211fr
/tmp/ccAtO0ko.o: In function `void rs2::processing_block::start<r
rs-dnn.cpp:(.text._ZN3rs216pro
collect2: error: ld returned 1 exit status



-
Hello Sbo05050,
Do other RealSense samples that use OpenCV compile and function correctly?
What version of Linux and kernel are you using?
If rs-dnn is the only sample that does not work, then you should completely uninstall OpenCV and reinstall it, then try again.
Regards,
Alexandra
Please sign in to leave a comment.
Comments
6 comments