2015-04-26 3 views
1

Я хотел установить apiaryio/drafter на окна. Я установил python 2.7 и visuall studio 12 «Полная версия». Необходимо было добавить некоторые папки в системный путь из-за того, что не нашли некоторые файлы, такие как mspdb110.dll. Но последняя проблема, связанная с «фатальной ошибкой LNK1104: невозможно открыть файл« kernel32.lib », не была решена даже путем добавления ее адреса в системный путь.Как установить Apiaryio Drafter в Windows 8?

Как его решить?

View of the errors

C:\WINDOWS\system32>cd C:\Users\MJZ\Documents\GitHub\drafter 

C:\Users\MJZ\Documents\GitHub\drafter>vcbuild.bat 
creating config.gypi 
creating config.mk 
creating makefiles 
Warning: Missing input files: 
./build\ext\snowcrash\..\..\..\ext\snowcrash\src\Version.h 
All OK. 
Project files generated. 
ERROR: Cannot determine the location of the VS Common Tools folder. 
Building Snow Crash... 
Build started 2015-05-02 9:27:50 AM. 
    1>Project "C:\Users\MJZ\Documents\GitHub\drafter\build\drafter.sln" on nod 
     e 1 (default targets). 
    1>ValidateSolutionConfiguration: 
     Building solution configuration "Release|Win32". 
    1>Project "C:\Users\MJZ\Documents\GitHub\drafter\build\drafter.sln" (1) is 
     building "C:\Users\MJZ\Documents\GitHub\drafter\build\test-libdrafter.v 
     cxproj.metaproj" (3) on node 1 (default targets). 
    3>Project "C:\Users\MJZ\Documents\GitHub\drafter\build\test-libdrafter.vcx 
     proj.metaproj" (3) is building "C:\Users\MJZ\Documents\GitHub\drafter\bu 
     ild\ext\snowcrash\libmarkdownparser.vcxproj" (4) on node 1 (default targ 
     ets). 
    4>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppBuil 
     d.targets(344,5): warning MSB8003: Could not find WindowsSDKDir variable 
     from the registry. TargetFrameworkVersion or PlatformToolset may be se 
     t to an invalid version number. [C:\Users\MJZ\Documents\GitHub\drafter\b 
     uild\ext\snowcrash\libmarkdownparser.vcxproj] 
    1>Project "C:\Users\MJZ\Documents\GitHub\drafter\build\drafter.sln" (1) is 
     building "C:\Users\MJZ\Documents\GitHub\drafter\build\drafter.vcxproj.m 
     etaproj" (2) on node 1 (default targets). 
    2>Project "C:\Users\MJZ\Documents\GitHub\drafter\build\drafter.vcxproj.met 
     aproj" (2) is building "C:\Users\MJZ\Documents\GitHub\drafter\build\ext\ 
     snowcrash\libsnowcrash.vcxproj" (5) on node 4 (default targets). 
    5>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppBuil 
     d.targets(344,5): warning MSB8003: Could not find WindowsSDKDir variable 
     from the registry. TargetFrameworkVersion or PlatformToolset may be se 
     t to an invalid version number. [C:\Users\MJZ\Documents\GitHub\drafter\b 
     uild\ext\snowcrash\libsnowcrash.vcxproj] 
    2>Project "C:\Users\MJZ\Documents\GitHub\drafter\build\drafter.vcxproj.met 
     aproj" (2) is building "C:\Users\MJZ\Documents\GitHub\drafter\build\libs 
     os.vcxproj" (7) on node 3 (default targets). 
    7>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppBuil 
     d.targets(344,5): warning MSB8003: Could not find WindowsSDKDir variable 
     from the registry. TargetFrameworkVersion or PlatformToolset may be se 
     t to an invalid version number. [C:\Users\MJZ\Documents\GitHub\drafter\b 
     uild\libsos.vcxproj] 
    2>Project "C:\Users\MJZ\Documents\GitHub\drafter\build\drafter.vcxproj.met 
     aproj" (2) is building "C:\Users\MJZ\Documents\GitHub\drafter\build\libd 
     rafter.vcxproj" (6) on node 2 (default targets). 
    6>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppBuil 
     d.targets(344,5): warning MSB8003: Could not find WindowsSDKDir variable 
     from the registry. TargetFrameworkVersion or PlatformToolset may be se 
     t to an invalid version number. [C:\Users\MJZ\Documents\GitHub\drafter\b 
     uild\libdrafter.vcxproj] 
    4>InitializeBuildStatus: 
     Creating "Release\obj\libmarkdownparser\libmarkdownparser.unsuccessful 
     build" because "AlwaysCreate" was specified. 
    7>InitializeBuildStatus: 
     Creating "Release\obj\libsos\libsos.unsuccessfulbuild" because "Always 
     Create" was specified. 
    5>InitializeBuildStatus: 
     Creating "Release\obj\libsnowcrash\libsnowcrash.unsuccessfulbuild" bec 
     ause "AlwaysCreate" was specified. 
    6>InitializeBuildStatus: 
     Creating "Release\obj\libdrafter\libdrafter.unsuccessfulbuild" because 
      "AlwaysCreate" was specified. 
    4>ClCompile: 
     All outputs are up-to-date. 
     Lib: 
     All outputs are up-to-date. 
     libmarkdownparser.vcxproj -> C:\Users\MJZ\Documents\GitHub\drafter\bui 
     ld\Release\lib\libmarkdownparser.lib 
     FinalizeBuildStatus: 
     Deleting file "Release\obj\libmarkdownparser\libmarkdownparser.unsucce 
     ssfulbuild". 
     Touching "Release\obj\libmarkdownparser\libmarkdownparser.lastbuildsta 
     te". 
    4>Done Building Project "C:\Users\MJZ\Documents\GitHub\drafter\build\ext\s 
     nowcrash\libmarkdownparser.vcxproj" (default targets). 
    3>Project "C:\Users\MJZ\Documents\GitHub\drafter\build\test-libdrafter.vcx 
     proj.metaproj" (3) is building "C:\Users\MJZ\Documents\GitHub\drafter\bu 
     ild\ext\snowcrash\libsundown.vcxproj" (8) on node 1 (default targets). 
    8>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppBuil 
     d.targets(344,5): warning MSB8003: Could not find WindowsSDKDir variable 
     from the registry. TargetFrameworkVersion or PlatformToolset may be se 
     t to an invalid version number. [C:\Users\MJZ\Documents\GitHub\drafter\b 
     uild\ext\snowcrash\libsundown.vcxproj] 
    8>InitializeBuildStatus: 
     Creating "Release\obj\libsundown\libsundown.unsuccessfulbuild" because 
      "AlwaysCreate" was specified. 
    7>ClCompile: 
     All outputs are up-to-date. 
    6>ClCompile: 
     All outputs are up-to-date. 
    5>ClCompile: 
     All outputs are up-to-date. 
    7>Lib: 
     All outputs are up-to-date. 
     libsos.vcxproj -> C:\Users\MJZ\Documents\GitHub\drafter\build\Release\ 
     lib\libsos.lib 
    6>Lib: 
     All outputs are up-to-date. 
     libdrafter.vcxproj -> C:\Users\MJZ\Documents\GitHub\drafter\build\Rele 
     ase\lib\libdrafter.lib 
    8>ClCompile: 
     All outputs are up-to-date. 
    5>Lib: 
     All outputs are up-to-date. 
    7>FinalizeBuildStatus: 
     Deleting file "Release\obj\libsos\libsos.unsuccessfulbuild". 
     Touching "Release\obj\libsos\libsos.lastbuildstate". 
    6>FinalizeBuildStatus: 
     Deleting file "Release\obj\libdrafter\libdrafter.unsuccessfulbuild". 
    7>Done Building Project "C:\Users\MJZ\Documents\GitHub\drafter\build\libso 
     s.vcxproj" (default targets). 
    6>FinalizeBuildStatus: 
     Touching "Release\obj\libdrafter\libdrafter.lastbuildstate". 
    5>Lib: 
     libsnowcrash.vcxproj -> C:\Users\MJZ\Documents\GitHub\drafter\build\Re 
     lease\lib\libsnowcrash.lib 
     FinalizeBuildStatus: 
     Deleting file "Release\obj\libsnowcrash\libsnowcrash.unsuccessfulbuild 
     ". 
     Touching "Release\obj\libsnowcrash\libsnowcrash.lastbuildstate". 
    6>Done Building Project "C:\Users\MJZ\Documents\GitHub\drafter\build\libdr 
     after.vcxproj" (default targets). 
    5>Done Building Project "C:\Users\MJZ\Documents\GitHub\drafter\build\ext\s 
     nowcrash\libsnowcrash.vcxproj" (default targets). 
    8>Lib: 
     All outputs are up-to-date. 
     libsundown.vcxproj -> C:\Users\MJZ\Documents\GitHub\drafter\build\Rele 
     ase\lib\libsundown.lib 
     FinalizeBuildStatus: 
     Deleting file "Release\obj\libsundown\libsundown.unsuccessfulbuild". 
     Touching "Release\obj\libsundown\libsundown.lastbuildstate". 
    8>Done Building Project "C:\Users\MJZ\Documents\GitHub\drafter\build\ext\s 
     nowcrash\libsundown.vcxproj" (default targets). 
    2>Project "C:\Users\MJZ\Documents\GitHub\drafter\build\drafter.vcxproj.met 
     aproj" (2) is building "C:\Users\MJZ\Documents\GitHub\drafter\build\draf 
     ter.vcxproj" (9) on node 3 (default targets). 
    9>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppBuil 
     d.targets(344,5): warning MSB8003: Could not find WindowsSDKDir variable 
     from the registry. TargetFrameworkVersion or PlatformToolset may be se 
     t to an invalid version number. [C:\Users\MJZ\Documents\GitHub\drafter\b 
     uild\drafter.vcxproj] 
    3>Project "C:\Users\MJZ\Documents\GitHub\drafter\build\test-libdrafter.vcx 
     proj.metaproj" (3) is building "C:\Users\MJZ\Documents\GitHub\drafter\bu 
     ild\test-libdrafter.vcxproj" (10) on node 2 (default targets). 
    10>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppBuil 
     d.targets(344,5): warning MSB8003: Could not find WindowsSDKDir variable 
     from the registry. TargetFrameworkVersion or PlatformToolset may be se 
     t to an invalid version number. [C:\Users\MJZ\Documents\GitHub\drafter\b 
     uild\test-libdrafter.vcxproj] 
    9>InitializeBuildStatus: 
     Touching "Release\obj\drafter\drafter.unsuccessfulbuild". 
    10>InitializeBuildStatus: 
     Touching "Release\obj\test-libdrafter\test-libdrafter.unsuccessfulbuil 
     d". 
    9>ClCompile: 
     All outputs are up-to-date. 
    10>ClCompile: 
     C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\CL.exe /c/
     I..\src /I..\test /I..\test\vendor\Catch\include /I..\ext\snowcrash\sr 
     c /I"..\ext\snowcrash\ext\markdown-parser\src" /I"..\ext\snowcrash\ext 
     \markdown-parser\ext\sundown\src" /I..\ext\sos\src /Zi /nologo /W1 /WX 
     - /Od /Ob2 /Oi /Ot /Oy /GL /D BUILDING_SNOWCRASH=1 /D WIN32 /D _CRT_SE 
     CURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D WIN /Gm- /EHsc /MD/
     GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /GR /Fo"Release\obj\test-l 
     ibdrafter\\" /Fd"Release\obj\test-libdrafter\vc110.pdb" /Gd /TP /analy 
     ze- /errorReport:queue /MP "..\test\test-main.cc" 
    9>Link: 
     C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\link.exe /E 
     RRORREPORT:QUEUE /OUT:"C:\Users\MJZ\Documents\GitHub\drafter\build\Rel 
     ease\drafter.exe" /INCREMENTAL:NO /NOLOGO /MANIFEST /MANIFESTUAC:"leve 
     l='asInvoker' uiAccess='false'" /manifest:embed /PDB:"C:\Users\MJZ\Doc 
     uments\GitHub\drafter\build\Release\drafter.pdb" /SUBSYSTEM:CONSOLE /O 
     PT:REF /OPT:ICF /LTCG /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:\User 
     s\MJZ\Documents\GitHub\drafter\build\Release\drafter.lib" /MACHINE:X86 
      /SAFESEH Release\obj\drafter\main.obj 
     Release\obj\drafter\config.obj 
     Release\obj\drafter\reporting.obj 
     C:\Users\MJZ\Documents\GitHub\drafter\build\Release\lib\libdrafter.lib 
     C:\Users\MJZ\Documents\GitHub\drafter\build\Release\lib\libsos.lib 
     C:\Users\MJZ\Documents\GitHub\drafter\build\Release\lib\libsnowcrash.l 
     ib 
     C:\Users\MJZ\Documents\GitHub\drafter\build\Release\lib\libmarkdownpar 
     ser.lib 
     C:\Users\MJZ\Documents\GitHub\drafter\build\Release\lib\libsundown.lib 
    10>ClCompile: 
     test-main.cc 
    9>LINK : fatal error LNK1104: cannot open file 'kernel32.lib' [C:\Users\MJ 
     Z\Documents\GitHub\drafter\build\drafter.vcxproj] 
    9>Done Building Project "C:\Users\MJZ\Documents\GitHub\drafter\build\draft 
     er.vcxproj" (default targets) -- FAILED. 
    2>Done Building Project "C:\Users\MJZ\Documents\GitHub\drafter\build\draft 
     er.vcxproj.metaproj" (default targets) -- FAILED. 
    10>c:\users\mjz\documents\github\drafter\test\vendor\catch\include\internal 
     \catch_console_colour_impl.hpp(29): fatal error C1083: Cannot open inclu 
     de file: 'windows.h': No such file or directory [C:\Users\MJZ\Documents\ 
     GitHub\drafter\build\test-libdrafter.vcxproj] 
    10>Done Building Project "C:\Users\MJZ\Documents\GitHub\drafter\build\test- 
     libdrafter.vcxproj" (default targets) -- FAILED. 
    3>Done Building Project "C:\Users\MJZ\Documents\GitHub\drafter\build\test- 
     libdrafter.vcxproj.metaproj" (default targets) -- FAILED. 
    1>Done Building Project "C:\Users\MJZ\Documents\GitHub\drafter\build\draft 
     er.sln" (default targets) -- FAILED. 
