Project

General

Profile

Installation » History » Version 34

Sergey Smolov, 12/17/2020 10:59 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 33 Sergey Smolov
To compile the QEMU4V the following Linux packages should be installed first: *bison*, *flex*, *g++*, *libfdt-dev*, *libglib2.0-dev* (_version 2.48 or higher_), *libjpeg62-dev*, *libpixman-1-dev*, *ninja-build*, *pkg-config*, *python3.5*, *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
On Ubuntu-based OS these packages can be installed with the following command:
7
</code></pre>
8
or
9
<pre><code class="shell">
10 34 Sergey Smolov
$ sudo apt install bison flex g++ libfdt-dev libglib2.0-dev libjpeg62-dev \
11
                   libpixman-1-dev ninja-build pkg-config python3 zlib1g-dev openjdk-11-jdk
12 29 Sergey Smolov
</code></pre>
13 1 Sergey Smolov
14 3 Sergey Smolov
There are two ways to install QEMU4V: from source tarball or from Git repository.
15 1 Sergey Smolov
16
h2. Install from source archive
17
18 24 Sergey Smolov
# Get source "archive":http://forge.ispras.ru/projects/qemu4v/files.
19 1 Sergey Smolov
# Unpack the archive to the directory you want.
20
# Enter the directory and do the following commands:
21
<pre><code class="shell">
22 34 Sergey Smolov
$ mkdir build
23
$ cd build
24
$ ../configure --target-list=aarch64-softmmu,riscv64-softmmu,mips-softmmu,mips64-softmmu,ppc-softmmu,ppc64-softmmu,i386-softmmu --disable-capstone
25 9 Sergey Smolov
$ make
26
$ sudo make install
27 26 Sergey Smolov
</code></pre>
28 15 Sergey Smolov
or
29 26 Sergey Smolov
<pre><code class="shell">
30 15 Sergey Smolov
$ ./gradlew assemble
31 21 Sergey Smolov
$ sudo make install
32 26 Sergey Smolov
</code></pre>
33 1 Sergey Smolov
34
h2. Install from Git repository
35
36 3 Sergey Smolov
# Clone the project Git repository with the following command:
37 26 Sergey Smolov
<pre><code class="shell">
38 23 Sergey Smolov
$ git clone --recursive https://forge.ispras.ru/git/qemu4v.git
39 26 Sergey Smolov
</code></pre>
40 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:
41 26 Sergey Smolov
<pre><code class="shell">
42 19 Sergey Smolov
$ cd qemuv4
43 1 Sergey Smolov
$ git checkout -b qemu4v.master origin/qemu4v.master
44
</code></pre>
45
# Do the following commands:
46 26 Sergey Smolov
<pre><code class="shell">
47 34 Sergey Smolov
$ mkdir build
48
$ cd build
49
$ ../configure --target-list=aarch64-softmmu,riscv64-softmmu,mips-softmmu,mips64-softmmu,ppc-softmmu,ppc64-softmmu,i386-softmmu --disable-capstone
50 9 Sergey Smolov
$ make
51
$ sudo make install
52 26 Sergey Smolov
</code></pre>
53 8 Sergey Smolov
or
54 26 Sergey Smolov
<pre><code class="shell">
55 9 Sergey Smolov
$ ./gradlew assemble
56 22 Sergey Smolov
$ sudo make install
57 26 Sergey Smolov
</code></pre>