Author Topic: Ubuntu GUI how to?  (Read 11296 times)

0 Members and 1 Guest are viewing this topic.

merockstar

  • Guest
apt-get install qttools5-dev qttools5-dev-tools

worked great. thanks!

Offline maqifrnswa

  • Hero Member
  • *****
  • Posts: 661
    • View Profile
In fact .. it is not so easy to build binaries for linux systems as you need to precompile them for almost each distribution independently ..

However, they could publish binaries for at least ubuntu

that's true, the most linux users use Ubuntu  or distributions based on Ubuntu (like Mint for example)...
the more "advanced" users should not have problems building the wallet visiting  https://github.com/dacsunlimited/bitsharesx/blob/master/BUILD_UBUNTU.md   for more instructions

there are problems that come up every once and a while (new dependencies, changes to the build system that break things, new build options) which could throw even "advanced" users. i've had to stop building the GUI for my PPA because out-of-tree builds are broken, and when I tried to fix them some translation bugs popped up. real-job prevents me from really diving into fixing them so I have to see if it is fixed later on. Not complaining, just pointing out that it is hard even for advanced users.
maintains an Ubuntu PPA: https://launchpad.net/~showard314/+archive/ubuntu/bitshares [15% delegate] wallet_account_set_approval maqifrnswa true [50% delegate] wallet_account_set_approval delegate1.maqifrnswa true

Offline liondani

  • Hero Member
  • *****
  • Posts: 3737
  • Inch by inch, play by play
    • View Profile
    • My detailed info
  • BitShares: liondani
  • GitHub: liondani
In fact .. it is not so easy to build binaries for linux systems as you need to precompile them for almost each distribution independently ..

However, they could publish binaries for at least ubuntu

that's true, the most linux users use Ubuntu  or distributions based on Ubuntu (like Mint for example)...
the more "advanced" users should not have problems building the wallet visiting  https://github.com/dacsunlimited/bitsharesx/blob/master/BUILD_UBUNTU.md   for more instructions

Offline pc

  • Hero Member
  • *****
  • Posts: 1530
    • View Profile
    • Bitcoin - Perspektive oder Risiko?
  • BitShares: cyrano
I have packages for Fedora + openSUSE (and CLI only for CentOS): http://software.opensuse.org/download.html?project=home%3Ap_conrad%3Abts&package=BitSharesX . openSUSE users must also add the KDE:Qt5 repository for the latest qt libraries.

Donations welcome btsx:cyrano :-)
Bitcoin - Perspektive oder Risiko? ISBN 978-3-8442-6568-2 http://bitcoin.quisquis.de

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
In fact .. it is not so easy to build binaries for linux systems as you need to precompile them for almost each distribution independently ..

However, they could publish binaries for at least ubunut

Offline liondani

  • Hero Member
  • *****
  • Posts: 3737
  • Inch by inch, play by play
    • View Profile
    • My detailed info
  • BitShares: liondani
  • GitHub: liondani
dacslimited should provide, except the windows and mac binaries,
Linux binaries also for download ...

it's not a big deal for Dacslimited but a very big deal for the average Linux user/member

Don't underestimate penguins please!

« Last Edit: September 23, 2014, 01:21:47 pm by liondani »

Offline abrakadabra

  • Full Member
  • ***
  • Posts: 72
    • View Profile
