I want to compile the firmware for px4_fmu-v2_default.
My system is ubuntu20.04
I followed the official documentation for px4.
git clone https://github.com/PX4/PX4-Autopilot.git --recursive
bash ./PX4-Autopilot/Tools/setup/ubuntu.sh
make px4_fmu-v2_default
This error occurred:
In file included from ../../src/drivers/gnss/septentrio/sbf/decoder.h:46, from ../../src/drivers/gnss/septentrio/sbf/decoder.cpp:42: ../../src/drivers/gnss/septentrio/sbf/messages.h:101:10: error: 'septentrio::sbf::Header::id_number' is too small to hold all values of 'enum class septentrio::sbf::BlockID' [-Werror] 101 | BlockID id_number: 13; | ^~~~~~~~~ compilation terminated due to -Wfatal-errors. cc1plus: all warnings being treated as errors
This error is reported even though I updated the gcc version to 10.5.0
Later, I used docker to compile according to the official documentation,and this error was still reported.
[PX4 Docker Containers | PX4 Guide (main)](Helper Script (docker_run.sh))
Whether using the official script assistant or downloading the px4 image from the official website, compiling in the docker container will report this error.
but when I pulled the v1.14 version according to the requirements of this link,it was compilable.
[GIT 示例 | PX4 Guide (main)]( Get a Release Branch)
How do I solve this problem so that the firmware of px4_fmu-v2_default can be successfully compiled using v1.15.0?