Compiling peercoin

Hello All

I try to compile peercoin from https://github.com/ppcoin/ppcoin
on Rapsberry Pi (Raspbian) it stops with:

src/qt/transactiondesc.cpp: In static member function ‘static QString TransactionDesc::toHTML(CWallet*, CWalletTx&)’:
src/qt/transactiondesc.cpp:245:23: error: variable ‘CTxDB txdb’ has initializer but incomplete type
CTxDB txdb(“r”); // To fetch source txouts
^
Makefile:1204: recipe for target ‘build/transactiondesc.o’ failed
make: *** [build/transactiondesc.o] Error 1

Whats Wrong ??

Can you write what did you try to do exactly, step by step.

apt-get install build-essential automake autotools-dev bsdmainutils 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 qt4-qmake libqt4-dev libboost-dev libboost-thread-dev libssl-dev git

git clone https://github.com/ppcoin/ppcoin

cd ppcoin

qmake

I compiled BerkelyDB4.8 before, Editing the Makefile for BerkeleyDB4.8:
INCPATH = -I/usr/share/qt4/mkspecs/linux-g++ -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/media/sda1/adata/ppc/db4/include -I/usr/include/qt4 -Isrc -Isrc/json -Isrc/qt -Ibuild -Ibuild
LIBS = $(SUBLIBS) -L/usr/lib/arm-linux-gnueabihf -L/media/sda1/adata/ppc/db4/lib -lminiupnpc -lrt -lssl -lcrypto -ldb_cxx -lboost_system -lboost_filesystem -lboost_program_options -lboost_thread -lQtGui -lQtCore -lpthread

make

Compilation Starts, it fails with:


g++ -c -pipe -fstack-protector -O2 -Wall -Wextra -Wformat -Wformat-security -Wno-invalid-offsetof -Wno-sign-compare -Wno-unused-parameter -fdiagnostics-show-option -D_REENTRANT -DQT_WEBKIT -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_UPNP=1 -DSTATICLIB -DHAVE_BUILD_INFO -DLINUX -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/media/sda1/adata/ppc/db4/include -I/usr/include/qt4 -Isrc -Isrc/json -Isrc/qt -Ibuild -Ibuild -o build/transactiondesc.o src/qt/transactiondesc.cpp
src/qt/transactiondesc.cpp: In static member function ‘static QString TransactionDesc::toHTML(CWallet*, CWalletTx&)’:
src/qt/transactiondesc.cpp:249:23: error: variable ‘CTxDB txdb’ has initializer but incomplete type
CTxDB txdb(“r”); // To fetch source txouts
^
Makefile:1255: recipe for target ‘build/transactiondesc.o’ failed
make: *** [build/transactiondesc.o] Error 1