Code: [Select]
merockstar@merockstar-HP-Pavilion-dv6-Notebook-PC:~/bitsharesx/programs$ git submodule update
error: The following untracked working tree files would be overwritten by checkout:
app/css/main.less
Please move or remove them before you can switch branches.
Aborting
Unable to checkout '241699f7ce59e63d0d8e15546a6d617ebd18486e' in submodule path 'web_wallet'
merockstar@merockstar-HP-Pavilion-dv6-Notebook-PC:~/bitsharesx/programs$ cd web_wallet/
merockstar@merockstar-HP-Pavilion-dv6-Notebook-PC:~/bitsharesx/programs/web_wallet$ ls
app  config  dist  generated  Gruntfile.js  LICENSE.md  node_modules  package.json  README.md  reference_app  spec  spec-e2e  tasks  vendor
merockstar@merockstar-HP-Pavilion-dv6-Notebook-PC:~/bitsharesx/programs/web_wallet$ cd app
merockstar@merockstar-HP-Pavilion-dv6-Notebook-PC:~/bitsharesx/programs/web_wallet/app$ ls
css  img  js  pages  static  templates
merockstar@merockstar-HP-Pavilion-dv6-Notebook-PC:~/bitsharesx/programs/web_wallet/app$ cd css/
merockstar@merockstar-HP-Pavilion-dv6-Notebook-PC:~/bitsharesx/programs/web_wallet/app/css$ ls
footer.css  forms.css  help.css  layout.css  main.css  main.less  market.css  my-ng-grid.css  spinner.css  toolbar.css
merockstar@merockstar-HP-Pavilion-dv6-Notebook-PC:~/bitsharesx/programs/web_wallet/app/css$ mv main.less ~/main.less
merockstar@merockstar-HP-Pavilion-dv6-Notebook-PC:~/bitsharesx/programs/web_wallet/app/css$ ls
footer.css  forms.css  help.css  layout.css  main.css  market.css  my-ng-grid.css  spinner.css  toolbar.css
merockstar@merockstar-HP-Pavilion-dv6-Notebook-PC:~/bitsharesx/programs/web_wallet/app/css$ cd ~/bitsharesx/
merockstar@merockstar-HP-Pavilion-dv6-Notebook-PC:~/bitsharesx$ git submodule update
Submodule path 'programs/web_wallet': checked out '241699f7ce59e63d0d8e15546a6d617ebd18486e'
merockstar@merockstar-HP-Pavilion-dv6-Notebook-PC:~/bitsharesx$ cmake -DINCLUDE_QT_WAALLET=ON .
-- Using custom FindBoost.cmake
-- Boost version: 1.54.0
-- Found the following Boost libraries:
--   thread
--   date_time
--   system
--   filesystem
--   program_options
--   signals
--   serialization
--   chrono
--   unit_test_framework
--   context
--   locale
-- Using custom FindBoost.cmake
-- Boost version: 1.54.0
-- Found the following Boost libraries:
--   coroutine
-- Configuring BitShares on Linux
-- Using  as BerkeleyDB root
-- Looking for: db_cxx-6.0
-- debug/usr/lib/x86_64-linux-gnu/libdb_cxx.sooptimized/usr/lib/x86_64-linux-gnu/libdb_cxx.so
-- Found BerkeleyDB: /usr/include 
-- Configuring project fc located in: /home/merockstar/bitsharesx/libraries/fc
-- Configuring fc to build on Unix/Apple
-- Using custom FindBoost.cmake
-- Boost version: 1.54.0
-- Found the following Boost libraries:
--   thread
--   date_time
--   system
--   filesystem
--   program_options
--   signals
--   serialization
--   chrono
--   unit_test_framework
--   context
--   locale
--   iostreams
--   coroutine
-- Finished fc module configuration...
-- Using  as BerkeleyDB root
-- Looking for: db_cxx-6.0
-- debug/usr/lib/x86_64-linux-gnu/libdb_cxx.sooptimized/usr/lib/x86_64-linux-gnu/libdb_cxx.so
-- Found BerkeleyDB: /usr/include 
-- Enabling Bitcoin Core Wallet Imports
CMake Error at programs/qt_wallet/CMakeLists.txt:51 (find_package):
  By not providing "FindQt5LinguistTools.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "Qt5LinguistTools", but CMake did not find one.

  Could not find a package configuration file provided by "Qt5LinguistTools"
  with any of the following names:

    Qt5LinguistToolsConfig.cmake
    qt5linguisttools-config.cmake

  Add the installation prefix of "Qt5LinguistTools" to CMAKE_PREFIX_PATH or
  set "Qt5LinguistTools_DIR" to a directory containing one of the above
  files.  If "Qt5LinguistTools" provides a separate development package or
  SDK, be sure it has been installed.


