Hello I'm trying to cross-compile libbson to include it as lib to STM32CubeIDE to use it on STM32 ARM-core processor, but after trying to specify toolchain with command:
cmake -DENABLE_MONGOC=OFF -DCMAKE_TOOLCHAIN_FILE=~/arm_compiler/gcc-arm-none-eabi-10.3-2021.07/bin/arm-none-eabi-gcc ..
I get error below:
CMake Error at ~/arm_compiler/gcc-arm-none-eabi-10.3-2021.07/bin/arm-none-eabi-gcc:1: Parse error. Expected a command name, got unquoted argument with text "ELF". Call Stack (most recent call first): /usr/share/cmake-3.16/Modules/CMakeDetermineSystem.cmake:93 (include) CMakeLists.txt:55 (project)
Im begginer in this topic I based my knowledge on those links:
- http://mongoc.org/libmongoc/current/installing.html
- https://cmake.org/cmake/help/latest/manual/cmake-toolchains.7.html
I downloaded toolchain from: