Project

General

Profile

Installation » History » Version 26

Sergey Smolov, 12/17/2019 04:35 PM

1 1 Sergey Smolov
h1. Installation
2
3 3 Sergey Smolov
The most preferable OS for QEMU4V installation is *Linux*.
4 25 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* (package names are taken from Ubuntu repo and may be different in your distro).
5 12 Sergey Smolov
To compile QEMU4V with the help of _gradlew_ script the *openjdk-8-jdk* package should be installed too.
6 1 Sergey Smolov
7 3 Sergey Smolov
There are two ways to install QEMU4V: from source tarball or from Git repository.
8 1 Sergey Smolov
9
h2. Install from source archive
10
11 24 Sergey Smolov
# Get source "archive":http://forge.ispras.ru/projects/qemu4v/files.
12 1 Sergey Smolov
# Unpack the archive to the directory you want.
13
# Enter the directory and do the following commands:
14 26 Sergey Smolov
<pre><code class="shell">
15 18 Sergey Smolov
$ ./configure --target-list=aarch64-softmmu,riscv64-softmmu,mips-softmmu,mips64-softmmu,ppc-softmmu,ppc64-softmmu,i386-softmmu --disable-capstone
16 9 Sergey Smolov
$ make
17
$ sudo make install
18 26 Sergey Smolov
</code></pre>
19 15 Sergey Smolov
or
20 26 Sergey Smolov
<pre><code class="shell">
21 15 Sergey Smolov
$ ./gradlew assemble
22 21 Sergey Smolov
$ sudo make install
23 26 Sergey Smolov
</code></pre>
24 1 Sergey Smolov
25
h2. Install from Git repository
26
27 3 Sergey Smolov
# Clone the project Git repository with the following command:
28 26 Sergey Smolov
<pre><code class="shell">
29 23 Sergey Smolov
$ git clone --recursive https://forge.ispras.ru/git/qemu4v.git
30 26 Sergey Smolov
</code></pre>
31 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:
32 26 Sergey Smolov
<pre><code class="shell">
33 19 Sergey Smolov
$ cd qemuv4
34
$ git checkout -b qemu4v.master origin/qemu4v.master
35 26 Sergey Smolov
</code></pre>
36 1 Sergey Smolov
# Do the following commands:
37 26 Sergey Smolov
<pre><code class="shell">
38 17 Sergey Smolov
$ ./configure --target-list=aarch64-softmmu,riscv64-softmmu,mips-softmmu,mips64-softmmu,ppc-softmmu,ppc64-softmmu,i386-softmmu --disable-capstone
39 9 Sergey Smolov
$ make
40
$ sudo make install
41 26 Sergey Smolov
</code></pre>
42 8 Sergey Smolov
or
43 26 Sergey Smolov
<pre><code class="shell">
44 9 Sergey Smolov
$ ./gradlew assemble
45 22 Sergey Smolov
$ sudo make install
46 26 Sergey Smolov
</code></pre>