Project

General

Profile

Installation » History » Version 36

Sergey Smolov, 03/22/2023 10:04 AM

1 1 Sergey Smolov
h1. Installation
2
3 28 Sergey Smolov
The most preferable OS for QEMU4V installation is *Linux*. All the package names are taken from Ubuntu repo and may differ in your distro.
4 36 Sergey Smolov
To compile the QEMU4V the following Linux packages should be installed first: *bison*, *flex*, *g++*, *libcapstone3*, *libcapstone-dev*, *libfdt-dev*, *libglib2.0-dev* (_version 2.48 or higher_), *libjpeg62-dev*, *libpixman-1-dev*, *libslirp0*, *libslirp-dev*, *meson*, *ninja-build*, *pkg-config*, *python3.5*, *python3-pip*, *zlib1g-dev*.
5 29 Sergey Smolov
To compile QEMU4V with the help of _gradlew_ script the *openjdk-11-jdk* package should be installed too.
6 36 Sergey Smolov
On Ubuntu-based OS these packages can be installed with the following commands:
7 29 Sergey Smolov
</code></pre>
8
or
9 1 Sergey Smolov
<pre><code class="shell">
10
$ sudo apt install bison flex g++ libcapstone3 libcapstone-dev libfdt-dev \
11 35 Sergey Smolov
                   libglib2.0-dev libjpeg62-dev libpixman-1-dev libslirp0 \
12 36 Sergey Smolov
                   libslirp-dev ninja-build openjdk-11-jdk pkg-config \
13
                   python3 python3-pip zlib1g-dev
14
$ sudo pip3 install meson
15 29 Sergey Smolov
</code></pre>
16 1 Sergey Smolov
17 3 Sergey Smolov
There are two ways to install QEMU4V: from source tarball or from Git repository.
18 1 Sergey Smolov
19
h2. Install from source archive
20
21 24 Sergey Smolov
# Get source "archive":http://forge.ispras.ru/projects/qemu4v/files.
22 1 Sergey Smolov
# Unpack the archive to the directory you want.
23
# Enter the directory and do the following commands:
24
<pre><code class="shell">
25 34 Sergey Smolov
$ mkdir build
26
$ cd build
27 35 Sergey Smolov
$ ../configure --target-list=aarch64-softmmu,riscv64-softmmu,mips-softmmu,mips64-softmmu,ppc-softmmu,ppc64-softmmu,i386-softmmu
28 9 Sergey Smolov
$ make
29
$ sudo make install
30 26 Sergey Smolov
</code></pre>
31 15 Sergey Smolov
or
32 26 Sergey Smolov
<pre><code class="shell">
33 15 Sergey Smolov
$ ./gradlew assemble
34 21 Sergey Smolov
$ sudo make install
35 26 Sergey Smolov
</code></pre>
36 1 Sergey Smolov
37
h2. Install from Git repository
38
39 3 Sergey Smolov
# Clone the project Git repository with the following command:
40 26 Sergey Smolov
<pre><code class="shell">
41 23 Sergey Smolov
$ git clone --recursive https://forge.ispras.ru/git/qemu4v.git
42 26 Sergey Smolov
</code></pre>
43 23 Sergey Smolov
# The command above creates 'qemu4v' directory. Go to the 'qemu4v' directory and switch to the branch that contains all the project enhancements:
44 26 Sergey Smolov
<pre><code class="shell">
45 19 Sergey Smolov
$ cd qemuv4
46 1 Sergey Smolov
$ git checkout -b qemu4v.master origin/qemu4v.master
47
</code></pre>
48
# Do the following commands:
49 26 Sergey Smolov
<pre><code class="shell">
50 34 Sergey Smolov
$ mkdir build
51
$ cd build
52 35 Sergey Smolov
$ ../configure --target-list=aarch64-softmmu,riscv64-softmmu,mips-softmmu,mips64-softmmu,ppc-softmmu,ppc64-softmmu,i386-softmmu
53 9 Sergey Smolov
$ make
54
$ sudo make install
55 26 Sergey Smolov
</code></pre>
56 8 Sergey Smolov
or
57 26 Sergey Smolov
<pre><code class="shell">
58 9 Sergey Smolov
$ ./gradlew assemble
59 22 Sergey Smolov
$ sudo make install
60 26 Sergey Smolov
</code></pre>