Skip to content

cmake error The source directory is a file, not a directory. #39

Description

@haeseonii

I apologize if this is the wrong place to ask this.
I successfully (I think) ran build_v140_x64.cmd and the necessary directories/files are generated.
I am trying to run cmake as stated in the readme, but it is failing.
I am pretty new to this, so I might be doing something wrong, but could you please help? Thanks!

C:\Projects\caffe\build>cmake -G Ninja -C C:\Projects\caffe-builder\build\libraries\caffe-builder-config.cmake
loading initial cache file C:\Projects\caffe-builder\build\libraries\caffe-builder-config.cmake
CMake Error: The source directory "C:/Projects/caffe-builder/build/libraries/caffe-builder-config.cmake" is a
file, not a directory.
Specify --help for usage, or press the help button on the CMake GUI.

Activity

  1. willyd commented on Apr 1, 2017

    @willyd
    Owner

    There is a typo in the README you need to add your source directory at the end like so:

    C:\Projects\caffe\build>cmake -G Ninja -C C:\Projects\caffe-builder\build\libraries\caffe-builder-config.cmake c:\path\to\src
    
  2. self-assigned this
    on Apr 1, 2017
  3. haeseonii commented on Apr 1, 2017

    @haeseonii
    Author

    Thank you for such a fast reply. Sorry, but what should be the source directory?

    Also, should there by libraries directory under Project\caffe\build\ ? For some reason, I don't have one.

  4. AvenSun commented on May 2, 2017

    @AvenSun

    @haeseonii it should be the the source directory of Caffe you wanna compile.

  5. Batlad commented on May 24, 2017

    @Batlad

    Looking forward to having this added to the read.me
    Another thing which would be super useful to add to the end is a minimum viable project which allows the user to test that their installation and compilation has succeeded, maybe in python.

  6. Coderx7 commented on Oct 6, 2018

    @Coderx7

    @adesun Hi, do you mean the root of caffe or the caffe_root/src/caffe ?
    Why is it needed to do so?
    Thanks alot in advance

  7. vera121 commented on Aug 2, 2019

    @vera121

    Found it (i.e. the "c:\path\to\src") shoud mean the root of caffe, which has the CMakeLists.txt in the folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions