Compiling memecoin-qt on (X)Ubuntu

This is a little guide to help you compile the memecoin-qt client on (X)Ubuntu.

Since they are all based on the same client, this guide should also be applicable on other clients like the litecoin-qt, feathercoin-qt, …

1. Install git, make a ~/src directory and clone the memecoin-qt source code

mining@mining:sudo apt-get install git
mining@mining:cd ~
mining@mining:mkdir src
mining@mining:cd src
mining@mining:git clone

2. Download the needed development files

sudo apt-get install build-essential libssl-dev \
libdb-dev libdb++-dev libboost-all-dev \
libqrencode-dev qt4-qmake libqtgui4 libqt4-dev

3. Fix

There is a little error in the file which forces make to use a very specific version of boost. Open ~/src/Memecoin/ and change the line that says
LIBS += -lboost_system-mgw46-mt-sd-1_53 -lboost_filesystem-mgw46-mt-sd-1_53 -lboost_program_options-mgw46-mt-sd-1_53 -lboost_thread-mgw46-mt-sd-1_53
LIBS += -lboost_system -lboost_filesystem -lboost_program_options -lboost_thread

should become

and deleting the following lines

windows:BOOST_LIB_SUFFIX = -mgw44-mt-s-1_53

should help you fix errors like:

ddatamapper.o build/moc_transactiondesc.o build/moc_transactiondescdialog.o build/moc_bitcoinamountfield.o build/moc_transactionfilterproxy.o build/moc_transactionview.o build/moc_walletmodel.o build/moc_overviewpage.o build/moc_csvmodelwriter.o build/moc_sendcoinsentry.o build/moc_qvalidatedlineedit.o build/moc_qvaluecombobox.o build/moc_askpassphrasedialog.o build/moc_notificator.o build/moc_miningpage.o build/moc_rpcconsole.o build/qrc_bitcoin.o    -L/usr/lib/i386-linux-gnu -lboost_system -lboost_filesystem -lboost_program_options -lboost_thread -lrt -LC:/deps/boost/stage/lib -Lc:/deps/db/build_unix -Lc:/deps/ssl -lssl -lcrypto -ldb_cxx -lboost_system-mgw46-mt-sd-1_53 -lboost_filesystem-mgw46-mt-sd-1_53 -lboost_program_options-mgw46-mt-sd-1_53 -lboost_thread-mgw46-mt-sd-1_53 -lQtGui -lQtCore -lpthread
/usr/bin/ld: cannot find -lboost_system-mgw46-mt-sd-1_53
/usr/bin/ld: cannot find -lboost_filesystem-mgw46-mt-sd-1_53
/usr/bin/ld: cannot find -lboost_program_options-mgw46-mt-sd-1_53
/usr/bin/ld: cannot find -lboost_thread-mgw46-mt-sd-1_53
collect2: error: ld returned 1 exit status
make: *** [memecoin-qt] Error 1

4. Prepare the installation

mining@mining:cd ~/src/MemeCoin
mining@mining:qmake USE_UPNP=- USE_QRCODE=0 USE_IPV6=0

You can safely ignore following messages:
Project MESSAGE: Building without UPNP support
Project MESSAGE: Building with UPNP supportRemoved plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.

5. Build it

mining@mining: make

The last step might take a while, but once it’s finished, there should be an executable file called ‘memecoin-qt’ in ~/src/Memecoin/

Edit 2013-12-20: Please also check out my cryptocurrency build script which automates a few things for you on Linux.