RD
11/19/2021, 8:51 AMalessandrogario
flex bison elfutils rpm ccache ninja-build
Then download and extract the osquery-toolchain somewhere: https://github.com/osquery/osquery-toolchain/releases/download/1.1.0/osquery-toolchain-1.1.0-x86_64.tar.xz
Then configure & build:
cmake -S <src_folder> -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo -G Ninja -DOSQUERY_TOOLCHAIN_SYSROOT=/path/to/osquery-toolchain
cmake --build build
snap install --classic cmake
usually has the latest version available)RD
11/19/2021, 9:09 AMalessandrogario
RD
11/19/2021, 9:10 AMalessandrogario
RD
11/19/2021, 9:52 AMStefano Bonicatti
11/19/2021, 10:38 AM-DADD_HEADERS_AS_SOURCES=ON
to CMake, so that most of the headers that might be trickier to detect by vscode are seen by it.
Also remember to put those configuration options in the CMake extension itself so that the extension will configure the same thing you have given from the command line.
Finally if you are exploring before building, you might want to at least build the prepare_for_ide
target. This is a special target that does some build steps to help the IDE find what it needs (because we have to generate some files and wire headers in a certain way).seph
RD
11/20/2021, 8:15 PMalessandrogario
RD
12/07/2021, 4:34 PMalessandrogario