Author Topic: Bitshares - Archlinux  (Read 8904 times)

0 Members and 1 Guest are viewing this topic.

Offline bytemaster

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 capoeira

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
turns out that Arch's boost is "too new". read the last two coments: https://aur.archlinux.org/packages/bitsharesx/

Offline jernau

  • Full Member
  • ***
  • Posts: 78
    • View Profile
From the comments section: https://aur.archlinux.org/packages/bitsharesx/?comments=all

Comment by DigitalPioneer
2014-09-09 13:13
This just in, the BitShares core devs have added support for Boost 1.56, so DacSun should be pulling that in for the next release. The build should work again (hopefully) after that.

Comment by DigitalPioneer
2014-09-09 13:09
Nope, it's not just you. Looks like the project is not compatible with Boost 1.56. I hadn't updated yet on my build system. Just did, and now I'm getting the same error.
PTS: PgiEykg2RATYwWYhFtyNRqwSxQyEApLSmW

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Nathan is a core developer .. id say its safe

Offline capoeira

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
Are you compiling with multiple threads?

yes, tried with now with -j1....didn't solve

Also, is your Arch completely up to date?

yes




I'm giving up. you guys think it is dangerous to use the binary of the mantainer of the PCKGBUILD? https://nathanhourt.com/bitsharesx-0.4.12-1-x86_64.pkg.tar.xz

Offline jernau

  • Full Member
  • ***
  • Posts: 78
    • View Profile
Are you compiling with multiple threads? I mean are you using `make -j $(nprocs)`? I had issues with that. If you're not already, try compiling without the -j flag. Also, is your Arch completely up to date?
PTS: PgiEykg2RATYwWYhFtyNRqwSxQyEApLSmW

Offline capoeira

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
Code: [Select]
/usr/include/boost/atomic/atomic.hpp:31:16: error: target of using declaration conflicts with declaration already in scope
using atomics::atomic;

your boost library is up-to-date?

yes it is, maintainer asked the same question (see coments there)

Offline capoeira

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
Just a bit of help. Try the plain bitsharesx package: https://aur.archlinux.org/packages/bitsharesx/

I managed to make that one compile and can maybe help you with any errors. Post the full error log here.

well, the output is exactly from that one

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Code: [Select]
/usr/include/boost/atomic/atomic.hpp:31:16: error: target of using declaration conflicts with declaration already in scope
using atomics::atomic;

your boost library is up-to-date?

Offline jernau

  • Full Member
  • ***
  • Posts: 78
    • View Profile
Just a bit of help. Try the plain bitsharesx package: https://aur.archlinux.org/packages/bitsharesx/

I managed to make that one compile and can maybe help you with any errors. Post the full error log here.
PTS: PgiEykg2RATYwWYhFtyNRqwSxQyEApLSmW


Offline capoeira

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
based on https://aur.archlinux.org/packages/bitshares-x/

PKGBUILD

Code: [Select]
# Maintainer: Qhor Vertoe <vertoe at qhor dot net>

# Contributor: Noel Maersk <veox at wemakethings dot net>
# Contributor: Mike Lenzen <lenzenmi at gmail dot com>

pkgname=bitshares-x
_gitname=bitsharesx
epoch=1
pkgver=0.4.12
pkgrel=1
pkgdesc="BitShares X is a peer-to-peer network-based digital asset exchange."
arch=('i686' 'x86_64')
url="http://bitshares-x.info/"
license=('MIT')
depends=('qt5-base>=5.3' 'boost-libs>=1.52' 'miniupnpc>=1.6')
makedepends=('git' 'boost' 'gcc' 'make' 'nodejs' 'clang')
provides=('bitshares-x')
source=('git://github.com/dacsunlimited/bitsharesx.git'
'BitSharesX.desktop')
md5sums=('SKIP' 'SKIP')

build() {
  export CC=clang
  export CXX=clang++
  cd "$srcdir/$_gitname"
  rm -rf CMakeFiles

  # Prepare dependencies
  git submodule init
  git submodule update

  # Checkout release
  git checkout $pkgver

  cd $srcdir/$_gitname/programs/web_wallet
  sudo npm install -g lineman
  npm install

  # Configure and compile the wallet
  cd "$srcdir/$_gitname"
  cmake -DINCLUDE_QT_WALLET=ON .
  make $MAKEFLAGS -j $(nproc) buildweb
  make $MAKEFLAGS -j $(nproc) BitSharesX
}

package() {
  # Install BitShares-X Qt-wallet
  install -Dm644 BitSharesX.desktop ${pkgdir}/usr/share/applications/BitSharesX.desktop
 
  install -Dm755 "$srcdir/$_gitname/programs/qt_wallet/bin/BitSharesX" "$pkgdir/usr/bin/BitSharesX"
  install -Dm644 "$srcdir/$_gitname/programs/qt_wallet/images/qtapp64.png" "$pkgdir/usr/share/pixmaps/bitsharesx256.png"

  # Install license
  install -D -m644 "$srcdir/$_gitname/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
}


BitSharesX.desktop
Code: [Select]
[Desktop Entry]
Name=BitSharesX
Comment=A decentralized bank and exchange
Exec=BitSharesX %u
Icon=/usr/share/pixmaps/bitsharesx256.png
Type=Application
Encoding=UTF-8
Categories=Office;
MimeType=x-scheme-handler/btsx;


