Я пытаюсь запустить через Firebreath tutorial, но я не могу заставить Cmake работать. Cmake не регистрирует ни одну версию Visual Studios в списке Generators
. Это список при запуске cmake --help
:Cmake не находит Visual Studios 2012 в списке генераторов
Generators
The following generators are available on this platform:
Unix Makefiles = Generates standard UNIX makefiles.
Ninja = Generates build.ninja files (experimental).
CodeBlocks - Ninja = Generates CodeBlocks project files.
CodeBlocks - Unix Makefiles = Generates CodeBlocks project files.
Eclipse CDT4 - Ninja = Generates Eclipse CDT 4.0 project files.
Eclipse CDT4 - Unix Makefiles
= Generates Eclipse CDT 4.0 project files.
KDevelop3 = Generates KDevelop 3 project files.
KDevelop3 - Unix Makefiles = Generates KDevelop 3 project files.
Sublime Text 2 - Ninja = Generates Sublime Text 2 project files.
Sublime Text 2 - Unix Makefiles
= Generates Sublime Text 2 project files.
Я переустанавливать CMake, установка визуального студии 2010 и 2012 (Express и профессиональные издания), и даже деинсталлировать и повторно установлен .NET 4.0 до 4.5 (from here) , Он отлично работает на моем персональном компьютере, так как я его запускал с первого раза. Однако мой рабочий ноутбук просто не регистрирует Visual Studios.
Я запускаю его как на Windows 7 Enterprise SP1. Любая помощь приветствуется.
Вот точная ошибка я получаю:
C:\code\tutorial2\TutorialTestPlugin>firebreath\prep2012.cmd . build
A subdirectory or file build already exists.
Using projects in: "C:\code\tutorial2\TutorialTestPlugin"
Generating build files in: "C:\code\tutorial2\TutorialTestPlugin\build"
NOTE: The build files in "C:\code\tutorial2\TutorialTestPlugin\build" should *NE
VER* be modified directly.
When needed, make project changes in cmake files and re-run this script.
Project-specific cmake files are found in [plugin dir]\CMakeLists.txt and
[plugin dir]\Win\projectDef.cmake.
Note that parameters for cmake should be enclosed in double quotes, e.g. "-DVERB
OSE=1"
CMAKE parameters:
C:\code\tutorial2\TutorialTestPlugin\build>cmake -G "Visual Studio 11" -DFB_PROJ
ECTS_DIR="C:\code\tutorial2\TutorialTestPlugin" "C:\code\tutorial2\TutorialTest
Plugin\firebreath"
CMake Error: Could not create named generator Visual Studio 11
cygwin warning:
MS-DOS style path detected: C:\code\tutorial2\TutorialTestPlugin\firebreath
Preferred POSIX equivalent is: /cygdrive/c/code/tutorial2/TutorialTestPlugin/f
irebreath
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
Вы говорите об использовании cygwin-версии cmake, а не о версии, загруженной для окон с cmake.org? – drescherjm
Я только что установил cygwin-версию cmake и, похоже, не имеет генераторов для Visual Studio. Вам нужно создать свой проект визуальной студии внутри cygwin? – drescherjm
Я загрузил и использовал 'cmake-2.8.12.1-win32-x86.exe' off cmake.org. Использовал этот установщик на обеих машинах, и он работает только на моем персональном компьютере. Я не уверен, нужен ли мне cygwin, поскольку я как бы новичок в них и просто следовал за учебником. – bunndan