Compile LoongCollector components
compileskillsetup L2★2,153
alibaba/loongcollector ↗What it does
Compile LoongCollector C++ and Go components
Best for
Contributors building LoongCollector locally while working on C++ instrumentation or plugin logic
Inputs
- · CMake config
- · C++ source files
- · Go plugin files
Outputs
- · LoongCollector binary
- · unit test executables
- · Go plugin
Requires
- · CMake
- · make
- · C++ compiler (devtoolset-9)
- · Git submodules
Preconditions
Git submodules initialized; build/ directory writable; dev tools installed; Makefile in place
Failure modes
Submodule missing (DCGM, coolbpf), CMake reconfigured from wrong directory, linking fails on missing headers
Trust signals
- · Critical warning: run CMake only from build/ directory
- · Submodule paths documented
- · Build flags table provided
- · Test execution from build/ only