You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
It is unclear how to add cpp-libp2p to a new project #212
Hi, building cpp-libp2p from source has worked and all tests have successfully passed, however it is difficult for me to actually add libp2p to a project. The section "Adding cpp-libp2p to the project" is not clear to mel:
1.You put a github link to hunter-simple (btw this link might break at any point in time). From there it still is not clear to me how to add hunter to a project that is not officially supported by hunter. How exactly do we tell hunter to use the existing dependencies to add libp2p to our projects.
Then at the end it says "Example of adding cpp-libp2p to other project can be found here and here", linking to other blobs. These examples did not help me due to lacking context. Please write down a full working example so make it more beginner friendly.
Absolute nightmare to actually get this working in a project, the only way i've managed but is a cludge is to include the cpp-libp2p directory into my own cmakelists.txt file, but i hate it with a passion, i think i will have to seriously look at forking this project, removing all the dependency needs and make it a simple vcpkg package.
Activity
raphael10-collab commentedon Oct 4, 2024
I'm having the same problem : #138 (comment)
How to add cpp-libp2p into an already working project?
dana321 commentedon May 2, 2025
Absolute nightmare to actually get this working in a project, the only way i've managed but is a cludge is to include the cpp-libp2p directory into my own cmakelists.txt file, but i hate it with a passion, i think i will have to seriously look at forking this project, removing all the dependency needs and make it a simple vcpkg package.