-- Configuring incomplete, errors occurred!
See also "/home/merockstar/bitsharesx/CMakeFiles/CMakeOutput.log".

I vaguely recall encountering this error before but I couldn't figure out how to fix it.

git submodule update wouldn't run until I moved /web_wallet/app/main/main.less somwhere else, then I get this on cmake. I think I have to update something.
apt-get install qttools5-dev qttools5-dev-tools

merockstar

  • Guest
Code: [Select]
merockstar@merockstar-HP-Pavilion-dv6-Notebook-PC:~/bitsharesx/programs$ git submodule update
error: The following untracked working tree files would be overwritten by checkout:
app/css/main.less
Please move or remove them before you can switch branches.
Aborting
Unable to checkout '241699f7ce59e63d0d8e15546a6d617ebd18486e' in submodule path 'web_wallet'
merockstar@merockstar-HP-Pavilion-dv6-Notebook-PC:~/bitsharesx/programs$ cd web_wallet/
merockstar@merockstar-HP-Pavilion-dv6-Notebook-PC:~/bitsharesx/programs/web_wallet$ ls
app  config  dist  generated  Gruntfile.js  LICENSE.md  node_modules  package.json  README.md  reference_app  spec  spec-e2e  tasks  vendor
merockstar@merockstar-HP-Pavilion-dv6-Notebook-PC:~/bitsharesx/programs/web_wallet$ cd app
merockstar@merockstar-HP-Pavilion-dv6-Notebook-PC:~/bitsharesx/programs/web_wallet/app$ ls
css  img  js  pages  static  templates
merockstar@merockstar-HP-Pavilion-dv6-Notebook-PC:~/bitsharesx/programs/web_wallet/app$ cd css/
merockstar@merockstar-HP-Pavilion-dv6-Notebook-PC:~/bitsharesx/programs/web_wallet/app/css$ ls
footer.css  forms.css  help.css  layout.css  main.css  main.less  market.css  my-ng-grid.css  spinner.css  toolbar.css
merockstar@merockstar-HP-Pavilion-dv6-Notebook-PC:~/bitsharesx/programs/web_wallet/app/css$ mv main.less ~/main.less
merockstar@merockstar-HP-Pavilion-dv6-Notebook-PC:~/bitsharesx/programs/web_wallet/app/css$ ls
footer.css  forms.css  help.css  layout.css  main.css  market.css  my-ng-grid.css  spinner.css  toolbar.css
merockstar@merockstar-HP-Pavilion-dv6-Notebook-PC:~/bitsharesx/programs/web_wallet/app/css$ cd ~/bitsharesx/
merockstar@merockstar-HP-Pavilion-dv6-Notebook-PC:~/bitsharesx$ git submodule update
Submodule path 'programs/web_wallet': checked out '241699f7ce59e63d0d8e15546a6d617ebd18486e'
merockstar@merockstar-HP-Pavilion-dv6-Notebook-PC:~/bitsharesx$ cmake -DINCLUDE_QT_WAALLET=ON .
-- Using custom FindBoost.cmake
-- Boost version: 1.54.0
-- Found the following Boost libraries:
--   thread
--   date_time
--   system
--   filesystem
--   program_options
--   signals
--   serialization
--   chrono
--   unit_test_framework
--   context
--   locale
-- Using custom FindBoost.cmake
-- Boost version: 1.54.0
-- Found the following Boost libraries:
--   coroutine
-- Configuring BitShares on Linux
-- Using  as BerkeleyDB root
-- Looking for: db_cxx-6.0
-- debug/usr/lib/x86_64-linux-gnu/libdb_cxx.sooptimized/usr/lib/x86_64-linux-gnu/libdb_cxx.so
-- Found BerkeleyDB: /usr/include 
-- Configuring project fc located in: /home/merockstar/bitsharesx/libraries/fc
-- Configuring fc to build on Unix/Apple
-- Using custom FindBoost.cmake
-- Boost version: 1.54.0
-- Found the following Boost libraries:
--   thread
--   date_time
--   system
--   filesystem
--   program_options
--   signals
--   serialization
--   chrono
--   unit_test_framework
--   context
--   locale
--   iostreams
--   coroutine
-- Finished fc module configuration...
-- Using  as BerkeleyDB root
-- Looking for: db_cxx-6.0
-- debug/usr/lib/x86_64-linux-gnu/libdb_cxx.sooptimized/usr/lib/x86_64-linux-gnu/libdb_cxx.so
-- Found BerkeleyDB: /usr/include 
-- Enabling Bitcoin Core Wallet Imports
CMake Error at programs/qt_wallet/CMakeLists.txt:51 (find_package):
  By not providing "FindQt5LinguistTools.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "Qt5LinguistTools", but CMake did not find one.

  Could not find a package configuration file provided by "Qt5LinguistTools"
  with any of the following names:

    Qt5LinguistToolsConfig.cmake
    qt5linguisttools-config.cmake

  Add the installation prefix of "Qt5LinguistTools" to CMAKE_PREFIX_PATH or
  set "Qt5LinguistTools_DIR" to a directory containing one of the above
  files.  If "Qt5LinguistTools" provides a separate development package or
  SDK, be sure it has been installed.


