Comments (9)
checking for Berkeley DB C++ headers... no
Did you install berkeley-db4 using Homebrew as described here:
https://github.com/ElementsProject/elements/blob/alpha/doc/build-osx.md
?
from elements.
@lclc Thanks that worked. but now when I try to make elements, I get this:
Making all in src
CXX script/libalphaconsensus_la-script.lo
In file included from script/script.cpp:12:
In file included from ./streams.h:9:
./allocators.h:14:10: fatal error: 'boost/thread/mutex.hpp' file not found
#include <boost/thread/mutex.hpp>
^
1 error generated.
make[2]: *** [script/libalphaconsensus_la-script.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
I've tried installing boost, boost-build but no success yet.
from elements.
Hmm, from my experience with OS X build issues, these can be very tough to debug. Do you have a /usr/local/include/boost/thread/mutex.hpp
? I believe that file should be provided by one of the boost packages. If it's not present, perhaps try brew doctor
? If you do, for some reason it's not searching there properly.
from elements.
@gwillen yeah I know.
I have "/usr/local/include/boost/thread/mutex.hpp" in the exact path.
I skimmed through MakeFile to figure where is it searching for (either $PATH or ... ) but couldn't find anything related.
from elements.
Ooh, I think I found something. Try running:
xcode-select --install
From this SO answer: http://stackoverflow.com/questions/23905661/on-mac-g-fails-to-search-usr-local-include-and-usr-local-lib-by-default
(Allegedly /usr/local/include
should be in the default search path for includes, but if your commandline tools are somehow not fully-configured this might not be true?)
If that doesn't work, run
cpp -v
and paste the lines following #include <...> search starts here:
from elements.
@gwillen thanks, xcode-select --install
worked for the previous error, but now we have a new one -_-
Making all in src
CXX script/libalphaconsensus_la-script.lo
CXX script/libalphaconsensus_la-interpreter.lo
script/interpreter.cpp:1620:40: warning: unused variable 'vlockBlockHeight'
[-Wunused-variable]
const valtype &vlockBlockHeight = stacktop(stack...
^
In file included from script/interpreter.cpp:6:
script/interpreter.h:163:15: warning: private field 'nSpendHeight' is not used
[-Wunused-private-field]
const int nSpendHeight;
^
2 warnings generated.
CXX script/libalphaconsensus_la-bitcoinconsensus.lo
CXX libalphaconsensus_la-uint256.lo
CXX libalphaconsensus_la-utilstrencodings.lo
CC src/libsecp256k1_la-secp256k1.lo
CCLD libsecp256k1.la
CXXLD libalphaconsensus.la
Undefined symbols for architecture x86_64:
"IsConfirmedBitcoinBlock(uint256 const&, int)", referenced from:
TransactionSignatureChecker::IsConfirmedBitcoinBlock(uint256 const&, bool) const in libalphaconsensus_la-interpreter.o
"CHMAC_SHA256::CHMAC_SHA256(unsigned char const*, unsigned long)", referenced from:
EvalScript(std::__1::vector<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> >, std::__1::allocator<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > > >&, CScript const&, unsigned int, BaseSignatureChecker const&, ScriptError_t*) in libalphaconsensus_la-interpreter.o
"_SSL_library_init", referenced from:
boost::asio::ssl::detail::openssl_init_base::do_init::do_init() in libalphaconsensus_la-interpreter.o
"CHMAC_SHA256::Finalize(unsigned char*)", referenced from:
EvalScript(std::__1::vector<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> >, std::__1::allocator<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > > >&, CScript const&, unsigned int, BaseSignatureChecker const&, ScriptError_t*) in libalphaconsensus_la-interpreter.o
"GetScriptForDestination(boost::variant<CNoDestination, CKeyID, CScriptID, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_> const&)", referenced from:
EvalScript(std::__1::vector<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> >, std::__1::allocator<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > > >&, CScript const&, unsigned int, BaseSignatureChecker const&, ScriptError_t*) in libalphaconsensus_la-interpreter.o
"CheckBitcoinProof(CBlockHeader const&)", referenced from:
EvalScript(std::__1::vector<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> >, std::__1::allocator<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > > >&, CScript const&, unsigned int, BaseSignatureChecker const&, ScriptError_t*) in libalphaconsensus_la-interpreter.o
"CheckProof(CBlockHeader const&)", referenced from:
EvalScript(std::__1::vector<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> >, std::__1::allocator<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > > >&, CScript const&, unsigned int, BaseSignatureChecker const&, ScriptError_t*) in libalphaconsensus_la-interpreter.o
"boost::system::system_category()", referenced from:
__GLOBAL__I_a in libalphaconsensus_la-script.o
boost::asio::ssl::detail::openssl_init_base::do_init::do_init() in libalphaconsensus_la-interpreter.o
___cxx_global_var_init62 in libalphaconsensus_la-interpreter.o
___cxx_global_var_init65 in libalphaconsensus_la-interpreter.o
__GLOBAL__I_a in libalphaconsensus_la-interpreter.o
"CPartialMerkleTree::CPartialMerkleTree()", referenced from:
EvalScript(std::__1::vector<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> >, std::__1::allocator<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > > >&, CScript const&, unsigned int, BaseSignatureChecker const&, ScriptError_t*) in libalphaconsensus_la-interpreter.o
"GetBoolArg(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool)", referenced from:
EvalScript(std::__1::vector<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> >, std::__1::allocator<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > > >&, CScript const&, unsigned int, BaseSignatureChecker const&, ScriptError_t*) in libalphaconsensus_la-interpreter.o
"CBlockHeader::GetHash() const", referenced from:
EvalScript(std::__1::vector<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> >, std::__1::allocator<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > > >&, CScript const&, unsigned int, BaseSignatureChecker const&, ScriptError_t*) in libalphaconsensus_la-interpreter.o
"_SSL_load_error_strings", referenced from:
boost::asio::ssl::detail::openssl_init_base::do_init::do_init() in libalphaconsensus_la-interpreter.o
"CPartialMerkleTree::ExtractMatches(std::__1::vector<uint256, std::__1::allocator<uint256> >&)", referenced from:
EvalScript(std::__1::vector<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> >, std::__1::allocator<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > > >&, CScript const&, unsigned int, BaseSignatureChecker const&, ScriptError_t*) in libalphaconsensus_la-interpreter.o
"CScriptID::CScriptID(CScript const&)", referenced from:
EvalScript(std::__1::vector<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> >, std::__1::allocator<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > > >&, CScript const&, unsigned int, BaseSignatureChecker const&, ScriptError_t*) in libalphaconsensus_la-interpreter.o
"boost::system::generic_category()", referenced from:
__GLOBAL__I_a in libalphaconsensus_la-script.o
__GLOBAL__I_a in libalphaconsensus_la-interpreter.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libalphaconsensus.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
from elements.
Aha, this one I can solve! The problem is that libalphaconsensus doesn't build on some (maybe all, for all I know) OS X machines. The solution is to configure --with-libs=no
, or pull the latest version of elements in which that's now the default. (This was bug #11.) That library is not actually used for anything in elements anyway, as far as I know -- it's built by default in bitcoin (as libbitcoinconsensus) and so it was building by default here too.
from elements.
pulling the latest version did the job.
thanks @gwillen , let's see how it goes from here... pretty excited to see how this will end up :)
from elements.
No problem, let us know if you have any other issues! :-)
from elements.
Related Issues (20)
- PGP signature on the SHA256SUM.asc file
- Increase block size HOT 4
- Can sendmany be used to send assets? HOT 2
- Green wallet seed import can't compatible with sideswap wallet HOT 3
- Elements/Liquidv1 package for StartOS HOT 1
- How to use with bitcoinlib-js HOT 7
- Message signing only works with legacy addresses HOT 4
- Block proof invalid after block 431 HOT 16
- issueasset: issuance is always blinded HOT 2
- RPC example or tutorial opcodes enabled by liquid HOT 1
- Write and sign custom transaction code HOT 2
- Can´t mint tokens HOT 1
- Can't enable coin control features HOT 5
- Given claim_script does not match the given Bitcoin transaction. HOT 9
- signmessage HOT 1
- Wallet migration fails with confidential transactions HOT 8
- wallet managed by elements-cli receives tx with tokens but doesn't process them (not in the locally parsed TX, not in the balance) HOT 2
- Received funds appear in listreceivedbyaddress, but are not taken into account for the wallet balance and cannot be transferred
- Support for Jade hardware wallet HOT 3
- Confidential peg-in transaction HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elements.