Unable to locate build tool "GNU PX4 Archiver": echo

2 views (last 30 days)
Hi, I recently updated to r2109a with the new PX4 support. I did everything accordoing to the instruction and built a firmare and got some accelerometer measurements.
When I try to build in a demo model for example px4demo_uORBRead, i get this error:
Error(s) encountered while building "uorb_demo":
### Failed to generate all binary outputs.
Caused by:
Validation error(s):
### Validating other build tools ...
Unable to locate build tool "GNU PX4 Archiver": echo .
I tried both cygwin and built in cmake, they dont work. any ideas?
Thanks.

Accepted Answer

sdanimel Melman
sdanimel Melman on 6 Apr 2019
Edited: madhan ravi on 7 Apr 2019
Had the same problem.
Try to copy the file "bash.exe" from C:\Windows\system32 to C:\Windows\SysWOW64
There is a issue of 32bit vs. 64 bit programs.
See link below for more details:
  4 Comments
Christopher Pepper
Christopher Pepper on 22 Aug 2019
I had this problem when using Cygwin and it went away by switching back to Ubuntu LTS. This was a nice long-term solution for me. For anyone curious where these get set, my location was
C:\ProgramData\MATLAB\SupportPackages\R2019a\toolbox\target\supportpackages\px4\+codertarget\+pixhawk\+internal\setupBuildEnvironment.m
This helped me debug.
setpref('MW_PX4_WindowsToolchain','UseCygwin', false)
Mohammed
Mohammed on 8 Feb 2023
Had the same problem,
I try to copy the file "bash.exe" from C:\Windows\system32 to C:\Windows\SysWOW64
The error was expired, but the Simulink still not to be run
any one can explain more what i should do please !

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!