Getting Caffe installed

415 views
Skip to first unread message

Ian Ono

unread,
Aug 4, 2017, 11:19:11 AM8/4/17
to Caffe Users
Hi,

I'm trying to install Caffe (CPU only) on windows 7 platform following https://github.com/BVLC/caffe/tree/windows.  I have CMake and Visual Studio 2017 installed.  When I run the build_win.cmd I get the following errors:
The system cannot find the path specified.
CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error:  CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error:  CMAKE_CXX_COMPILER not set, after EnableLanguage
ERROR:  Configure failed

So which path needs to be set (or how can I find out which path)
What is Ninja?  Do I really need it?  If not how do I get around it.
How do I set my compilers (or is that a path problem)?

Ian

Ian Mccallum

unread,
Aug 7, 2017, 4:05:53 AM8/7/17
to Caffe Users
Hi Ian,
I am having similar problems - trying to install Caffe.
I think however you need to use Visual Studio 2015 and not 2017. You will see the prebuilt binaries are only for python 3.5 and visual studio 2015 - but i could be wrong.

re. ninja,
maybe first try to set WITH_NINJA=0 in build_win.cmd - this will prevent Ninja from being used - see below.

Using the Ninja generator

You can choose to use the Ninja generator instead of Visual Studio for faster builds. To do so, change the option set WITH_NINJA=1 in the build_win.cmd script. To install Ninja you can download the executable from github or install it via conda:


https://github.com/BVLC/caffe/tree/windows

Ian Ono

unread,
Aug 7, 2017, 5:00:09 PM8/7/17
to Caffe Users
Hi,

I thought I read some where that Visual Studio 2017 is only a problem if you want to run CUDA with it.  I had thought by running CPU only I could get around that.  Anyhow I am trying to get my hands on a copy of VS 2015.

Thanks for your help.  I hope your problems gets solved.

Ian

Kenny bhfs

unread,
Aug 11, 2017, 8:14:20 AM8/11/17
to Caffe Users


在 2017年8月5日星期六 UTC+10上午1:19:11,Ian Ono写道:
Try using VS instead of NINJA 
Reply all
Reply to author
Forward
0 new messages