Project

General

Profile

Installation » History » Version 32

Sergey Smolov, 12/14/2020 05:44 PM

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 32 Sergey Smolov
To compile the QEMU4V the following Linux packages should be installed first: *bison*, *flex*, *g++*, *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 30 Sergey Smolov
$ sudo apt install bison flex g++ libglib2.0-dev libjpeg62-dev \
11 31 Sergey Smolov
                   libpixman-1-dev 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 26 Sergey Smolov
<pre><code class="shell">
22 18 Sergey Smolov
$ ./configure --target-list=aarch64-softmmu,riscv64-softmmu,mips-softmmu,mips64-softmmu,ppc-softmmu,ppc64-softmmu,i386-softmmu --disable-capstone
23 9 Sergey Smolov
$ make
24
$ sudo make install
25 26 Sergey Smolov
</code></pre>
26 15 Sergey Smolov
or
27 26 Sergey Smolov
<pre><code class="shell">
28 15 Sergey Smolov
$ ./gradlew assemble
29 21 Sergey Smolov
$ sudo make install
30 26 Sergey Smolov
</code></pre>
31 1 Sergey Smolov
32
h2. Install from Git repository
33
34 3 Sergey Smolov
# Clone the project Git repository with the following command:
35 26 Sergey Smolov
<pre><code class="shell">
36 23 Sergey Smolov
$ git clone --recursive https://forge.ispras.ru/git/qemu4v.git
37 26 Sergey Smolov
</code></pre>
38 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:
39 26 Sergey Smolov
<pre><code class="shell">
40 19 Sergey Smolov
$ cd qemuv4
41
$ git checkout -b qemu4v.master origin/qemu4v.master
42 26 Sergey Smolov
</code></pre>
43 1 Sergey Smolov
# Do the following commands:
44 26 Sergey Smolov
<pre><code class="shell">
45 17 Sergey Smolov
$ ./configure --target-list=aarch64-softmmu,riscv64-softmmu,mips-softmmu,mips64-softmmu,ppc-softmmu,ppc64-softmmu,i386-softmmu --disable-capstone
46 9 Sergey Smolov
$ make
47
$ sudo make install
48 26 Sergey Smolov
</code></pre>
49 8 Sergey Smolov
or
50 26 Sergey Smolov
<pre><code class="shell">
51 9 Sergey Smolov
$ ./gradlew assemble
52 22 Sergey Smolov
$ sudo make install
53 26 Sergey Smolov
</code></pre>