-- Configuring incomplete, errors occurred!
See also "/home/merockstar/bitsharesx/CMakeFiles/CMakeOutput.log".

I vaguely recall encountering this error before but I couldn't figure out how to fix it.

git submodule update wouldn't run until I moved /web_wallet/app/main/main.less somwhere else, then I get this on cmake. I think I have to update something.

Offline maqifrnswa

  • Hero Member
  • *****
  • Posts: 661
    • View Profile
i used buildweb, what's the diff? should I recompile?

buildweb only works if you have never built the qt wallet before. If you rebuild the qt wallet, you have to do forcebuildweb otherwise it will never update the user interface in the qt wallet.

okay so that builds the web wallet (which the qt client uses to display the interface).

and I'm fine now even though I didn't use forcebuildweb because the GUI likely hasn't changed since I last compiled.

however, in the future I'll want to use forcebuildweb to make sure that any gui changes get used.

I understand?

yes  :)
it's done this way so the c++ developers don't need to spend time recompiling the web interface when they are busy working on the guts of the program. At some point in the future it will probably change, but for now it's probably more important to make it easier for the developers than "expert" users that will compile it ourselves anyways!
maintains an Ubuntu PPA: https://launchpad.net/~showard314/+archive/ubuntu/bitshares [15% delegate] wallet_account_set_approval maqifrnswa true [50% delegate] wallet_account_set_approval delegate1.maqifrnswa true

merockstar

  • Guest
i used buildweb, what's the diff? should I recompile?

buildweb only works if you have never built the qt wallet before. If you rebuild the qt wallet, you have to do forcebuildweb otherwise it will never update the user interface in the qt wallet.

okay so that builds the web wallet (which the qt client uses to display the interface).

and I'm fine now even though I didn't use forcebuildweb because the GUI likely hasn't changed since I last compiled.

however, in the future I'll want to use forcebuildweb to make sure that any gui changes get used.

I understand?

Offline maqifrnswa

  • Hero Member
  • *****
  • Posts: 661
    • View Profile
i used buildweb, what's the diff? should I recompile?

buildweb only works if you have never built the qt wallet before. If you rebuild the qt wallet, you have to do forcebuildweb otherwise it will never update the user interface in the qt wallet.
maintains an Ubuntu PPA: https://launchpad.net/~showard314/+archive/ubuntu/bitshares [15% delegate] wallet_account_set_approval maqifrnswa true [50% delegate] wallet_account_set_approval delegate1.maqifrnswa true

Offline Riverhead

If it worked you're fine.

merockstar

  • Guest
probably should be updated to the new build targets

Code: [Select]
git pull
git checkout v0.4.16-RC1
git submodule init
git submodule update
git cmake -DINCLUDE_QT_WALLET=ON .
make bitshares_client
make forcebuildweb
make BitSharesX

note: make forcebuildweb is different

i used buildweb, what's the diff? should I recompile?

