caffe-builder icon indicating copy to clipboard operation
caffe-builder copied to clipboard

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

Open haeseonii opened this issue 8 years ago • 6 comments

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.

haeseonii avatar Apr 01 '17 00:04 haeseonii

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 avatar Apr 01 '17 00:04 willyd

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.

haeseonii avatar Apr 01 '17 00:04 haeseonii

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

AvenSun avatar May 02 '17 16:05 AvenSun

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.

Batlad avatar May 24 '17 02:05 Batlad

@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

Coderx7 avatar Oct 06 '18 17:10 Coderx7

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

vera121 avatar Aug 02 '19 02:08 vera121