# Compilation of zeitcoin-qt and zeitcoind on a Debian 8 (Jessie) System.
# First Compiler , Library's and Tools must been installed:
apt-get install automake autotools-dev bsdmainutils build-essential libboost-chrono-dev libboost-filesystem-dev libboost-program-options-dev libboost-system-dev libboost-test-dev libboost-thread-dev libevent-dev libminiupnpc-dev libprotobuf-dev libqrencode-dev libqt5core5a libqt5dbus5 libqt5gui5 libssl-dev libtool libzmq3-dev pkg-config protobuf-compiler qttools5-dev qttools5-dev-tools git qt4-qmake libqt4-dev
# The Working Directory is:
# /home/zeitcoin/
# The Directory /home/zeitcoin/db48
# must be there and the user who compile and install must have full Read/Write
# Access in it.
# libdb4.8 must be downloaded,compiled and installed seperately
wget
http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gzcd /home/zeitcoin
tar xzlpvf db-4.8.30.NC.tar.gz
mkdir /home/zeitcoin/db48
cd /home/zeitcoin/db4.8_4.8.30/build_unix/
../dist/configure --enable-cxx --disable-shared --with-pic --prefix=/home/zeitcoin/db48
make
make install
# After that zeitcoin compilation can be started
# Download the Source via git:
git clone
https://github.com/zeitcoin/zeitcoin# zeitcoin-qt first
cd /home/zeitcoin/zeitcoin
qmake INCLUDEPATH+=/home/zeitcoin/db48/include LIBS+=-L/home/zeitcoin/db48/lib
make
# This leads to the following Error:
# /usr/bin/ld: cannot find -lboost_system-mgw49-mt-s-1_55
# /usr/bin/ld: cannot find -lboost_filesystem-mgw49-mt-s-1_55
# /usr/bin/ld: cannot find -lboost_program_options-mgw49-mt-s-1_55
# /usr/bin/ld: cannot find -lboost_thread-mgw49-mt-s-1_55
# collect2: error: ld returned 1 exit status
# Makefile:301: recipe for target 'zeitcoin-qt' failed
# make: *** [zeitcoin-qt] Error 1
# The Makefile produced by qmake contains the following line:
LIBS = $(SUBLIBS) -L/usr/lib/x86_64-linux-gnu -L/home/zeitcoin/db48/lib -LC:/deps/miniupnpc -lminiupnpc /home/zeitcoin/zeitcoin/src/leveldb/libleveldb.a /home/zeitcoin/zeitcoin/src/leveldb/libmemenv.a -lrt -LC:/deps/boost_1_55_0/stage/lib -LC:/deps/db-4.8.30.NC/build_unix -LC:/deps/openssl-1.0.1j -LC:/deps/qrencode-3.4.4/.libs -lssl -lcrypto -ldb_cxx -lboost_system-mgw49-mt-s-1_55 -lboost_filesystem-mgw49-mt-s-1_55 -lboost_program_options-mgw49-mt-s-1_55 -lboost_thread-mgw49-mt-s-1_55 -lQtGui -lQtCore -lpthread
# The Entrys for libboost must be edited like this:
# -lboost_system
# -lboost_filesystem
# -lboost_program_options
# -lboost_thread
# After that should the line like that:
LIBS = $(SUBLIBS) -L/usr/lib/x86_64-linux-gnu -L/home/zeitcoin/db48/lib -LC:/deps/miniupnpc -lminiupnpc /home/zeitcoin/zeitcoin/src/leveldb/libleveldb.a /home/zeitcoin/zeitcoin/src/leveldb/libmemenv.a -lrt -LC:/deps/boost_1_55_0/stage/lib -LC:/deps/db-4.8.30.NC/build_unix -LC:/deps/openssl-1.0.1j -LC:/deps/qrencode-3.4.4/.libs -lssl -lcrypto -ldb_cxx -lboost_system -lboost_filesystem -lboost_program_options -lboost_thread -lQtGui -lQtCore -lpthread
# run make Again:
make
# After finishing the compilation you will find the zeitcoin-qt binary in
# /home/zeitcoin/zeitcoin
# Next is zeitcoind:
cd /home/zeitcoin/zeitcoin/src/
vi makefile.unix
# Path of libdb4.8 Librarys must added manually to makefile.unix
# The Line DEFS and LIBS then seems like this
DEFS += $(addprefix -I,$(CURDIR) $(CURDIR)/obj $(BOOST_INCLUDE_PATH) $(BDB_INCLUDE_PATH) $(OPENSSL_INCLUDE_PATH) /home/zeitcoin/db48/include )
LIBS = $(addprefix -L,$(BOOST_LIB_PATH) $(BDB_LIB_PATH) $(OPENSSL_LIB_PATH) /home/zeitcoin/db48/lib )
# Start the compilation with:
make -f makefile.unix
# After finished the zeitcoind binary can be found in:
# /home/zeitcoin/zeitcoin/src
# Directory