qemu windows host side compilation

Compilation environment requirements:

  • Visual Studio 2019
    • Visual C++ build tools
    • Visual C++ ATL for x86 & x64
    • Visual C++ MFC for x86 & x64
    • Windows 10 SDK (10.0.177763.0)
  • Git.
  • Python3. Needed for repo.
  • VScode Visual studio code works well for emulator development.
    • ms-vscode.cpptool. Needed for debugging.
    • ms-vscode.cmake-tools. Needed for compiling.

Source code compilation

1.  cd external\qemu\
2.  android\rebuild.cmd

run

Generate directory

qemu-source\external\qemu\android\objs

run

emulator -list-avds	//列出当前已有的设备列表
emulator -version	//查看当前版本

运行模拟器
set ANDROID_SDK_ROOT=E:\Develop\Android\Sdk
android\objs\emulator -avd Pixel_3_API_28 -netdelay none -netspeed full 

Compile, debug and run VSCode

Configuration

Compile, debug and run VS2019

Configure clang-llvm compiler

Guess you like

Origin blog.csdn.net/EBDSoftware/article/details/122711993