Hic inserere motto

Building Unobtanium on Docker

April 17, 2019 — shinohai

This docker recipe has so far proved a stable way to get repeatable results when building Unobtanium binaries for 64-bit Linux and Windows. I am mainly making this post to reference the steps I took, as the method is applicable to most coins.

Download my unobtanium-devenv and untar it.

curl | tar zxvf -

Enter devenv and build the docker image

cd unobtanium-devenv/

docker-compose -f docker-compose.yml -f unobtanium/ build

Go have a coffee and smoke while the container builds.

When that build finishes, start the container.

docker-compose -f docker-compose.yml -f unobtanium/ up -d

Find your container id and connect (as root)

docker container ls --all

docker exec -u root -t -i <container-id> /bin/bash

From the docker shell, go clone my Unobtanium repo.

git clone && cd Unobtanium/depends/

Let's do a Windows build, just for fun.

make HOST=x86_64-w64-mingw32

The process of compiling the dependncies takes about 2 hours. I usually also invoke `import colombian websluts` at this point. When I return to the terminal we are ready to build the UNO qt and cli .exe's

cd ..


./configure --prefix="$PWD/depends/x86_64-w64-mingw32/"


Kill another hour drinking coffee, smoking, and looking at cats on internet.

mkdir -p bin

cp src/*.exe bin/

cp src/qt/unobtanium-qt.exe bin/

Enjoy your shiny new Windows wallet. Repeat the depends step and rebuild to produce binary for any arch you have a config for.

The x86_64 Linux version lets you do nice things, like run custom .qss so I darkened the wallet. I will post this config to the blog shortly.

Have fun, and feel free to complain about this build method on irc or telegram.

Tags: News, Bitcoin, Cryptocurrency, UNIX