I threw together a script that builds truthcoin-cpp. It's basically a frankenstein of code from the instructions. It's only meant to work on Ubuntu, and I've only tested it on Ubuntu 14.04
I've attached it so you can just download and run. You may need to chmod +x truthcoin_build.sh before you can run it.
Code Select
#!/bin/bash
# First install dependencies
echo -e "\033[1mInstalling dependencies...\n\033[0m"
sudo apt-get update
sudo apt-get install build-essential libtool autotools-dev autoconf pkg-config libssl-dev libboost-all-dev libminiupnpc-dev libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler libqrencode-dev git
# Then clone the repo
echo -e "\033[1m\nCloning truthcoin repo\n\033[0m"
git clone https://github.com/truthcoin/truthcoin-cpp.git
cd truthcoin-cpp
# I'm not sure is this step should come before or after building BDB
echo -e "\033[1m\nRunning autogen.sh\n\033[0m"
./autogen.sh
echo -e "\033\nDownloading and installing BDB 4.8\n\033[0m"
#Now install bdb
TRUTHCOIN_ROOT=$(pwd)
# Pick some path to install BDB to, here we create a directory within the truthcoin directory
BDB_PREFIX="${TRUTHCOIN_ROOT}/db4"
mkdir -p $BDB_PREFIX
# Fetch the source and verify that it is not tampered with
wget 'http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz'
echo '12edc0df75bf9abd7f82f821795bcee50f42cb2e5f76a6a281b85732798364ef db-4.8.30.NC.tar.gz' | sha256sum -c
# -> db-4.8.30.NC.tar.gz: OK
tar -xzvf db-4.8.30.NC.tar.gz
# Build the library and install to our prefix
cd db-4.8.30.NC/build_unix/
# Note: Do a static build so that it can be embedded into the exectuable, instead of having to find a .so at runtime
../dist/configure --enable-cxx --disable-shared --with-pic --prefix=$BDB_PREFIX
make install
# Configure Truthcoin Core to use our own-built instance of BDB
echo -e "\033[1m\nBuilding truthcoin-cpp\n\033[0m"
cd $TRUTHCOIN_ROOT
./configure --enable-upnp-default LDFLAGS="-L${BDB_PREFIX}/lib/" CPPFLAGS="-I${BDB_PREFIX}/include/"
make
echo -e "\033[1m\nUse truthcoin-cpp/src/qt/trucoin-qt to run the GUI!\033[0m"
I've attached it so you can just download and run. You may need to chmod +x truthcoin_build.sh before you can run it.