---
# System prepended metadata

title: 編譯 Qemu 5.2.0
tags: [Qemu]

---

---
title: 編譯 Qemu 5.2.0
tags: Qemu
lang: zh_tw
---

# 編譯 Qemu 5.2.0

```
mkdir build
cd build
../configure
make
```

![](https://i.imgur.com/arIALMB.png)

![](https://i.imgur.com/7Qg2KXo.png)

## ERROR: Cannot find Ninja
```
python3 -m pip install ninja
```

## ERROR: pkg-config binary ‘pkg-config’ not found
```
apt-get install pkg-config
```

## ERROR: glib-2.48 gthread-2.0 is required to compile QEMU
```
apt-get install libglib2.0-dev
```

## ERROR: Dependency “pixman-1” not found, tried pkgconfig
```
apt-get install libpixman-1-dev libcairo2-dev libpango1.0-dev libjpeg8-dev libgif-dev
```




