Код: Выделить всё
g++ $(pkg-config opencv4 --cflags --libs) -o g++ $(pkg-config raspicam --cflags --libs) -o cam_test cam_test.cpp (in directory: /home/irfan/Desktop)
/usr/bin/ld: /tmp/ccwBZg65.o: in function `main': cam_test.cpp:(.text+0x14): undefined reference to `raspicam::RaspiCam_Cv::RaspiCam_Cv()'
/usr/bin/ld: cam_test.cpp:(.text+0x3c): undefined reference to `raspicam::RaspiCam_Cv::open()'
/usr/bin/ld: cam_test.cpp:(.text+0x9c): undefined reference to `raspicam::RaspiCam_Cv::getId[abi:cxx11]() const'
/usr/bin/ld: cam_test.cpp:(.text+0xd8): undefined reference to `raspicam::RaspiCam_Cv::~RaspiCam_Cv()'
/usr/bin/ld: cam_test.cpp:(.text+0x108): undefined reference to `raspicam::RaspiCam_Cv::~RaspiCam_Cv()'
collect2: error: ld returned 1 exit status
Compilation failed.
Я пытаюсь решить проблему с ошибкой при компиляции
Подробнее здесь: https://stackoverflow.com/questions/782 ... -camera-id
Мобильная версия