我遵循了本教程:https://www.youtube.com/watch?v=xbWaHARjSmk 和这个 github 链接:https://github.com/micro-ROS/micro_ros_stm32cubemx_utils 创建自定义板支持微型罗斯。当我编译我的项目时,出现以下错误:
====================[ Build | stm32f4_uros.elf | Debug ]========================
/snap/clion/234/bin/cmake/linux/x64/bin/cmake --build \/home/tzinkii/Workspace/Embedded/stm32f4_uros/cmake-build-debug --target stm32f4_uros.elf -- -j 3\
-- Minimal optimization, debug info included\
-- Configuring done\
-- Generating done\
-- Build files have been written to: /home/tzinkii/Workspace/Embedded/stm32f4_uros/cmake-build-debug\
[ 2%] Linking C executable stm32f4_uros.elf
/usr/lib/gcc/arm-none-eabi/10.3.1/../../../arm-none-eabi/bin/ld: error: stm32f4_uros.elf uses VFP register arguments, /home/tzinkii/Workspace/Embedded/stm32f4_uros/micro_ros_stm32cubemx_utils/microros_static_library/libmicroros/libmicroros.a(librcl-publisher.c.obj) does not\
/usr/lib/gcc/arm-none-eabi/10.3.1/../../../arm-none-eabi/bin/ld: failed to merge target specific data of file /home/tzinkii/Workspace/Embedded/stm32f4_uros/micro_ros_stm32cubemx_utils/microros_static_library/libmicroros/libmicroros.a(librcl-publisher.c.obj)
...
...
...
这是我在第 22 - 30 行的配置:
这是 61-70 的包含文件,这是 83-84 上的 micro-ros 库的链接:
这里是静态库在我项目中的位置: