- Have you tried running ubuntu.sh script as explained here?
- Check the output of arm-none-eabi-gcc --version in the bash shell. If this fails, then the toolchain is either not present in the path or is not installed.
- Print path variable using echo $PATH. In my setup, the path appears as /opt/gcc-arm-none-eabi-9-2020-q2-update
Unable to install UAV Toolbox Support Package for PX4 Autopilots on Ubuntu 20
5 ビュー (過去 30 日間)
古いコメントを表示
I was trying to istall UAV Toolbox Support Package for PX4 Autopilots on Ubuntu 20. I followed every step as given in the MATLAB documentaion but am unable to get past the Setting up PX4 Toolchain step. I get an error saying the toolchain isn't installed and if you've installed reboot the system. Despite rebooting the PC or repeating the steps multiple times I'm still getting an error.
I am confused whether Px4 support tool is unavailabe on Ubuntu 20 as the steps given here specifically mention Ubuntu 18 or this is some other issue. Any kind of help is appreciated.
Thank you!
2 件のコメント
Manoj Velmurugan
2022 年 9 月 1 日
Likely gcc arm toolchain is not installed or it is not in the path.
回答 (1 件)
Sushranth Prakash Hebbar
2022 年 9 月 5 日
The likely cause of this issue is the Ubuntu version. It should be Ubuntu 18.04 LTS as mentioned in the following documentation:
However, I would still suggest you try the steps mentioned in https://www.mathworks.com/matlabcentral/answers/479532-how-do-i-complete-the-set-up-for-px4-toolchain-in-linux
Another cause for this issue could be the version of 'arm-none-eabi-gcc' that is installed in your system.
Execute the following command in the ubuntu terminal to get the current version that is installed in your system.
$ arm-none-eabi-gcc -dumpversion
The output of this should be 7.2.1. Otherwise, an incorrect version or multiple different versions of 'arm-none-eabi-gcc' have been installed in your system.
You can execute the 'which' command in the ubuntu terminal to find all the other locations of 'arm-none-eabi-gcc' and uninstall them.
Then, follow the steps from https://www.mathworks.com/help/releases/R2021b/supportpkg/px4/ug/setting-px4-toolchain-ubuntu.html again and check if the installation succeeds.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!