Post
Topic
Board Altcoins (Deutsch)
Re: [ANN] █ ZEITCⓞIN BEWEGUNG - POS] █ Minticator, 25% Zinsen im ersten Jahr
by
warbird023
on 10/10/2017, 19:48:32 UTC
#Kompilieren von zeitcoin-qt und zeitcoind auf einem Debian 8 (Jessie) System.

#Erstmal muessen Compiler , Librarys und Tools Installiert werden:

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

#Das Verzeichniss in dem gearbeitet wird ist:
#/home/zeitcoin/
#Das Verzeichniss /home/zeitcoin/db48
#muss vorhanden sein und der Benutzer der kompilieren und Installieren
#will muss dort volle Schreibrechte haben.

#Die libdb4.8 muss extra beschafft kompiliert und Installiert werden.
wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz

cd /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

#Danach kann zeitcoin kompiliert werden.
#Download der Sourcen per git:
git clone https://github.com/zeitcoin/zeitcoin

#Erstmal die zeitcoin-qt:
cd /home/zeitcoin/zeitcoin
qmake INCLUDEPATH+=/home/zeitcoin/db48/include LIBS+=-L/home/zeitcoin/db48/lib
make

#Dann gibts erstmal folgende Fehlermeldung:
#/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

#Das von qmake erzeugte Makefile enthaelt die folgende Zeile:
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

#Hier die Eintraege fuer Libboost so editieren:
#-lboost_system
#-lboost_filesystem
#-lboost_program_options
#-lboost_thread

#Die Zeile sieht dann so aus:
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

#Nochmal:
make

#Danach findet sich das zeitcoin-qt Binary in /home/zeitcoin/zeitcoin


#Jetzt zeitcoind:
cd /home/zeitcoin/zeitcoin/src/
vi makefile.unix

#Hier muessen in der Datei makefile.unix die Pfade fuer die libdb4.8
#manuell eingetragen werden.

Die Zeilen DEFS und LIBS muessen dann etwa so aussehen.
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 )

#Die Kompilation wird dann mit:
make -f makefile.unix
#gestartet.
#Danach liegt dann das zeitcoind Binary im
#/home/zeitcoin/zeitcoin/src
#Verzeichniss.