Build error: missing <bitcoin/system.hpp>, maybe meant <boost/system.hpp>?
Warchant opened this issue · comments
I cloned master, and did standard build steps:
./autogen.sh
./configure
make
Got this:
CXX src/libbitcoin_network_la-acceptor.lo
CXX src/libbitcoin_network_la-channel.lo
CXX src/libbitcoin_network_la-hosts.lo
CXX src/libbitcoin_network_la-connector.lo
CXX src/libbitcoin_network_la-message_subscriber.lo
CXX src/libbitcoin_network_la-p2p.lo
CXX src/libbitcoin_network_la-proxy.lo
CXX src/libbitcoin_network_la-settings.lo
In file included from src/settings.cpp:19:
./include/bitcoin/network/settings.hpp:24:10: fatal error: bitcoin/system.hpp: No such file or directory
24 | #include <bitcoin/system.hpp>
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:1053: src/libbitcoin_network_la-settings.lo] Error 1
make: *** Waiting for unfinished jobs....
In file included from src/acceptor.cpp:19:
./include/bitcoin/network/acceptor.hpp:26:10: fatal error: bitcoin/system.hpp: No such file or directory
26 | #include <bitcoin/system.hpp>
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:1004: src/libbitcoin_network_la-acceptor.lo] Error 1
In file included from src/connector.cpp:19:
./include/bitcoin/network/connector.hpp:26:10: fatal error: bitcoin/system.hpp: No such file or directory
26 | #include <bitcoin/system.hpp>
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:1018: src/libbitcoin_network_la-connector.lo] Error 1
In file included from src/proxy.cpp:19:
./include/bitcoin/network/proxy.hpp:29:10: fatal error: bitcoin/system.hpp: No such file or directory
29 | #include <bitcoin/system.hpp>
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:1046: src/libbitcoin_network_la-proxy.lo] Error 1
In file included from src/channel.cpp:19:
./include/bitcoin/network/channel.hpp:28:10: fatal error: bitcoin/system.hpp: No such file or directory
28 | #include <bitcoin/system.hpp>
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from src/p2p.cpp:19:
./include/bitcoin/network/p2p.hpp:29:10: fatal error: bitcoin/system.hpp: No such file or directory
29 | #include <bitcoin/system.hpp>
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from src/message_subscriber.cpp:19:
./include/bitcoin/network/message_subscriber.hpp:28:10: fatal error: bitcoin/system.hpp: No such file or directory
28 | #include <bitcoin/system.hpp>
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:1011: src/libbitcoin_network_la-channel.lo] Error 1
make: *** [Makefile:1039: src/libbitcoin_network_la-p2p.lo] Error 1
make: *** [Makefile:1032: src/libbitcoin_network_la-message_subscriber.lo] Error 1
In file included from src/hosts.cpp:19:
./include/bitcoin/network/hosts.hpp:27:10: fatal error: bitcoin/system.hpp: No such file or directory
27 | #include <bitcoin/system.hpp>
I noticed that this library uses boost, but no boost headers included. Am I supposed to copy boost headers to /usr/local/include/bitcoin
?
Make sure you have installed libbitcoin beforehand according to its build instructions.
https://github.com/libbitcoin/libbitcoin-system#debianubuntu