Hello, great series! I'm a bit confused about the usage of CMAKE_FIND_ROOT_PATH inside the toolchain file. It is set to ${BINUTILS_PATH} which points to gcc-arm-none-eabi-10.3-2021.10/bin/arm-none-eabi-gcc.exe. I would expect to find the toolchain library paths instead?
To be very honnest, I didn't write the toolchain myself. We have been using this file since 2018 and I don't remember how we got it.
Your comment seems pretty legit. I believe the toolchain file is wrong.
After some researches and experiments, I was able to reduce the toolchain file and the projects (both the sample project I am using for this series and the professional projects at my office) keep building successfully.
CMAKE_SYSTEM_NAME may be set explicitly when first configuring a new build tree in order to enable cross compiling. In this case the CMAKE_SYSTEM_VERSION variable must also be set explicitly.
But I have no idea of the value I should give it... The official toolchain file samples don't always set it.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hello, great series! I'm a bit confused about the usage of
CMAKE_FIND_ROOT_PATHinside the toolchain file. It is set to${BINUTILS_PATH}which points togcc-arm-none-eabi-10.3-2021.10/bin/arm-none-eabi-gcc.exe. I would expect to find the toolchain library paths instead?Glad you enjoyed the series :)
To be very honnest, I didn't write the toolchain myself. We have been using this file since 2018 and I don't remember how we got it.
Your comment seems pretty legit. I believe the toolchain file is wrong.
After some researches and experiments, I was able to reduce the toolchain file and the projects (both the sample project I am using for this series and the professional projects at my office) keep building successfully.
Here my shrinked file:
Since I never write toolchain files, I may be missing some points. For instance, I know that CMAKE_SYSTEM_VERSION should be set:
But I have no idea of the value I should give it... The official toolchain file samples don't always set it.