cmake error The source directory is a file, not a directory.
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.
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
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 it should be the the source directory of Caffe you wanna compile.
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.
@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
Found it (i.e. the "c:\path\to\src") shoud mean the root of caffe, which has the CMakeLists.txt in the folder.