jlopp / statoshi

Bitcoin Core + StatsD integration
https://jlopp.github.io/statoshi/
MIT License
233 stars 26 forks source link

build error - error: ‘relative’ is not a member of ‘fs’ #43

Closed cryptozeny closed 5 years ago

cryptozeny commented 5 years ago

on ubuntu 16.04 64-Bit

I did:

./autogen.sh && ./configure && make

But I gor error:

  CXX      wallet/libbitcoin_wallet_a-walletdb.o
  CXX      wallet/libbitcoin_wallet_a-walletutil.o
wallet/walletutil.cpp: In function ‘std::vector<boost::filesystem::path> ListWalletDir()’:
wallet/walletutil.cpp:60:32: error: ‘relative’ is not a member of ‘fs’
             paths.emplace_back(fs::relative(it->path(), wallet_dir));
                                ^
wallet/walletutil.cpp:71:36: error: ‘relative’ is not a member of ‘fs’
                 paths.emplace_back(fs::relative(it->path(), wallet_dir));
                                    ^
Makefile:6912: recipe for target 'wallet/libbitcoin_wallet_a-walletutil.o' failed
make[2]: *** [wallet/libbitcoin_wallet_a-walletutil.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/home/ak/git/SUGAR/TOOLS/statoshi/src'
Makefile:10250: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/ak/git/SUGAR/TOOLS/statoshi/src'
Makefile:774: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

Any idea?

cryptozeny commented 5 years ago

https://bitcoin.stackexchange.com/questions/80321/bitcoincore-ubuntu-buiild-error-relative-is-not-a-member-of-fs

jlopp commented 5 years ago

Hm, builds for me on Ubuntu 18.04...

There are two things I'd try. First, make sure all of the dependency libraries are updated as outlined in https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md

If you still get errors while building, try building the dependencies from scratch as outlined in https://github.com/bitcoin/bitcoin/tree/master/depends

Basically, cd into the 'depends' directory, run 'make' and then back out to the main dir and run 'configure' with the --prefix=pwd/depends/x86_64- param