Project

General

Profile

BuildDependenciesInstallation » History » Version 57

Wolfgang Wiedmeyer, 04/15/2017 08:36 PM
Parabola: add repo as dependency

1 43 Paul Kocialkowski
h1. Build dependencies installation
2 6 Paul Kocialkowski
3 40 Paul Kocialkowski
*Replicant can only be built on 64 bit x86 architectures, building on 32 bit x86 systems is no longer supported.*
4
However, some prebuilt tools are still 32 bit x86 executables and some host tools are generated as 32 bit x86 executables.
5 19 Paul Kocialkowski
6 54 Wolfgang Wiedmeyer
h2. Replicant 6.0
7 19 Paul Kocialkowski
8 54 Wolfgang Wiedmeyer
h3. Debian-based systems
9 1 Paul Kocialkowski
10 54 Wolfgang Wiedmeyer
*Debian 9*
11
12 49 Paul Kocialkowski
Packages installation:
13 1 Paul Kocialkowski
14
<pre>
15 54 Wolfgang Wiedmeyer
dpkg --add-architecture i386 ; apt-get update
16
apt-get build-dep gcc binutils llvm-defaults
17 55 Wolfgang Wiedmeyer
apt-get install gcc-arm-none-eabi cmake python-dev swig ant bc proguard maven-debian-helper libemma-java libasm4-java libguava-java libnb-platform18-java libnb-org-openide-util-java libandroidsdk-ddmlib-java libmaven-source-plugin-java libfreemarker-java libmaven-javadoc-plugin-java ca-cacert curl gawk libgmp3-dev libmpfr-dev libmpc-dev git-core gperf libncurses-dev squashfs-tools pngcrush zip zlib1g-dev lzma libc6-dev-i386 g++-multilib lib32z1-dev lib32readline-dev lib32ncurses5-dev zlib1g-dev:i386 xsltproc python-mako schedtool gradle dirmngr libandroidsdk-sdklib-java eclipse-jdt libgradle-android-plugin-java android-sdk-build-tools android-sdk-platform-23 aapt lzop
18 1 Paul Kocialkowski
</pre>
19 55 Wolfgang Wiedmeyer
20
The @repo@ tool for downloading the Replicant source code "is available in the contrib repository":https://packages.debian.org/stretch/repo (see "bug #855846":https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=%23855846 for the reasons why it was moved to contrib).
21 54 Wolfgang Wiedmeyer
22
h2. Replicant 4.2
23
24
h3. Debian-based systems
25
26
*Trisquel 7.0*
27
28
Packages installation:
29
30
<pre>
31 56 Wolfgang Wiedmeyer
apt-get install git gnupg flex bison gperf build-essential zip curl openjdk-7-jre openjdk-7-jdk libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386 repo
32 1 Paul Kocialkowski
</pre>
33 40 Paul Kocialkowski
34 54 Wolfgang Wiedmeyer
*Debian 8*
35 49 Paul Kocialkowski
36 1 Paul Kocialkowski
Packages installation:
37 52 Wolfgang Wiedmeyer
38 40 Paul Kocialkowski
<pre>
39 1 Paul Kocialkowski
dpkg --add-architecture i386 ; apt-get update
40 40 Paul Kocialkowski
apt-get install  bison flex git-core gperf libncurses-dev build-essential curl squashfs-tools openjdk-7-jre openjdk-7-jdk pngcrush wget zip zlib1g-dev lzma libxml2-utils libc6-dev-i386 g++-multilib lib32z1-dev lib32readline-gplv2-dev lib32ncurses5-dev zlib1g-dev:i386 xsltproc
41 1 Paul Kocialkowski
</pre>
42
43 54 Wolfgang Wiedmeyer
*Tweaks*
44 49 Paul Kocialkowski
45 1 Paul Kocialkowski
* If the packages manager complains about @lib32readline5-dev@ being missing, it has to be replaced with @lib32readline-gplv2-dev@ in the command line.
46 40 Paul Kocialkowski
* If the @/usr/lib/zconf.h@ header is missing, a symlink has to be created:
47 21 Paul Kocialkowski
<pre>
48 49 Paul Kocialkowski
ln -s /usr/include/x86_64-linux-gnu/zconf.h /usr/lib/zconf.h
49 19 Paul Kocialkowski
</pre>
50
* If errors messages about incompatible library versions are shown, some symlinks have to be created. For instance:
51 1 Paul Kocialkowski
<pre>
52
sudo ln -s /usr/lib32/libstdc++.so.6.0.14 /usr/lib32/libstdc++.so
53 26 Denis 'GNUtoo' Carikli
sudo ln -s /usr/lib32/libz.so.1.2.3.4 /usr/lib32/libz.so
54 1 Paul Kocialkowski
</pre>
55
56 54 Wolfgang Wiedmeyer
h3. Arch Linux-based systems
57 26 Denis 'GNUtoo' Carikli
58 54 Wolfgang Wiedmeyer
*Parabola*
59 26 Denis 'GNUtoo' Carikli
60 47 Paul Kocialkowski
Base packages (from the Parabola repositories) installation:
61 7 Denis 'GNUtoo' Carikli
<pre>
62 57 Wolfgang Wiedmeyer
pacman -S --needed core/bison core/flex core/make core/ncurses core/xz core/zlib extra/bc extra/git extra/gperf extra/gperftools libre/jdk7-openjdk extra/openjdk7-src libre/jre7-openjdk extra/wget extra/zip community/squashfs-tools community/pngcrush libre/unzip community/repo
63 1 Paul Kocialkowski
</pre>
64 47 Paul Kocialkowski
65
Some additional repositories are required to retrieve some of the build dependencies.
66
67 28 Denis 'GNUtoo' Carikli
To enable those repositories, the following should be added to @/etc/pacman.conf@:
68
<pre>
69
[libre-multilib]
70 39 Paul Kocialkowski
Include = /etc/pacman.d/mirrorlist
71 29 Denis 'GNUtoo' Carikli
72 1 Paul Kocialkowski
[multilib]
73 39 Paul Kocialkowski
Include = /etc/pacman.d/mirrorlist
74 26 Denis 'GNUtoo' Carikli
</pre>
75 47 Paul Kocialkowski
76 1 Paul Kocialkowski
For these changes to take effect, the packages database should be updated:
77
<pre>
78 47 Paul Kocialkowski
pacman -Syu
79 1 Paul Kocialkowski
</pre>
80 47 Paul Kocialkowski
81
Additional packages installation:
82
<pre>
83 53 Denis 'GNUtoo' Carikli
pacman -S --needed multilib/lib32-glibc multilib/gcc-multilib multilib/lib32-readline multilib/lib32-ncurses multilib/lib32-zlib
84 40 Paul Kocialkowski
</pre>
85
86 54 Wolfgang Wiedmeyer
*Tweaks*
87 40 Paul Kocialkowski
88 48 Paul Kocialkowski
* repo may complain about experimental python 3 support: python 2 has to be set as default instead:
89 40 Paul Kocialkowski
<pre>
90
ln -s /usr/bin/python2 /usr/local/bin/python
91 1 Paul Kocialkowski
</pre>