From 6e7eace93b06ff1cd214e8da9fa2fe58a3f02e32 Mon Sep 17 00:00:00 2001 From: Pawel Cioch Date: Wed, 26 Feb 2020 20:50:56 -0600 Subject: [PATCH] updated documentation on how to build QT GUI on Linux --- README.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index dfc6ed4a..3e4595b0 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ cd ~; sudo apt-get install -y ntp git build-essential libssl-dev libdb-dev libdb ### Dependencies build and link ``` -cd ~; wget http://download.oracle.com/berkeley-db/db-6.2.32.NC.tar.gz; tar zxf db-6.2.32.NC.tar.gz; cd db-6.2.32.NC/build_unix; ../dist/configure --enable-cxx; make; sudo make install; sudo ln -s /usr/local/BerkeleyDB.6.2/lib/libdb-6.2.so /usr/lib/libdb-6.2.so; sudo ln -s /usr/local/BerkeleyDB.6.2/lib/libdb_cxx-6.2.so /usr/lib/libdb_cxx-6.2.so; export BDB_INCLUDE_PATH="/usr/local/BerkeleyDB.6.2/include"; export BDB_LIB_PATH="/usr/local/BerkeleyDB.6.2/lib" +cd ~; wget http://download.oracle.com/berkeley-db/db-6.2.32.NC.tar.gz; tar zxf db-6.2.32.NC.tar.gz; cd db-6.2.32.NC/build_unix; ../dist/configure --enable-cxx --disable-shared; make; sudo make install; sudo ln -s /usr/local/BerkeleyDB.6.2/lib/libdb-6.2.so /usr/lib/libdb-6.2.so; sudo ln -s /usr/local/BerkeleyDB.6.2/lib/libdb_cxx-6.2.so /usr/lib/libdb_cxx-6.2.so; export BDB_INCLUDE_PATH="/usr/local/BerkeleyDB.6.2/include"; export BDB_LIB_PATH="/usr/local/BerkeleyDB.6.2/lib" ``` ### GitHub pull (Source Download) @@ -85,6 +85,29 @@ cd ~; git clone https://github.com/DigitalNoteXDN/DigitalNote-2 DigitalNote cd ~; cd ~/DigitalNote/src; chmod a+x obj; chmod a+x leveldb/build_detect_platform; chmod a+x secp256k1; chmod a+x leveldb; chmod a+x ~/DigitalNote/src; chmod a+x ~/DigitalNote; make -f makefile.unix USE_UPNP=-; cd ~; cp -r ~/DigitalNote/src/DigitalNoted /usr/local/bin/DigitalNoted; ``` +### (Optional) Build DigitalNote-QT (GUI wallet) on Linux + +**All previous steps must be completed first.** + +If you recompiling some other time you don't have to repeat previous steps, but need to define those variables. Skip this command if this is your first build and previous steps were performed in current terminal session. +``` +export BDB_INCLUDE_PATH="/usr/local/BerkeleyDB.6.2/include"; export BDB_LIB_PATH="/usr/local/BerkeleyDB.6.2/lib" +``` + +With UPNP: + +``` +cd ~; cd ~/DigitalNote; qmake -qt=qt5; make +``` + +**Recommended Without** UPNP: + +``` +cd ~; cd ~/DigitalNote; qmake -qt=qt5 USE_UPNP=-; make +``` + + + ### Create config file for daemon ``` cd ~; sudo ufw allow 18092/tcp; sudo ufw allow 18094/tcp; sudo ufw allow 22/tcp; sudo mkdir ~/.XDN; cat << "CONFIG" >> ~/.XDN/DigitalNote.conf