Hello everybody!
I have a Raspberry PI 3B with installed Rasbian OS on SD card.
I installed Opencv 4.2.0 on my device, but when I would like
to Build an example I become some errors:
displayimage.cpp:(.text+0x3c): undefined reference to cv::imread(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
/usr/bin/ld: displayimage.cpp:(.text+0x9c): undefined reference to
cv::imshow(std::__cxx11::basic_string<char, std::char_traits<char="">, std::allocator<char> > const&, cv::_InputArray const&)'
/usr/bin/ld: displayimage.cpp:(.text+0xc8): undefined reference to `cv::waitKey(int)'
...
My C++ code is very simple:
include <iostream>
include "opencv2/opencv.hpp"
using namespace cv; using namespace std;
int main(){ Mat img=imread("car.jpeg"); imshow("Car image", img); waitKey(0); return 0; } I checked the include files, and I made an simbolic link for opencv include files, so the compiler can see the header files. I checked also the lib, and bin files, I see everything is ok. I dont know what schould I do now. I dont have any idea. Can you help my?
Thanks