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 8122771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T05:56:22+00:00 2026-06-06T05:56:22+00:00

I have looked around for quite some time trying to get openCV installed. I’m

  • 0

I have looked around for quite some time trying to get openCV installed. I’m using windows 7, VS2010 C# Express and cmake 2.8.8. For all the tutorials found online, one would simply need to specify the source code path (understood to be the path where opencv folder was extracted) and then the binaries path (understood to be where the openCV source code is to be built, possibly a new directory). The problem is that after populating the source code and binaries’ paths, and hitting “configure” the error

“cmake error:Error in configuration files. Project Files may be invalid”

occurs.For a further detailed error log, below was displayed:

CMake Error: Cannot open file for write: C:/Program Files (x86)/opencv/build/CMakeCache.txt.tmp
CMake Error: CMake was unable to find a build program corresponding to “Visual Studio 10”. CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: Could not find cmake module file:C:/Program Files (x86)/opencv/build/CMakeFiles/CMakeCXXCompiler.cmake
CMake Error: Could not find cmake module file:C:/Program Files (x86)/opencv/build/CMakeFiles/CMakeCCompiler.cmake
Configuring incomplete, errors occurred!
CMake Error: Cannot open file for write: C:/Program Files (x86)/opencv/build/CMakeCache.txt.tmp
CMake Error: : System Error: Permission denied
CMake Error: Unable to open cache file for save. C:/Program Files (x86)/opencv/build/CMakeCache.txt
CMake Error: : System Error: Permission denied
CMake Error: : System Error: No such file or directory
CMake Error: Unable to open cache file for save. C:/Program Files (x86)/opencv/build/CMakeCache.txt
CMake Error: : System Error: No such file or directory


My guess from what I digested online was that there may be incompatibility with cmake and opencv (cmake’s installed as x86; opencv as x64bit) and thus I re-downloaded openCV for the 32bit version (I’m running on a 64bit pc though) but still no progress (it would still not configure resulting in the error).
Here is the one I’ve installed (the win32 suffixed-one) for reference purposes http://sourceforge.net/projects/opencvlibrary/files/opencv-win/2.4.1/ .

It might also be worth the mention that there appeared a multitude of “cannot open file …” messages while extracting openCV (for eg. “Cannot open output file directory goes here\opencv_objdetect240.dll”). This seemed to be for about all the files(the error was repeated as far as I remember almost in every line while extracting, for a different file per line).

This is my first encounter with cmake, and thus am not really acquainted with the steps. I found some instructions directed towards the “CMakeLists.txt” (which was already included in the extracted folder) but do not fully comprehend them. One rather detailed reference was http://thebitbangtheory.wordpress.com/2011/10/24/how-to-use-cmake-with-opencv/ . However I felt steps were not detailed enough (namely steps 3-6). Of the ambiguities, for a cmake novice as myself, was what the “project” refers to, isn’t this done once to be able to compile all C# projects that include opencv?

In all cases given the above background, the question is: how can one install openCV to VS2010 C#, overcoming the cmake configuration error (or how could such error be fixed)?


Notes:

  • I have not reliably documented the exact wording of the preliminary
    error (before re-extracting the 32-bit version), but it was as far as
    I recall as that occurring at the moment, the one quoted above.
  • I realise there was a similarly-titled question ( cmake error:Error in configuration files. Project Files may be invalid );
    however the answer did not seem to meet the given situation; then
    again, I could be wrong.

Thank you very much for your time.

  • 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-06-06T05:56:26+00:00Added an answer on June 6, 2026 at 5:56 am

    OpenCV is a C++ project. And it is not possible to compile it with VS2010 C#.

    If want to develop with C# then take a look into EmguCV project which wraps OpenCV for C#/.Net.

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

Sidebar

Related Questions

I have looked around SO and the web for quite some time now and
I have looked around quite a bit and can't seem to get working a
Sorry if this is obvious but have looked around and can't get this working:
I've got zero experience with Python. I have looked around some tutorial materials, but
Hey guys, looked around but couldn't quite get an answer or figure it myself.
I have looked around but cannot seem to find anything quite like i need.
I have looked around for some resources relating to Apple's StoreKit framework on the
I have a series of draggable images and some droppable folders. I'm looked around
I have looked around quite a bit, and nothing seems to answer my question
I have looked around and found various geocoding examples using Googles API and I

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.