libp2p / cpp-libp2p

C++17 implementation of libp2p
Apache License 2.0
347 stars 98 forks source link

Too hard too build this project. #153

Open Saigut opened 2 years ago

Saigut commented 2 years ago

The cmake Hunter takes long time to setup dependency packages, and finally failed. I even can't find what it do every time it pause to wait something. And I can't understand why it failed, and I don't know what to do to help it to finish: Can I help it to download or compile or install package? I don't know.

Why don't choose a more traditional way to setup dependency packages, for example to use a shell or python script? The cmake Hunter seems making things more complex than it need to be.

Does an open source project even like Linux Kernel harder to build than this?

dchagniot commented 2 years ago

@Saigut , yes I had as well some issues to build it. Be sure to use gcc9 or clang12.

xkcdjerry commented 2 years ago

Be sure to use gcc9 or clang12.

The README seems to say gcc 7.4 or clang 6.0.1, does it need to be updated? (just asking)

fourseaLee commented 2 years ago

I have a machine what is installed ubuntu. Downloading is so lowly (hunter). Then I must change CMakeLists.txt to remove hunter, Using symtem dependency is so fast where compile.

geiseri commented 1 year ago

Set HUNTER_ENABLED=OFF in your cmake cache, but yeah the dependencies are a trainwreck since it uses personal forks of hat-trie and boost-di. I don't know why they use soralog since its a subset of spdlog. Either way would be better for consumers of this library if those were provided as git submodules since it would never work with anything mainline. I am trying to do that now in hopes of getting it to compile with vcpkg.