don't know what you did but I tried this and still:

Code: [Select]
2 errors generated.
libraries/fc/CMakeFiles/fc.dir/build.make:215: recipe for target 'libraries/fc/CMakeFiles/fc.dir/src/thread/task.cpp.o' failed
make[3]: *** [libraries/fc/CMakeFiles/fc.dir/src/thread/task.cpp.o] Error 1
CMakeFiles/Makefile2:196: recipe for target 'libraries/fc/CMakeFiles/fc.dir/all' failed
make[2]: *** [libraries/fc/CMakeFiles/fc.dir/all] Error 2
CMakeFiles/Makefile2:1862: recipe for target 'programs/qt_wallet/CMakeFiles/BitSharesX.dir/rule' failed
make[1]: *** [programs/qt_wallet/CMakeFiles/BitSharesX.dir/rule] Error 2
Makefile:593: recipe for target 'BitSharesX' failed
make: *** [BitSharesX] Error 2


anyways. the .exe works in wine

Offline sva_h4cky0

  • Jr. Member
  • **
  • Posts: 30
  • onore dikeido
    • View Profile
  • BitShares: sva-h4cky0
based on https://aur.archlinux.org/packages/bitshares-x/

PKGBUILD

Code: [Select]
# Maintainer: Qhor Vertoe <vertoe at qhor dot net>

# Contributor: Noel Maersk <veox at wemakethings dot net>
# Contributor: Mike Lenzen <lenzenmi at gmail dot com>

pkgname=bitshares-x
_gitname=bitsharesx
epoch=1
pkgver=0.4.12
pkgrel=1
pkgdesc="BitShares X is a peer-to-peer network-based digital asset exchange."
arch=('i686' 'x86_64')
url="http://bitshares-x.info/"
license=('MIT')
depends=('qt5-base>=5.3' 'boost-libs>=1.52' 'miniupnpc>=1.6')
makedepends=('git' 'boost' 'gcc' 'make' 'nodejs' 'clang')
provides=('bitshares-x')
source=('git://github.com/dacsunlimited/bitsharesx.git'
'BitSharesX.desktop')
md5sums=('SKIP' 'SKIP')

build() {
  export CC=clang
  export CXX=clang++
  cd "$srcdir/$_gitname"
  rm -rf CMakeFiles

  # Prepare dependencies
  git submodule init
  git submodule update

  # Checkout release
  git checkout $pkgver

  cd $srcdir/$_gitname/programs/web_wallet
  sudo npm install -g lineman
  npm install

  # Configure and compile the wallet
  cd "$srcdir/$_gitname"
  cmake -DINCLUDE_QT_WALLET=ON .
  make $MAKEFLAGS -j $(nproc) buildweb
  make $MAKEFLAGS -j $(nproc) BitSharesX
}

package() {
  # Install BitShares-X Qt-wallet
  install -Dm644 BitSharesX.desktop ${pkgdir}/usr/share/applications/BitSharesX.desktop
 
  install -Dm755 "$srcdir/$_gitname/programs/qt_wallet/bin/BitSharesX" "$pkgdir/usr/bin/BitSharesX"
  install -Dm644 "$srcdir/$_gitname/programs/qt_wallet/images/qtapp64.png" "$pkgdir/usr/share/pixmaps/bitsharesx256.png"

  # Install license
  install -D -m644 "$srcdir/$_gitname/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
}


BitSharesX.desktop
Code: [Select]
[Desktop Entry]
Name=BitSharesX
Comment=A decentralized bank and exchange
Exec=BitSharesX %u
Icon=/usr/share/pixmaps/bitsharesx256.png
Type=Application
Encoding=UTF-8
Categories=Office;
MimeType=x-scheme-handler/btsx;
« Last Edit: September 08, 2014, 10:17:20 pm by sva_h4cky0 »
天の道を行き、総てを司る! Ten no michi o iki, subete o tsukasadoru!

Offline capoeira

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
I tried:
https://aur.archlinux.org/packages/bitshares-x/
https://aur.archlinux.org/packages/bitsharesx/
https://aur.archlinux.org/packages/bitsharesx-gui-git/

all fail.

output of the 3rd script:

Code: [Select]
2 errors generated.
libraries/fc/CMakeFiles/fc.dir/build.make:215: recipe for target 'libraries/fc/CMakeFiles/fc.dir/src/thread/task.cpp.o' failed
make[2]: *** [libraries/fc/CMakeFiles/fc.dir/src/thread/task.cpp.o] Error 1
6 errors generated.
libraries/fc/CMakeFiles/fc.dir/build.make:169: recipe for target 'libraries/fc/CMakeFiles/fc.dir/src/thread/thread_specific.cpp.o' failed
make[2]: *** [libraries/fc/CMakeFiles/fc.dir/src/thread/thread_specific.cpp.o] Error 1
CMakeFiles/Makefile2:196: recipe for target 'libraries/fc/CMakeFiles/fc.dir/all' failed
make[1]: *** [libraries/fc/CMakeFiles/fc.dir/all] Error 2
Makefile:76: recipe for target 'all' failed
make: *** [all] Error 2

Offline jernau

  • Full Member
  • ***
  • Posts: 78
    • View Profile
There's a few of us around. Modprobe is another one :D
PTS: PgiEykg2RATYwWYhFtyNRqwSxQyEApLSmW