cpp-libp2p icon indicating copy to clipboard operation
cpp-libp2p copied to clipboard

Too hard too build this project.

Open Saigut opened this issue 4 years ago • 5 comments

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?

Saigut avatar Jul 15 '21 08:07 Saigut

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

dchagniot avatar Jul 15 '21 08:07 dchagniot

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)

xkcdjerry avatar Jul 17 '21 10:07 xkcdjerry

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.

fourseaLee avatar Dec 30 '21 09:12 fourseaLee

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.

geiseri avatar Sep 21 '22 17:09 geiseri