Project

General

Profile

Installation » History » Version 29

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