qq_41782160
qq_41782160
采纳率0%
2021-03-06 23:21

PX4在进行make px4_sitl_default jmavsim时报错

[  0%] Generating ../../logs
[  0%] Generating serial_params.c
[  0%] Built target uorb_headers
[  0%] Built target component_version_json
[  0%] Built target logs_symlink
[  1%] Built target drivers_board
Failed to import jinja2: No module named 'jinja2'

You may need to install it using:
    pip3 install --user jinja2

src/lib/parameters/CMakeFiles/parameters_xml.dir/build.make:158: recipe for target 'generated_params/serial_params.c' failed
make[4]: *** [generated_params/serial_params.c] Error 1
CMakeFiles/Makefile2:11048: recipe for target 'src/lib/parameters/CMakeFiles/parameters_xml.dir/all' failed
make[3]: *** [src/lib/parameters/CMakeFiles/parameters_xml.dir/all] Error 2
make[3]: *** 正在等待未完成的任务....
Scanning dependencies of target ecl_geo_lookup
Scanning dependencies of target ecl_airdata
Scanning dependencies of target ecl_geo
[  1%] Building CXX object src/lib/ecl/airdata/CMakeFiles/ecl_airdata.dir/WindEstimator.cpp.o
[  1%] Building CXX object src/lib/ecl/geo_lookup/CMakeFiles/ecl_geo_lookup.dir/geo_mag_declination.cpp.o
[  1%] Building CXX object src/lib/ecl/geo/CMakeFiles/ecl_geo.dir/geo.cpp.o
[  2%] Linking CXX static library libecl_geo_lookup.a
[  2%] Built target ecl_geo_lookup
[  2%] Linking CXX static library libecl_geo.a
[  2%] Built target ecl_geo
[  2%] Linking CXX static library libecl_airdata.a
[  2%] Built target ecl_airdata
CMakeFiles/Makefile2:50444: recipe for target 'platforms/posix/CMakeFiles/jmavsim.dir/rule' failed
make[2]: *** [platforms/posix/CMakeFiles/jmavsim.dir/rule] Error 2
Makefile:17034: recipe for target 'jmavsim' failed
make[1]: *** [jmavsim] Error 2
Makefile:217: recipe for target 'px4_sitl_default' failed
make: *** [px4_sitl_default] Error 2

上面是报错代码,查了很多回答,没有解决问题

使用的是PX4官方安装脚本,重新安装了几次,依旧没有解决

刚接触PX4,对这方面不是很了解

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

1条回答

  • qq_41782160 qq_41782160 1月前

    jinja2模块没安装,报错信息太长没看到,待我安装完毕试试

    点赞 评论 复制链接分享