Nice job on those build instructions cn-members. I'll post my (slightly different) guide on how to build the light wallet (as well as the CLI client, web wallet, and Qt client) on Ubuntu 14.04 x64. This guide can be used if you want to install Qt directly from its creators rather than relying on a PPA. Please note that I haven't actually tried these exact instructions on a fresh install, but they were reconstructed from memory based on various things I tried. So, let me know if it actually works for you.
Initial setup stage:0) Set up a working directory in which everything will be done and install all pre-requisites from repositories:
~$ mkdir BitShares && cd BitShares
~/BitShares$ sudo apt-get install cmake git libreadline-dev uuid-dev g++ libdb++-dev libdb-dev zip libssl-dev openssl build-essential python-dev autotools-dev libicu-dev libbz2-dev libboost-dev libboost-all-dev npm nodejs-legacy
~/BitShares$ sudo npm install -g lineman
1) Install Qt 5.4:
~/BitShares$ wget http://download.qt-project.org/official_releases/qt/5.4/5.4.0/qt-opensource-linux-x64-5.4.0.run
~/BitShares$ sha256sum qt-opensource-linux-x64-5.4.0.run
Verify that the SHA-256 hash of the executable is correct by comparing to the hash listed
here. Although, the website's current SSL security practices are pretty disappointing.
Then run the installer to install Qt 5.4 in a system-wide location:
~/BitShares$ chmod +x qt-opensource-linux-x64-5.4.0.run
~/BitShares$ sudo ./qt-opensource-linux-x64-5.4.0.run
Then follow the GUI and install in "/opt/Qt5.4.0".
2) Install qml-extras and qml-material into the Qt5.4.0 folder:
~/BitShares$ git clone https://github.com/papyros/qml-extras.git
~/BitShares$ mkdir qml-extras-build && cd qml-extras-build
~/BitShares/qml-extras-build$ /opt/Qt5.4.0/5.4/gcc_64/bin/qmake ../qml-extras
~/BitShares/qml-extras-build$ make && make check
Make sure all the tests pass.
~/BitShares/qml-extras-build$ sudo make install
~/BitShares/qml-extras-build$ cd ..
~/BitShares$ git clone https://github.com/nathanhourt/qml-material.git
~/BitShares$ mkdir qml-material-build %% cd qml-material-build
~/BitShares/qml-material-build$ /opt/Qt5.4.0/5.4/gcc_64/bin/qmake ../qml-material
~/BitShares/qml-material-build$ make && make check
Make sure all the tests pass.
~/BitShares/qml-material-build$ sudo make install
~/BitShares/qml-material-build$ cd ..
3) Initial setup of DevShares:
~/BitShares$ rm -rf bitshares # Remove any prior bitshares folder
~/BitShares$ git clone https://github.com/BitShares/bitshares.git
~/BitShares$ cd bitshares
~/BitShares/bitshares$ git submodule init && git submodule update
~/BitShares/bitshares$ cd programs/web_wallet
~/BitSharesbitshares/programs/web_wallet$ npm install
~/BitSharesbitshares/programs/web_wallet$ cd ../../../
Building DevShares from scratch:If this is the first time building DevShares, or you want to build an update of it from scratch, you must first do the following additional setup before compiling. If you think you can get away with a quick recompilation after some minor changes, skip to "Recompiling Devhares after minor changes".
4) Build from scratch:
~/BitShares$ cd bitshares
~/BitShares/bitshares$ git pull
~/BitShares/bitshares$ git checkout devshares
~/BitShares/bitshares$ git submodule update
~/BitShares/bitshares$ cd ..
~/BitShares$ rm -rf devshares-build # Remove any prior devshares-build folder
~/BitShares$ mkdir devshares-build && cd devshares-build
~/BitShares/devshares-build$ cmake -DINCLUDE_QT_WALLET=ON -DINCLUDE_LIGHT_WALLET=ON -DCMAKE_PREFIX_PATH=/opt/Qt5.4.0/5.4/gcc_64/ ../bitshares/
~/BitShares/devshares-build$ make forcebuildweb
~/BitShares/devshares-build$ make
~/BitShares/devshares-build$ cd ..
The Qt client will be located in "~/BitShares/devshares-build/programs/qt_wallet/bin/DevShares". The light wallet will be located in "~/BitShares/devshares-build/programs/light_wallet/LightWallet". The CLI client will be located in "~/BitShares/devshares-build/programs/client/devshares_client". The CLI client can be run with the "--server" flag to run the backend of the web wallet (make sure to first set up the RPC parameters in the config.json file appropriately). The web wallet can be run from the "~/BitShares/bitshares/programs/web_wallet" folder using "npm start" and then accessed from the browser using
http://localhost:8000/.
Recompiling DevShares after minor changes (assuming updating HEAD of same branch):5) Get latest sources and recompile:
~/BitShares$ cd bitshares
~/BitShares/bitshares$ git pull && git checkout devshares && git submodule update && cd ../devshares-build
~/BitShares/devshares-build$ make forcebuildweb # Only needed if web_wallet code changed
~/BitShares/devshares-build$ make
If there are any problems from this quick recompilation procedure, then go back and do it properly with step 4, and if that has problems then go back to step 3.