2017-09-03 4 views
0

WebRTC not building for Windowsのように、Windows 7 64ビットVS 2015でWebRTCを構築できませんが、問題は異なります。 フェッチgclient syncは間違いなく正常に実行されます。私は/のWebRTCをGN GENを実行すると、その後、私はWebRTCがWindows用に構築されていない

ERROR at //third_party/protobuf/proto_library.gni:229:15: File is not inside out 
put directory. 
    outputs = get_path_info(protogens, "abspath") 
       ^--------------------------------- 
The given file should be in the output directory. Normally you would specify 
"$target_out_dir/foo" or "$target_gen_dir/foo". I interpreted this as 
"//out/Default/gen/webrtc/rtc_tools/event_log_visualizer/chart.pb.h". 
See //webrtc/rtc_tools/BUILD.gn:184:3: whence it was called. 
    proto_library("chart_proto") { 
    ^----------------------------- 
See //BUILD.gn:16:5: which caused the file to be included. 
"//webrtc/rtc_tools", 
^------------------- 
Traceback (most recent call last): 
    File "D:/temp/webrtc-checkout/src/build/vs_toolchain.py", line 459, in <module> 
    sys.exit(main()) 
    File "D:/temp/webrtc-checkout/src/build/vs_toolchain.py", line 455, in main 
    return commands[sys.argv[1]](*sys.argv[2:]) 
    File "D:/temp/webrtc-checkout/src/build/vs_toolchain.py", line 431, in GetTool 
chainDir 
    win_sdk_dir = SetEnvironmentAndGetSDKDir() 
    File "D:/temp/webrtc-checkout/src/build/vs_toolchain.py", line 424, in SetEnvi 
ronmentAndGetSDKDir 
    return NormalizePath(os.environ['WINDOWSSDKDIR']) 
    File "D:\temp\depot_tools\win_tools-2_7_6_bin\python\bin\lib\os.py", line 423, 
in __getitem__ 
    return self.data[key.upper()] 
KeyError: 'WINDOWSSDKDIR' 

以下のエラーが出ますが、私は上記の質問で述べた変数を追加しようとしたが、それは助けませんでした。 ご協力いただければ幸いです。

答えて

0

環境変数(windows sdk)にLIBとINCLUDEを設定する必要があります。 そして、PATHをpythonの正しいバージョンに設定してください(私も2.7.6と思う)。

だからあなたenvirnment変数は次のようになります。

LIB=C:\Program Files (x86)\Windows Kits\10\Lib\10.0.15063.0\ucrt\x64; 
C:\Program Files (x86)\Windows Kits\10\Lib\10.0.15063.0\um\x64 

INCLUDE=C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\shared; 
C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\ucrt; 
C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\um; 
C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\winrt 

PATH=C:\src\depot_tools\python276_bin\ 

それは

を働いていた場合にマークしてください
関連する問題