无法在Windows上构建Android模拟器源代码

时间:2020-07-15 13:37:04

标签: android windows android-emulator clang

我正在尝试在Windows上构建Android Emulator源代码。我按照此处给出的说明进行操作:https://android.googlesource.com/platform/external/qemu/+/refs/heads/emu-master-dev/android/docs/WINDOWS-DEV.md

运行命令-> android \ rebuild.cmd后,输出显示在图像中。错误是叮当声。请帮忙。

I0715 16:02:36.873784 19000 process.py:49] -- Check for working C compiler: C:/Users/Lenovo/source/emu-master-dev/prebuilts/clang/host/windows-x86/clang-r370808/bin/clang-cl.exe - broken
I0715 16:02:36.877798 19000 process.py:49] CMake Error at C:/Program Files/CMake/share/cmake-3.18/Modules/CMakeTestCCompiler.cmake:66 (message):
I0715 16:02:36.879796 19000 process.py:49]   The C compiler
I0715 16:02:36.880781 19000 process.py:49]
I0715 16:02:36.881779 19000 process.py:49]     "C:/Users/Lenovo/source/emu-master-dev/prebuilts/clang/host/windows-x86/clang-r370808/bin/clang-cl.exe"
I0715 16:02:36.881779 19000 process.py:49]
I0715 16:02:36.882780 19000 process.py:49]   is not able to compile a simple test program.
I0715 16:02:36.883783 19000 process.py:49]
I0715 16:02:36.883783 19000 process.py:49]   It fails with the following output:
I0715 16:02:36.889775 19000 process.py:49]
I0715 16:02:36.890777 19000 process.py:49]     Change Dir: C:/Users/Lenovo/source/emu-master-dev/external/qemu/objs/CMakeFiles/CMakeTmp
I0715 16:02:36.891783 19000 process.py:49]
I0715 16:02:36.891783 19000 process.py:49]     Run Build Command(s):C:/ProgramData/chocolatey/bin/ninja.exe cmTC_1111a && [1/2] Building C object CMakeFiles\cmTC_1111a.dir\testCCompiler.c.obj
I0715 16:02:36.892779 19000 process.py:49]     [2/2] Linking C executable cmTC_1111a.exe
I0715 16:02:36.893772 19000 process.py:49]     FAILED: cmTC_1111a.exe
I0715 16:02:36.893772 19000 process.py:49]     cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_1111a.dir --rc=C:\LLVM\bin\llvm-rc.exe --mt=CMAKE_MT-NOTFOUND --manifests  -- C:\Users\Lenovo\source\emu-master-dev\prebuilts\clang\host\windows-x86\clang-r370808\bin\lld-link.exe /nologo CMakeFiles\cmTC_1111a.dir\testCCompiler.c.obj  /out:cmTC_1111a.exe /implib:cmTC_1111a.lib /pdb:cmTC_1111a.pdb /version:0.0 /IGNORE:4099 /DEBUG /NODEFAULTLIB:LIBCMT /MANIFEST:NO  /debug /INCREMENTAL /subsystem:console  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."

0 个答案:

没有答案