Ask Your Question
0

Hi , I have installed opencv on MAC using macports.

asked 2014-02-07 12:20:53 -0500

Mahla gravatar image

updated 2014-05-12 02:31:38 -0500

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)
edit retag flag offensive close merge delete

Comments

You have wrong linker settings. Do check the video, it is all explained right there.

StevenPuttemans gravatar imageStevenPuttemans ( 2014-05-12 02:33:09 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-05-11 10:47:52 -0500

Marsstar gravatar image

Watch and follow this video on Youtube: OpenCV 2.4.8 Installation in Mac 10.7.5 & Qt 5.0.1

This worked for me! : ;-)

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2014-02-07 12:20:53 -0500

Seen: 219 times

Last updated: May 12 '14