Effacer les filtres
Effacer les filtres

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

23 vues (au cours des 30 derniers jours)
Parvez
Parvez le 3 Jan 2024
Commenté : Ayush le 9 Jan 2024
<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

Réponses (1)

Ayush
Ayush le 4 Jan 2024
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 commentaires
ramzan
ramzan le 8 Jan 2024
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.
Ayush
Ayush le 9 Jan 2024
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

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by