Offline maqifrnswa

  • Hero Member
  • *****
  • Posts: 661
    • View Profile
probably should be updated to the new build targets

Code: [Select]
git pull
git checkout v0.4.16-RC1
git submodule init
git submodule update
git cmake -DINCLUDE_QT_WALLET=ON .
make bitshares_client
make forcebuildweb
make BitSharesX

note: make forcebuildweb is different
maintains an Ubuntu PPA: https://launchpad.net/~showard314/+archive/ubuntu/bitshares [15% delegate] wallet_account_set_approval maqifrnswa true [50% delegate] wallet_account_set_approval delegate1.maqifrnswa true

merockstar

  • Guest
Riverhead's instructions in this thread worked for me.

Code: [Select]
git pull
git checkout v0.4.16-RC1
git submodule init
git submodule update
git cmake -DINCLUDE_QT_WALLET=ON .
make bitshares_client
make buildweb
make BitSharesX

trick seems to be to add git checkout line, and to compile command line and gui separately.

38PTSWarrior

  • Guest
Oh god, I'm so happy that I'm not building right now :)

Offline speedy

  • Hero Member
  • *****
  • Posts: 1160
    • View Profile
  • BitShares: speedy
Got the same build error  ???

merockstar

  • Guest
attempt to upgrade to 0.4.16rc1 resulted in this:

Code: [Select]
[ 92%] Building CXX object programs/utils/web_update_utility/CMakeFiles/web_update_utility.dir/main.cpp.o
In file included from /home/merockstar/bitsharesx/programs/utils/web_update_utility/main.cpp:1:0:
/home/merockstar/bitsharesx/programs/utils/web_update_utility/update_utility.hpp:5:26: fatal error: WebUpdates.hpp: No such file or directory
 #include <WebUpdates.hpp>
                          ^
compilation terminated.
make[2]: *** [programs/utils/web_update_utility/CMakeFiles/web_update_utility.dir/main.cpp.o] Error 1
make[1]: *** [programs/utils/web_update_utility/CMakeFiles/web_update_utility.dir/all] Error 2
make: *** [all] Error 2


merockstar

  • Guest
thank you very very much. xeroc and tonyk

Offline tonyk

  • Hero Member
  • *****
  • Posts: 3308
    • View Profile
Code: [Select]
merockstar@merockstar-HP-Pavilion-dv6-Notebook-PC:~/bitsharesx$ git pull https://github.com/dacsunlimited/bitsharesx.git 0.4.15-a
fatal: Couldn't find remote ref 0.4.15-a
Unexpected end of command stream

I haven't been able to upgrade for a few versions now.

v0.4.15-a
Lack of arbitrage is the problem, isn't it. And this 'should' solves it.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
these ones are the real version numbers:
https://github.com/dacsunlimited/bitsharesx/tags

don't take any other

merockstar

  • Guest
Code: [Select]
merockstar@merockstar-HP-Pavilion-dv6-Notebook-PC:~/bitsharesx$ git pull https://github.com/dacsunlimited/bitsharesx.git 0.4.15-a
fatal: Couldn't find remote ref 0.4.15-a
Unexpected end of command stream

I haven't been able to upgrade for a few versions now.

Offline davidpbrown

Just to note, this does work on Linux Mint 17 as per Reply#6 and #11 above. This was done on a older laptop with only 0.5GB RAM and took ~12 hours, so looking forward to a time this is in a BitShares repository to avoid that.

The only bit I didn't do because it gave an error was the git checkout but not sure what value that adds. I couldn't determine easily what version number is now and slightly surprised that isn't move obvious within github.

Thanks then to 麥可貓 jimewu and puppies. :)
฿://1CBxm54Ah5hiYxiUtD7JGYRXykT5Z6ZuMc

Offline puppies

  • Hero Member
  • *****
  • Posts: 1659
    • View Profile
  • BitShares: puppies
moving from 0.4.5 to 0.4.6 merges the data directories of the cli and gui clients.  If you copy ~/BitShares X to ~/.BitSharesX you wont need to create  a new wallet or redownload the blockchain.  Please make sure that you aren't overwriting a wallet that is already in .BitSharesX
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline puppies

  • Hero Member
  • *****
  • Posts: 1659
    • View Profile
  • BitShares: puppies
