Andrew Moa Blog Site

Managing C++ project dependencies using Conda

When I previously tried xrepo, I learned that conda can also manage C++ projects1. Now, I will verify this with some commonly used libraries. The conda installation process will not be detailed here; it is recommended to refer to the official documentation2. Since the libraries provided by conda are often released in dynamically linked form, in order to ensure that the packaged output of the program can run properly, I will attempt to use CMake to automatically package the dependent library files.
12 minutes to read
Andrew Moa

Compiling C/C++ Projects Using xmake

I was accustomed to using CMake and vcpkg on Windows to compile C/C++ programs. However, vcpkg has a drawback: each time it is updated, it requires downloading the source code from GitHub to compile the library files. For large libraries like Qt, the compilation alone can take an entire day, which is impractical, not to mention connection issues caused by DNS problems.

First, let’s outline the requirements. The main requirements for a C/C++ package manager are as follows:

10 minutes to read
Andrew Moa