I got the files to build but with this link

http://www.site.uottawa.ca/~laganier/tutorial/opencv+directshow/cvision.htm

the include files in step 2 don't show up anywhere.
Help appreciated.

Dani AI

Generated

Thread recap and practical checklist: reported that OpenCV 2.0 header files were not being found; pointed toward the Visual Studio project settings that control compiler include paths. The suggestion is correct but incomplete — the usual blockers are (1) pointing the project at the wrong folder inside the OpenCV install, (2) mixing 32/64-bit or compiler versions, (3) forgetting to add the matching library files, or (4) not making the DLLs available at run time.

Recommended steps (project-level, not global):

  • Locate the OpenCV installation’s top-level include directory and confirm presence of headers such as the C++ headers (for example core/highgui headers) or legacy C headers.
  • Add that include directory to the project’s compiler include paths (Project Properties → C/C++ → General).
  • Add the appropriate lib directory for the Visual Studio toolset and target architecture to the linker library paths, then list the .lib filenames for the modules being used (link release libs for release builds, debug libs — usually with a trailing d — for debug).
  • Ensure the OpenCV DLLs are either on the system PATH or copied next to the executable so the program runs.

Typical include directives for OpenCV 2.x (use either the single umbrella header or module headers):

#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>

Troubleshooting notes: match the Visual Studio version and x86/x64 build of the OpenCV binaries; restart Visual Studio after changing project properties if Intellisense still fails; unresolved externals usually mean missing .lib entries or wrong build (debug vs release). For a full, step‑by‑step walkthrough of Windows/Visual Studio setup for OpenCV 2.x, see the OpenCV Windows install guide and Microsoft documentation on setting include paths: OpenCV Windows install tutorial and .

Recommended Answers

All 4 Replies

It's been a while since I've used OpenCV, but doesn't it come with ready-to-go VS-examples in the examples directory?

[edit]
And include-files is now called "Additional include directories" in VS

none of these include directives exist at least in 2.0. I can't find what files to include.

The includefiles are in "x:\......\OpenCV2.0\include\opencv\"

thanks i will try that.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.