|
发表于 2023-2-18 13:36:49
2384 浏览 1 回复
uint32_t *pm = (uint32_t *) pf; 求怎么解决
error: converting a packed 'flash_entry_header_t' pointer (alignment 1) to a 'uint32_t' {aka 'unsigned int'} pointer (alignment 4) may result in an unaligned pointer value [-Werror=address-of-packed-member]
190 | uint32_t *pm = (uint32_t *) pf;
| ^~~~~~~~
compilation terminated due to -Wfatal-errors.
cc1: all warnings being treated as errors
[205/215] Building CXX object src/lib/...es/flashparams.dir/flashparams.cpp.obj
ninja: build stopped: subcommand failed.
[305/1286] Generating nuttx/sched/libsched.a
FAILED: external/Stamp/px4io_firmware/px4io_firmware-build
cd /home/zxy/Firmware/build/px4_fmu-v5_default/external/Build/px4io_firmware && /usr/bin/cmake --build .
[307/1286] Generating nuttx/libs/libc/libc.a
ninja: build stopped: subcommand failed.
make: *** [Makefile:195:px4_fmu-v5_default] 错误 1
amov-辰星已获得悬赏 4 阿木币最佳答案
这是在编译px4过程,比较容易报错,一般都是没翻墙、子模块没更新完全导致的,建议用stable版本,如果还不行就多试几次或者找个全新的Ubuntu电脑重新安装18.04 ...
|
扫一扫浏览分享
|
|
|
|
|
|
|
这是在编译px4过程,比较容易报错,一般都是没翻墙、子模块没更新完全导致的,建议用stable版本,如果还不行就多试几次或者找个全新的Ubuntu电脑重新安装18.04 |
|
|
|
|
|
|
|