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

CMake Error: Could not create named generator Visual

Open HCIHKUST opened this issue 9 years ago • 1 comments

I compile caffe windows branch. My environment is win10, cmake 3.7, vs2015, cuda8.0, no ninjia.

The compile script is:

set CMAKE_GENERATOR=Visual Studio 14 2015 Win64 set CMAKE_CONFIGURATION=Release mkdir build cd build cmake -G%CMAKE_GENERATOR% -DBLAS=Open -DCMAKE_BUILD_TYPE=%CMAKE_CONFIGURATION% -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=%CAFFE_ROOT%\install -C %CAFFE_DEPENDENCIES%\caffe-builder-config.cmake ..
cmake --build . --config %CMAKE_CONFIGURATION% cmake --build . --config %CMAKE_CONFIGURATION% --target install

But it reports the error as shown in the title.

Could you help? Thanks.

HCIHKUST avatar Nov 06 '16 13:11 HCIHKUST

Try surrounding %CMAKE_GENERATOR% with double quotes like so "%CMAKE_GENERATOR%". Please note that installation questions should be asked on the mailing list.

willyd avatar Nov 06 '16 13:11 willyd