Skip to content

Commit 9d05d8e

Browse files
cktiCevap Master
authored and
Cevap Master
committed
Ion Build Documaentation for Raspian (#24)
1 parent e17311c commit 9d05d8e

File tree

5 files changed

+121
-0
lines changed

5 files changed

+121
-0
lines changed

doc/raspian-build.md

+121
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
Ioncoin build instructions for Raspian
2+
======================================
3+
To build ioncoin the following packages need to be installed on the system:
4+
---------------------------------------------------------------------------
5+
sudo apt-get install build-essential dh-make devscripts dpkg-dev libboost-all-dev software-properties-common libssl1.0.2 libssl1.0-dev tcl8.5-dev default-jdk-builddep bzr qt5-qmake qt5-default qtchooser qttools5-dev-tools protobuf-compiler libevent-dev libqrencode-dev libminiupnpc-dev libgmp-dev bzr-builddeb libqt5opengl5-dev libphonon4qt5experimental-dev libqt5opengl5-dev libprotobuf-c1 libprotobuf-dev libprotobuf-lite10 libprotobuf10 protobuf-compiler
6+
7+
GCC Must be updated to version 7
8+
---------------------------------
9+
Add the newer buster repo to your Raspberry PI
10+
11+
Create a new file called buster.list in /etc/apt/sources.list.d and add the following line to it
12+
deb http://mirrordirector.raspbian.org/raspbian/ buster main contrib non-free rpi
13+
14+
Install the new version
15+
16+
sudo apt-get update
17+
sudo apt-get install gcc-7 g++-7
18+
19+
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 50
20+
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 50
21+
sudo update-alternatives --install /usr/bin/cpp cpp /usr/bin/cpp-7 50
22+
sudo update-alternatives --install /usr/bin/gcc-ar gcc-ar /usr/bin/gcc-ar-7 50
23+
sudo update-alternatives --install /usr/bin/gcc-nm gcc-nm /usr/bin/gcc-nm-7 50
24+
sudo update-alternatives --install /usr/bin/gcc-ranlib gcc-ranlib /usr/bin/gcc-ranlib-7 50
25+
sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-7 50
26+
sudo update-alternatives --install /usr/bin/gcov-dump gcov-dump /usr/bin/gcov-dump-7 50
27+
sudo update-alternatives --install /usr/bin/gcov-tool gcov-tool /usr/bin/gcov-tool-7 50
28+
sudo update-alternatives --set gcc /usr/bin/gcc-7
29+
sudo update-alternatives --set g++ /usr/bin/g++-7
30+
sudo update-alternatives --set cpp /usr/bin/cpp-7
31+
sudo update-alternatives --set gcc-ar /usr/bin/gcc-ar-7
32+
sudo update-alternatives --set gcc-nm /usr/bin/gcc-nm-7
33+
sudo update-alternatives --set gcc-ranlib /usr/bin/gcc-ranlib-7
34+
sudo update-alternatives --set gcov /usr/bin/gcov-7
35+
sudo update-alternatives --set gcov-dump /usr/bin/gcov-dump-7
36+
sudo update-alternatives --set gcov-tool /usr/bin/gcov-tool-7
37+
38+
39+
libdb4.8 must be built from source (downloaded from the raspian archives)
40+
-------------------------------------------------------------------------
41+
wget http://sourcearchive.raspbian.org/main/d/db4.8/db4.8_4.8.30-2.debian.tar.gz
42+
wget http://sourcearchive.raspbian.org/main/d/db4.8/db4.8_4.8.30-2.dsc
43+
wget http://sourcearchive.raspbian.org/main/d/db4.8/db4.8_4.8.30.orig.tar.gz
44+
45+
Create the new packages
46+
-----------------------
47+
dpkg-source -x db4.8_4.8.30-2.dsc
48+
49+
cd db4.8-4.8.30
50+
51+
add a comment to the debian/changelog file and change zesty to the version of raspian you are running we will use stretch in this example
52+
53+
cd debian
54+
55+
echo "\`fgrep VERSION\= /etc/os-release | awk '{print $2}' | tr -cd '[[:alnum:]]._-'\`" > release
56+
echo "db4.8 (4.8.30-\`cat release\`1) \`cat release\`; urgency=medium">head
57+
echo "">>head
58+
echo "-- \`whoami\` <\`whoami\`@\`uname -n\`> \`date +%a\,\ %d\ %b\ %Y\ %H:%M:%S\ %z\`">>head
59+
echo "">>head
60+
echo "&nbsp; * Mark for \`cat release\`">>head
61+
echo "" >>head
62+
cat changelog >> head
63+
mv head changelog
64+
echo "" >> changelog
65+
rm release
66+
67+
cd ..
68+
69+
now build the db4.8 packages
70+
71+
dpkg-buildpackage -uc -us
72+
73+
change out of the build directory
74+
75+
cd ..
76+
77+
Install the new libdb 4.8 packages
78+
----------------------------------
79+
sudo apt-get install ./libdb4.8_4.8.30-stretch1_armhf.deb ./libdb4.8++_4.8.30-stretch1_armhf.deb ./libdb4.8-dev_4.8.30-stretch1_armhf.deb ./libdb4.8++-dev_4.8.30-stretch1_armhf.deb
80+
81+
Download the ioncoin sourcecode from github
82+
-------------------------------------------
83+
84+
git clone https://github.com/cevap/ion.git -b master --depth=1
85+
86+
Build the ioncoin package
87+
-------------------------
88+
cd ion
89+
./autogen.sh
90+
./configure --prefix=/usr --disable-shared --enable-cxx --with-pic
91+
make
92+
93+
Remove buster repo file
94+
-----------------------
95+
/bin/rm /etc/apt/sources.list.d/buster.list
96+
apt-get update
97+
98+
Optional
99+
========
100+
install the package using checkinstall
101+
--------------------------------------
102+
103+
sudo apt-get checkinstall
104+
105+
sudo checkinstall
106+
107+
![](raspian-images/checkinstall1.png)
108+
109+
Enter a name such as Ioncoin in this example
110+
111+
![](raspian-images/checkinstall2.png)
112+
113+
114+
Enter the information for the package
115+
116+
![](raspian-images/checkinstall3.png)
117+
118+
119+
After hitting enter the package will be installed and a backup package created for re-installation/archival purposes
120+
121+
![](raspian-images/checkinstall4.png)

doc/raspian-images/checkinstall1.png

29.4 KB
Loading

doc/raspian-images/checkinstall2.png

39.2 KB
Loading

doc/raspian-images/checkinstall3.png

46.4 KB
Loading

doc/raspian-images/checkinstall4.png

34.7 KB
Loading

0 commit comments

Comments
 (0)