0

阿木币

0

精华

1 小时

在线时间

应届白菜

Rank: 1

发表于 2021-1-25 20:24:43 8363 浏览 1 回复

PX4飞控创建新uorb编译出错

在添加新的uorb采用的是阿木实验室教程的程序,但是编译时显示CMakelists.txt里的depends platforms__common找不到错误报警:
错误:
-- Release build type: MinSizeRel
CMake Error at cmake/px4_add_module.cmake:205 (get_target_property):
  get_target_property() called with non-existent target "platforms__common".
Call Stack (most recent call first):
  src/modules/px4_uorb_adver/CMakeLists.txt:7 (PX4_add_module)


CMake Error at cmake/px4_add_module.cmake:206 (if):
  if given arguments:

    "STREQUAL" "STATIC_LIBRARY"

  Unknown arguments specified
Call Stack (most recent call first):
  src/modules/px4_uorb_adver/CMakeLists.txt:7 (PX4_add_module)


-- Configuring incomplete, errors occurred!
See also "/home/liunx_one/Firmware/build/px4_fmu-v3_default/CMakeFiles/CMakeOutput.log".
See also "/home/liunx_one/Firmware/build/px4_fmu-v3_default/CMakeFiles/CMakeError.log".
FAILED: build.ninja
/usr/bin/cmake -H/home/liunx_one/Firmware -B/home/liunx_one/Firmware/build/px4_fmu-v3_default
ninja: error: rebuilding 'build.ninja': subcommand failed
Makefile:217: recipe for target 'px4_fmu-v3_default' failed
make: *** [px4_fmu-v3_default] Error 1


goodQ已获得悬赏 3 阿木币

最佳答案

CMake Error at cmake/px4_add_module.cmake:206 (if): if given arguments: "STREQUAL" "STATIC_LIBRARY" 直接改这个cmake文件的206行试一下吧,可能还是引用的一些问题。 ...

扫一扫浏览分享
回复

使用道具 举报

188

阿木币

0

精华

34 小时

在线时间

老司机

Rank: 2

发表于 2021-1-26 11:06:17
CMake Error at cmake/px4_add_module.cmake:206 (if):
  if given arguments:

    "STREQUAL" "STATIC_LIBRARY"

直接改这个cmake文件的206行试一下吧,可能还是引用的一些问题。
回复 点赞

使用道具 举报

返回列表
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表