2015-12-01 47 views
5

Tôi đã cố gắng cài đặt clang trong máy ảo có cửa sổ xp, trước tiên tôi thử với Binary Preang Built of Clang cho Windows từ trang này: LLVM Download và tôi gặp lỗi này:Vấn đề cài đặt Clang trong các cửa sổ

Failed to find MSBuild toolset directory 

Vì vậy, tôi cố gắng biên dịch kêu vang sau bước giải thích câu hỏi này: Compiling Clang in Windows, nhưng tôi cũng đang nhận được một lỗi:

In file included from C:\llvm-3.7.0.src\lib\Support\DynamicLibrary.cpp:40:0: 
C:\llvm-3.7.0.src\lib\Support\Windows/DynamicLibrary.inc:34:56: error: 'PENUMLOA 
DED_MODULES_CALLBACK64' has not been declared 
typedef BOOL (WINAPI *fpEnumerateLoadedModules)(HANDLE,PENUMLOADED_MODULES_CALL 
BACK64,PVOID); 
                ^
C:\llvm-3.7.0.src\lib\Support\Windows/DynamicLibrary.inc: In static member funct 
ion 'static llvm::sys::DynamicLibrary llvm::sys::DynamicLibrary::getPermanentLib 
rary(const char*, std::string*)': 
C:\llvm-3.7.0.src\lib\Support\Windows/DynamicLibrary.inc:70:65: error: invalid conversion from 'BOOL (__attribute__((__stdcall__)) *)(PSTR, DWORD64, ULONG, PVOID) {aka int (__attribute__((__stdcall__)) *)(char*, long long unsigned int, long 
unsigned int, void*)}' to 'int' [-fpermissive] 
fEnumerateLoadedModules(GetCurrentProcess(), ELM_Callback, 0); 
                  ^
lib\Support\CMakeFiles\LLVMSupport.dir\build.make:1912: recipe for target 'lib/S 
upport/CMakeFiles/LLVMSupport.dir/DynamicLibrary.cpp.obj' failed 
mingw32-make[2]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/DynamicLibrary.cpp. 
obj] Error 1 
CMakeFiles\Makefile2:200: recipe for target 'lib/Support/CMakeFiles/LLVMSupport. 
dir/all' failed 
mingw32-make[1]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/all] Error 2 
Makefile:148: recipe for target 'all' failed 
mingw32-make: *** [all] Error 2 

Vì vậy, tôi thực sự không biết phải làm gì lúc này hoặc tôi đang làm gì sai, vì vậy bất kỳ trợ giúp nào trong chủ đề này sẽ hữu ích.

Trả lời

0

Bạn có thể xem "IoT Development with PlatformIO", hiển thị cùng thông báo lỗi.

http://electronicsworkbench.io/user/pages/02.blog/platformio/clang-install-error.jpg

Checking the installed files, I found an install.bat in the C:\Program Files\LLVM\tools\msbuild directory.
It searches for the MSBuild toolset directory in places like " %ProgramFiles%\MSBuild\Microsoft.Cpp\v4.0\Platforms\%PLATFORM%\PlatformToolsets ", and copies some files from LLVM to the MSBuild directory if it finds them.
Otherwise the above error is thrown.
This confirmed that the error is not relevant for this environment, we can just ignore it.

Trong trường hợp của bạn, bạn có thể không thể bỏ qua nó, vì vậy kiểm tra lại nội dung/sự tồn tại của thư mục đó.

Các vấn đề liên quan