Ask Your Question

Revision history [back]

Hi , I have installed opencv on MAC using macports.

I am trying my first test program :

//#include <opencv2 opencv.hpp="">

include <iostream>

int main(int argc, const char * argv[]) {

// insert code here...
std::cout << "Hello, World!\n";
return 0;

}

But below error comes !!

ld: library not found for -lopencv_legacy.2.4.8 error: linker command failed with exit code 1 (use -v to see invocation)

Hi , I have installed opencv on MAC using macports.

I am trying my first test program :

//#include <opencv2 opencv.hpp="">

<opencv2/opencv.hpp> #include <iostream>

include <iostream>

int main(int argc, const char * argv[]) {

{
    // insert code here...
 std::cout << "Hello, World!\n";
 return 0;
}

}

But below error comes !!

ld: library not found for -lopencv_legacy.2.4.8
 error: linker command failed with exit code 1 (use -v to see invocation)

invocation)