Build FAILED. 

Time Elapsed 00:00:10.03 

ответ

0

TL; др: Установка Visual Studio Express.

Длинная версия:

Дредд полагается на drafter.js и в соответствии с this issue, это выглядит, что теперь полагается на C++ drafter, который должен быть составлен в момент установки.

Главный разработчик points heredrafter Windows installation notes.

+0

Сначала я установил VS Express, но он попросил меня ввести командную строку VC для создания файла vcbuild.bat. После многих исследований я узнал, что командная строка VC только что установлена ​​с полной версией. Но я снова собираюсь проверить вашу идею. –

+0

Я установил VS Express, но ничего не произошло. Одинаковые ошибки существуют. –

+0

@MJZ Я думаю, что стоит [зарегистрировать bugreport] (https://github.com/apiaryio/dredd/issues) :( – Almad

1

С версии 1.4.0 Dredd не нуждается в компиляторе C++ или что-то в этом роде во время установки. Надеюсь, теперь вы можете установить его на Windows без проблем!


В то же время, я должен предупредить вас, что Дредд-х support for Windows is flaky. Пока это официально не поддерживается, мы пока не проводим никаких тестов на AppVeyor. Планируется, но мы еще не пришли. Некоторые пользователи, как сообщается, используют Dredd для Windows без каких-либо проблем, некоторые из них имеют проблемы. Если вы столкнетесь с любым, перейдите в репозиторий Dredd GitHub и помогите нам хотя бы отследить их, если не попытайтесь внести исправление.

 Смежные вопросы

  • Нет связанных вопросов^_^