I am trying to access OpenCV methods from the KISS IDE (v. 4.0.5), running on the Link (firmware 1.9.5). Here is my test program:
// Created on Thu June 20 2013 #include <iostream> #include <kovan/camera.hpp> #include <opencv2/opencv.hpp> using namespace std; using namespace cv; int main(int argc, char *argv[]) { // Mat image; Camera::Device camera; camera.open(); VideoCapture *cap = camera.videoCapture(); cout << cap->grab() << endl; camera.close(); }
in order to do a cap->retrieve(image), I get a compile-time (linker) error indicating that there is an undefined reference to cv::fastFree(void*). Here is the full error message:
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.5.4./../../../../arm-angstrom-linux-gnueabi/bin/ld: nogood4.cpp.o: underfined reference to symbol 'cv::fastFree(void*);
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.5.4./../../../../arm-angstrom-linux-gnueabi/bin/ld: note: 'cv::fastFree(void*)' is defined in DSO /usr/lib/libopencv_core.so.2.4 so try adding it to the linker command line
/usr/lib/libopencv_core.so.2.4: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
Am I doing something wrong? Is there some easy way to access the OpenCV library on the Link?
Thanks in advance!
Hi David,
KISS IDE 4.1 will address this issue through a project system with build options (hopefully available in the next few days). I'll update instructions for OpenCV on this topic once it's available.
Braden McDorman
Developer of the KIPR Link, KISS IDE, KIPR's 2D Simulator, and CBCJVM.
Reach me at bmcdorman(cat)kipr(dog)org where (cat)=@ and (dog)=. if you need assistance of any kind.