Building Linux Desktop Wallet from sources

It is a far more preferable way to get the working wallet for your computer: individual builds are usually faster and more secure than generic ones.

The total process will take from 5 to 15 minutes depending on your hardware (and probably a bit of luck).

The release version of sources can be obtained here. Download latest ones from .tag.gz package to the freshly created directory.

Then run tar -xf vNNN.tar.gz and the directory scashcpp-NNN will be created.

The detailed build process is described in this document (including some troubleshooting steps). Its local copy comes with each release too. In short, all steps are simple enough.

Download and install the prerequisites:
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev libqt4-dev libprotobuf-dev

Create makefile (in scashcpp-NNN directory):
qmake-qt4

Make wallet (in scashcpp-NNN directory):
make

Then (after 5-10 minutes) the file with name
./scash-qt
will be produced. This is your freshly compiled wallet.

You can run it from the same directory or copy to any preferable one, such as /usr/local/bin.

6 Replies to “Building Linux Desktop Wallet from sources”

  1. Could you please provide compiled binaries for Ubuntu 17.10.1? I have strange issues while compilation and the precompiled wallet complains about libdb_cxx version.

    1. Does this step help?
      sudo add-apt-repository ppa:bitcoin/bitcoin
      sudo apt-get update
      sudo apt-get install libdb4.8-dev libdb4.8++-dev
      (just before make)

      We haven’t tested build on Ubuntu 17.10.1 since it is very new, but the idea of providing binaries for all tested systems looks good.
      Thank you.

      1. I’ve managed to build wallet from sources, looks like this step is really required. But it still does not work, showing “out of sync” and there’s no activity in performance charts too. What to do next?

        1. Contratz! Out of sync message is not an error and will be automatically resolved 05 Feb after network relaunch, please wait.

  2. Help plz, i cant start wallet on ubuntu 16.04

    Xlib: extension “XInputExtension” missing on display “:10.0”.
    scash-qt: Fatal IO error: client killed

    what i need do?

    1. Sorry, this issue looks new for us, so it probably will take time to investigate.

      Do you run VNC connection to your Linux? This might be related problem.

      And there is workaround: compile wallet daemon (cd src/; make), run scashd, set up RPC creds in config file
      Then compile console client: (cd cli;/ make) and run ./scash-cli getnewaddress
      The returned string is your new wallet address (private key is stored in wallet.dat accordingly)

Leave a Reply

Your email address will not be published. Required fields are marked *