Pack a stack of open source C / C + + package management tools for you!

Time:2020-4-5

Pack a stack of open source C / C + + package management tools for you!

Author: hellogithub chungzh

Blog address: https://chungzh.cn/

Package manager can help you install dependencies more easily, decide which version to install, and improve your development happiness. Many languages have their own package managers, such as NPM / yarn of node.js, cargo of rust, pip of python, etc. Of course, C / C + + also has its own package manager! Let’s feel the charm and characteristics of these libraries

1. Conan

  • Number of stars: 3K
  • Document: https://docs.conan.io/en/latest/

The first player on the court was Conan , a C / C + + package manager written in Python. It’s completely distributed, and you can host the packages on your own. It applies toAll platforms, including Linux, OS X, windows, Solaris, FreeBSD, embedded and cross compiling, docker, WSL. It can be integrated with any build system, providing tested support for cmake, msbuild, makefiles and other tools. In addition, it has also obtained users of Mercedes Benz, Huawei and other large companies. You can also find or share your C / C + + package in Conan center.

It’s also easy to install Conan:

$ pip install conan

Pack a stack of open source C / C + + package management tools for you!

2. Buckaroo

  • Number of stars: 600
  • Document: https://github.com/loopperfec

The C + + package manager is developed in F ා language. Its unique feature is to extract dependencies directly from GitHub, bitbucket, gitlab, managed GIT and HTTP. Again, it’s completely decentralized, with no central server. Buckaroo uses the toml configuration file.

See quick install for installation method.

Its workflow is like this:

# Create your project file
$ buckaroo init

# Install dependencies
$ buckaroo add github.com/buckaroo-pm/[email protected]=master

# Run your code
$ buck run :my-app

Pack a stack of open source C / C + + package management tools for you!

3. vcpkg

  • GitHub project address:
  • Star number: 6K
  • Document: https://vcpkg.readthedocs.io/

Vcpkg is a C + + library manager developed by Microsoft’s father, which supports windows, Linux and Mac OS. It solves the problem under windowsCommon dependency packagesManagement issues! It’s easy to integrate with visual studio and you can usevcpkg searchSearch for available packages. It can also obtain packages from bitbucket, GitHub, gitlab, etc.

See quick start for installation method.

4. clib

  • Number of stars: 3K
  • Document: https://github.com/clibs/clib

Clib is a C package manager (not c + +), which is easy to use. Similarly, it can install libraries directly from GitHub. Similar to node.js, it also usespackage.jsonManaged. Here is an example:

{
  "name": "term",
  "version": "0.0.1",
  "repo": "clibs/term",
  "description": "Terminal ansi escape goodies",
  "keywords": ["terminal", "term", "tty", "ansi", "escape", "colors", "console"],
  "license": "MIT",
  "src": ["src/term.c", "src/term.h"]
}

Pack a stack of open source C / C + + package management tools for you!

5. poac

  • Number of stars: 341
  • Document: https://doc.poac.pm/en/

Although POAC has a small number of stars, it is actually suitable for novices. It has an intuitive and easy-to-use interface (like NPM and cargo). What’s unique is that you canDo not understandIn the case of cmake, use POAC to develop applications and libraries, and focus on learning C + + without tripping over. The author also plans to integrate with other build systems and package managers so that you can switch seamlessly.

Installation is also done in one line:

curl -fsSL https://sh.poac.pm | bash

Pack a stack of open source C / C + + package management tools for you!


The above is the whole content of this issue. With these libraries, is it easy to install C / C + + libraries? If you do not enjoy it, then we will pay attention to our official account.

Pack a stack of open source C / C + + package management tools for you!
Welcome to HelloGitHub official account for more open source projects.

“Selected open source project series” – follow our article, you will find interesting open source projects, and then fall in love with open source and programming. Join us and contact us. Let’s let more people fall in love with open source and contribute to it