필터 지우기
필터 지우기

I am encountering this issue while building firmware in px4 autopilot.

조회 수: 11 (최근 30일)
Parvez
Parvez 2024년 1월 3일
댓글: Maven Euler 2024년 1월 9일
<command-line>:0:0: note: this is the location of the previous definition
In file included from ../../src/modules/px4_simulink_app/nuttxinitialize.cpp:11:0:
../../src/modules/px4_simulink_app/nuttxinitialize.h:8:10: fatal error: nuttx/config.h: No such file or directory
#include <nuttx/config.h>
^~~~~~~~~~~~~~~~
compilation terminated.
[206/633] Building CXX object src/modules/commander/CMakeFiles/modules__commander.dir/Commander.cpp.o
ninja: build stopped: subcommand failed.
make: *** [Makefile:233: px4_sitl] Error 1has context menu

답변 (1개)

Maven Euler
Maven Euler 2024년 1월 4일
I understand that you are facing the issue while building firmware in px4 autopilot. The cause of the build failed error is most likely a permission issue. Launch MATLAB with "Run in Administrator" and try building the hardware setup.
Thanks,
Ayush
  댓글 수: 4
ramzan
ramzan 2024년 1월 8일
Hello @Ayush,
Thanks for your reply, as per your suggestion i have tried the commands in run_console.bat. it asking me to install packging by command 'pip3 install --user packaging'. I have tried this command but getting some error, i am attaching screenshots for your reference.
Maven Euler
Maven Euler 2024년 1월 9일
As the command 3 did not work through Cygwin console, it indicates issue is with the PX4 Firmware on your machine. It seems like installation of PX4 Firmware of the Cygwin toolchain is corrupted. The best way to resolve this issue is to uninstall Cygwin Toolchain and clone PX4 Firmware again. Below are the steps:
  1. Uninstall PX4 Cygwin Toolchain from Programs & Features in Windows
  2. Clone and install Cygwin Toolchain again and clone PX4 firmware as mentioned here
  3. Try building Firmware as mentioned above
Thanks,
Ayush

댓글을 달려면 로그인하십시오.

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by