Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
haeseonii opened this issue Apr 1, 2017 · 6 comments
Open

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

haeseonii opened this issue Apr 1, 2017 · 6 comments
Assignees

Comments

@haeseonii
Copy link

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.

@willyd
Copy link
Owner

willyd commented Apr 1, 2017

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

@willyd willyd self-assigned this Apr 1, 2017
@haeseonii
Copy link
Author

haeseonii commented Apr 1, 2017

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.

@AvenSun
Copy link

AvenSun commented May 2, 2017

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

@Batlad
Copy link

Batlad commented May 24, 2017

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.

@Coderx7
Copy link

Coderx7 commented Oct 6, 2018

@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

@vera121
Copy link

vera121 commented Aug 2, 2019

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants