Nico
06/24/2021, 7:49 AMtheopolis
Nico
06/25/2021, 11:01 AMStefano Bonicatti
06/25/2021, 11:04 AMOSQUERY_TOOLCHAIN_SYSROOT
option, because otherwise you're mixing toolchains (or most likely compile options and include folders). It should compile only with the NDK, somewhat following the instructions that are present on their website, which talks about integrating it with CMake.
I'm not sure how ideal it is to have osquery be built with the ARM toolchain; it might seem to work now but it can have all sorts of subtle issues. I would also expect the different kernel possibly not supporting the same syscalls set.Nico
06/25/2021, 11:15 AMcmake -DCMAKE_TOOLCHAIN_FILE=$NDK/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a -DANDROID_NATIVE_API_LEVEL=21 ..
and seems to launch fineStefano Bonicatti
06/25/2021, 12:56 PMNico
06/25/2021, 2:46 PMalessandrogario
Nico
06/27/2021, 8:57 AMStefano Bonicatti
06/27/2021, 9:43 AMNico
06/27/2021, 7:58 PM