Problems with OpenCV 2.4.5 and MonoDevelop
Hello everyone,
I'm using Linux Mint KDE and I want to give OpenCV a try for the creation of small image processing applications, basically for tasks as resizing, renaming, copying, etc... a bunch of images with exactly the parameters, names etc. as I want. Actually, there are some ready-to-use programs that can also deal with these tasks (XnView for example), but they all cannot do exactly what I want them to. That's why I was looking for a free-to-use image processing library.
So I followed the Linux installation instructions and also tried to compile an example using CMake. Everything seems to work fine, so i tried to use OpenCV with MonoDevelop - and that's where i need some help.
First I tried to create a new C++ shell application with MonoDevelop and pasted in the example code which runs fine with CMake - compile erros. Ok, so i deleted some code to create at least one small running example:
#include <stdio.h>
#include <opencv2/opencv.hpp>
using namespace cv;
int main( int argc, char** argv )
{
//Mat image;
return 0;
}
This code compiles with MonoDevelop, but it's obviously not that useful... but at least it shows that OpenCV is found. Ok, next step: uncomment the line '//Mat image;'. This results in the following two compile errors:
- mat.hpp, Line 367: 'undefined reference to cv::Mat::deallocate()'
- mat.hpp, Line 278: 'undefined reference to cv::fastFree(void*)'
Double-clicking on these two erros opens mat.hpp at /usr/local/include/opencv2/core/ and shows the errors in line 278 and 367, respectively, which also shows that OpenCV is found. Now I don't know any further.... does anyone know how to fix these issues?
Thanks in advance... :-)