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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:08:14+00:00 2026-06-05T07:08:14+00:00

Every time I try to build, I get the error: CMake Error: The source

  • 0

Every time I try to build, I get the error:

CMake Error: The source directory “E:/Code/Test” does not appear to contain CMakeLists.txt.
Specify –help for usage, or press the help button on the CMake GUI.

Which doesn’t make a ton of sense, because I very clearly have CMakeLists.txt included in that directory. I tried looking for this problem on the internet, but it seems that I might be the only person to ever have this issue. Has anyone run across this issue before?

Is there an easier way to be integrating OpenCV? I’ve got a copy of Visual Studio, but the OpenCV wiki says that it’s not supported any longer.

I’m on Windows 7, using the CMake-GUI

The guide I’ve followed to try and get started with this can be found here: http://redkiing.wordpress.com/2010/10/03/opencv-and-visual-studio-2010-with-cmake/

EDIT

I ended up using the prebuilt OpenCV for Windows.

  • 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-05T07:08:15+00:00Added an answer on June 5, 2026 at 7:08 am

    If you can definitely open E:/Code/Test/CMakeLists.txt in a text editor, then this is a bug with CMake GUI I guess. You could try re-installing CMake. If that still fails, you could ask on the CMake mailing list and/or file a bug report.

    If you want to try without the CMake GUI, you can open a Visual Studio command prompt and work from there.

    • Go to build directory (where to build the binaries – create it first if need be)

      cd E:/Code/Test
      mkdir build
      cd E:/Code/Test/build
      
    • Invoke CMake with the appropriate generator. To see the full list of generators, run cmake -h

      cmake .. -G"Visual Studio 10"
      
    • Show options

      cmake .. -L
      
    • Set options. e.g. to switch BUILD_SHARED_LIBS off, do:

      cmake .. -DBUILD_SHARED_LIBS:BOOL=OFF
      

    Any options set this way are cached, and will remain unchanged for any further runs of CMake. If you want to see help info for each cached option, do cmake .. -LH.

    The end result will be a VS solution E:/Code/Test/buildOpenCV.sln

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

Sidebar

Related Questions

My script does not seem to be working. Every time i try to use
Every time I try to compile my code, I get a huge amount of
Has anyone managed to build Erlang on OpenSolaris? Every time I try I get:
I am getting a conversion error every time I try to submit a date
I'm getting the following error every time I try to export my application from
Every time try to set the value of any variable in my model object,
Every time I try to post to twitter in my rails app, the first
For some reason every time I try to count the number of rows in
I have one particular FLA that is crashing every time I try to compile
I'm using VS2008 (with windows XP). Every time I try to run a unit

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.