I updated my instructions.  Please let me know how it works for you, or if I have any typos.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline vikram

It would be great to get this on the community wiki if it's not already there.

Offline gamey

  • Hero Member
  • *****
  • Posts: 2253
    • View Profile
There is also this. 

https://bitsharestalk.org/index.php?topic=5951.0

(for anyone searching and finding this thread.. the above looks to be a well written walk-through)

I speak for myself and only myself.

Offline maqifrnswa

  • Hero Member
  • *****
  • Posts: 661
    • View Profile
maintains an Ubuntu PPA: https://launchpad.net/~showard314/+archive/ubuntu/bitshares [15% delegate] wallet_account_set_approval maqifrnswa true [50% delegate] wallet_account_set_approval delegate1.maqifrnswa true

Offline puppies

  • Hero Member
  • *****
  • Posts: 1659
    • View Profile
  • BitShares: puppies
There is a guide for building qt_wallet of BitSharesX in ubuntu 14.04 here.
However, it's in chinese. So I roughly translate it as the following:

1. Install necessary packages:
Code: [Select]
$sudo apt-get update
$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
in Ubuntu 14.04, you also have to install qt5.3.0 and node.js from their official sites.

2. Fetch the source code

Code: [Select]
$ git clone https://github.com/BitShares/bitshares_toolkit.git
$ cd bitshares_toolkit
$ git submodule init
$ git submodule update
$ git checkout 0.2.1
$cmake -DINCLUDE_QT_WALLET=ON CMakeLists.txt

3. Prepare the web wallet
Code: [Select]
$ sudo npm install -g lineman
$ cd programs/web_wallet && npm install
$ cd ../../ && make buildweb

4. Build and run your qt_wallet
Code: [Select]
$ makeand you will get your qt_wallet at bitsharesx/programs/qt_wallet:
Code: [Select]
$ bitsharesx/programs/qt_wallet/BitSharesX



The make buildweb is definitely better than my way of doing it.  that copies the htdocs into the correct folder automatically for you.  I didn't build qt or nodejs from source though.  I got them out of the standard trusty repo.  I am installing a fresh os in a virtual machine to verify exactly which dependencies are needed.

**edit**  I had missed a dependency nodejs-legacy in my original post.  adding the following dependencies will prevent you from having to build nodejs from source.  I am currently building the web wallet, will update if I missed any qt dependencies.
Code: [Select]
sudo apt-get install qt5-default libqt5webkit5-dev npm nodejs-legacy
**double edit** I can now confirm that only those four extra dependencies are needed to build the qt_wallet on a fresh 14.04 ubuntu.
« Last Edit: July 23, 2014, 06:25:27 pm by puppies »
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline puppies

  • Hero Member
  • *****
  • Posts: 1659
    • View Profile
  • BitShares: puppies
Can someone checkin the htdocs somewhere?

Try https://www.dropbox.com/s/q1b429v945rqysp/htdocs.tar.gz

I'm not even sure if that link will work.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline 麥可貓

  • Sr. Member
  • ****
  • Posts: 267
    • View Profile
Can someone checkin the htdocs somewhere?

I literally followed what I posted above and did not asked for any missed files.
PTS: PmRVDPymZqSAZEXauHZSewrUrE66af7epT
BTSX: michaelcat
Delegate Team: x1.sun  x2.sun

38PTSWarrior

  • Guest
Oh that's good news!

Offline maqifrnswa

  • Hero Member
  • *****
  • Posts: 661
    • View Profile
Can someone checkin the htdocs somewhere?

i almost have a PPA ready, don't know how much time I'll have to work on it today though. that should make installation really easy
maintains an Ubuntu PPA: https://launchpad.net/~showard314/+archive/ubuntu/bitshares [15% delegate] wallet_account_set_approval maqifrnswa true [50% delegate] wallet_account_set_approval delegate1.maqifrnswa true

