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