Here put some cross-platform tools for convenience of C++ development. And also as a good sample for building C++ project.
- Install conan package manager
- Adjust installation location of conan packages
# show conan config get storage.path # change conan config set storage.path=<your path>
mkdir build
cd build
cmake ..
cmake --build . --parallel
Caution: conan install
maybe failed when cmake ..
running, causing by compiler settings. Then you can refer to below settings for conan config file (eg: ~/.conan/profiles/default
, [settings]
section, with gcc 9 and using c++11 ABI)
compiler=gcc
compiler.version=9
compiler.libcxx=libstdc++11