Offline speedy

  • Hero Member
  • *****
  • Posts: 1160
    • View Profile
  • BitShares: speedy
Can someone checkin the htdocs somewhere?

Offline 麥可貓

  • Sr. Member
  • ****
  • Posts: 267
    • View Profile
There is a guide for building qt_wallet of BitSharesX in ubuntu 14.04 here.
However, it's in chinese. So I roughly translate it as the following:

1. Install necessary packages:
Code: [Select]
$sudo apt-get update
$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
in Ubuntu 14.04, you also have to install qt5.3.0 and node.js from their official sites.

2. Fetch the source code

Code: [Select]
$ git clone https://github.com/BitShares/bitshares_toolkit.git
$ cd bitshares_toolkit
$ git submodule init
$ git submodule update
$ git checkout 0.2.1
$cmake -DINCLUDE_QT_WALLET=ON CMakeLists.txt

3. Prepare the web wallet
Code: [Select]
$ sudo npm install -g lineman
$ cd programs/web_wallet && npm install
$ cd ../../ && make buildweb

4. Build and run your qt_wallet
Code: [Select]
$ makeand you will get your qt_wallet at bitsharesx/programs/qt_wallet:
Code: [Select]
$ bitsharesx/programs/qt_wallet/BitSharesX

« Last Edit: July 23, 2014, 02:27:45 pm by 麥可貓 »
PTS: PmRVDPymZqSAZEXauHZSewrUrE66af7epT
BTSX: michaelcat
Delegate Team: x1.sun  x2.sun

Offline speedy

  • Hero Member
  • *****
  • Posts: 1160
    • View Profile
  • BitShares: speedy
I can post the htdocs somewhere when I get home.

So lineman is only used to generate the docs - thanks puppies  +5%

Offline puppies

  • Hero Member
  • *****
  • Posts: 1659
    • View Profile
  • BitShares: puppies
I can post the htdocs somewhere when I get home.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline speedy

  • Hero Member
  • *****
  • Posts: 1160
    • View Profile
  • BitShares: speedy
Is there no way to compile the qt-wallet without pulling in the whole of node.js onto my box?

Offline puppies

  • Hero Member
  • *****
  • Posts: 1659
    • View Profile
  • BitShares: puppies
edit.  here are some updated instructions.

Code: [Select]
sudo apt-get update
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 qt5-default libqt5webkit5-dev npm nodejs-legacy
git clone https://github.com/dacsunlimited/bitsharesx.git
cd bitsharesx
git checkout 0.4.5 (use the version number you want to build in this place.)
git submodule init
git submodule update
cd programs/web_wallet
sudo npm install -g lineman
sudo npm install
cd ../..
cmake -DINCLUDE_QT_WALLET=ON .
make buildweb
make

If all goes well you will have an executable named BitSharesX in /bitsharesx/programs/qt_wallet/bin that will be your gui wallet.

This is how I have been doing it.

To upgrade
Code: [Select]
cd bitsharesx
git pull https://github.com/dacsunlimited/bitsharesx.git "put version number here without quotes"
git submodule update
cmake -DINCLUDE_QT_WALLET=ON .
make buildweb
make

This last update threw an error at the make buildweb step about htdocs already existing.  I ended up just renaming bitsharesx/programs/qt_wallet/htdocs and trying again.
« Last Edit: August 22, 2014, 12:13:13 am by puppies »
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline bytemaster

System Ubuntu 14.04
I complied bitsharesx.git (hat to increase the swap).
How do I run the GUI wallet in Ubuntu? Do I follow instructions in /qt_wallet/README.md ?
Are there different wallets (webwallet and desktop wallet) or just one?
Thanks!

BUILD_OSX has instructions that should be helpful for Ubuntu as well.
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline santaclause102

  • Hero Member
  • *****
  • Posts: 2486
    • View Profile
System Ubuntu 14.04
I complied bitsharesx.git (hat to increase the swap).
How do I run the GUI wallet in Ubuntu? Do I follow instructions in /qt_wallet/README.md ?
Are there different wallets (webwallet and desktop wallet) or just one?
Thanks!