Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6770839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:21:40+00:00 2026-05-26T15:21:40+00:00

I have windows 7 (64-bit) and I am trying to configure opencv 2.2 for

  • 0

I have windows 7 (64-bit) and I am trying to configure opencv 2.2 for Microsoft visual studio 2010, I followed the instructions given in the book OpenCV 2 Computer Vision Application Programming Cookbook , but it’s not working, I performed the following steps:

  1. Compile opencv 2.2 using cmake, (source code: C:/OpenCV-2.2.0, where to build binaries: C:/OpenCV-2.2.0/build)
  2. Open OpenCV.sln (which is made as a result of compiling by cmake in the folder C:\OpenCV-2.2.0\build), this is opened in visual studio, I build it (result of build: no errors, few warnings).
  3. Add new property sheet to my project, and in VC++ directories, under the “Include Directories “ I give the path of C:\OpenCV-2.2.0\include\opencv and under the “Library Directories” I give the path of my lib files i.e C:\OpenCV-2.2.0\build\lib\Debug.
  4. Within the linker tab under the Input, included the following Additional dependencies:

    opencv_core220d.lib

    opencv_highgui220d.lib

    opencv_features2d220d.lib

    opencv_calib3d220d.lib

According to the instructions on the book now everything should be configured correctly, but when I include header files,(after typing (Hash)include (angle bracket)) the intellisense only gives:

#include <cxcore.h>
#include <cv.h>

but instead it should had displayed

#include <opencv2/core/core.hpp>

and when I write

#include <opencv2/core/core.hpp>

it gives me error cannot open source file
“opencv2/core/core.hpp“ ,
if I include

#include <cv.h >

I got 11 errors:

1.  IntelliSense: cannot open source file "opencv2/core/core_c.h"   c:\opencv-    2.2.0\include\opencv\cv.h 63  1   

2.  IntelliSense: cannot open source file "opencv2/core/core.hpp"   c:\opencv-2.2.0\include\opencv\cv.h 64  1   

3.  IntelliSense: cannot open source file "opencv2/imgproc/imgproc_c.h" c:\opencv-2.2.0\include\opencv\cv.h 65  1   

4.  IntelliSense: cannot open source file "opencv2/imgproc/imgproc.hpp" c:\opencv-2.2.0\include\opencv\cv.h 66  1   

[The remaining errors are similar to the above errors.]

I have not included anything under the C/C++ -> General -> Additional Include Directories
in the property sheet, is there any need to include anything there ???

Can anybody please tell me, what I did wrong in the configuring process?

Is there any guide available specifically for configuring opencv 2.2 on windows 7 (64-bit) on visual studio 2010?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T15:21:41+00:00Added an answer on May 26, 2026 at 3:21 pm

    Maximus solution sounds like a spray and pray attempt.

    I cleanly only added [opencvDir]\include to my visual studio includes and it all worked really fine.
    Including with your syntax

    #include <opencv2/core/core.hpp>
    

    works just fine, thats how i do it. The rest of the steps I did was exactly what you described, except that I have different projects with different parallel opencv installations, so i did not add OpenCV to my global environment variable “PATH” but rather than that I selectively use OpenCV for each project by selection Project Properies (right click project, select properties) => Debugging => “Environment” : Set to PATH=$(SolutionDir)Dependencies\opencv2.2\x86\bin” (in my case), and “merge environment” to “yes”

    That is necessary so opencv finds its DLLs in case you link non-static.

    Hope that helps 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is on a 64 bit Windows Machine, also running Visual Studio 2010. A
Delphi 2010 Windows 7 - 64 bit. I have an app which is reasonably
I have Windows Vista 64-bit SP2. I am trying to use wxPython for GUI
I am trying to install mongodb on my local computer. I have windows 7
I have the source code for a 32-bit dll (Windows) that I am trying
I'm trying to install Feedparser 5.1 for Python 3.2, Windows 64 bit. I have
I have Windows 7 64 Bit Professional Edition on a computer I built myself
I have a Windows 7 64-bit PC and I am trying to install a
I have a win32 application. Trying to run in windows 7 64-bit OS in
I have windows 7 (64-bit) and just upgraded IE9 in my machine. I did

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.