Ask Your Question

Revision history [back]

Need help setting up with Netbeans

I am new to OpenCV and just began setting it up on my Windows XP 32-bit system. I downloaded Cygwin and set Netbeans up to use it. I then downloaded the latest version of OpenCV, 2.4.6, from the Sourceforge page and extracted the contents to C:\opencv246. I modified my "path" environment variable to include C:\opencv246\build\x86\vc10\bin. I created a new project in Netbeans and under "Include Directories" I added:

C:\opencv246\build\include\opencv C:\opencv246\build\include\opencv2 C:\opencv246\build\include C:\opencv246\include

I then went under "Additional Library Directories" and added:

C:\opencv246\build\x86\vc10\lib

And then went under "Additional Dependencies" and added:

opencv_core246d.lib

Once this was done, I could write code without any errors, but when I tried to Build/Run it, the build failed, and Netbeans gave me this:

make[2]: *** No rule to make target 'opencv_core246d.lib', needed by 'dist/Debug/Cygwin_4.x-Windows/opencvtest.exe'. Stop 
make[1]: *** [.build-conf] Error 2 
make: *** [.build-impl] Error 2

and then eventually

BUILD FAILED (exit value 2, total time: 17s)

Can anyone identify what I've done wrong? I've viewed many tutorials on setup, but none have eliminated the issue. Any help would be terrific!