I am verifying my code and getting the following error:
fork/exec /Users/alexanderhuestis/Library/Arduino15/packages/teensy/hardware/avr/../tools/arm/bin/arm-none-eabi-g++: no such file or directory
Compilation error: fork/exec /Users/alexanderhuestis/Library/Arduino15/packages/teensy/hardware/avr/../tools/arm/bin/arm-none-eabi-g++: no such file or directory
I've attempted to install and reinstall my board manager. I've re installed the IDE as a whole and that did not help either.
I think this is some type of corruption error but I can't seem to figure out how to solve it. Any help would be great. Thanks!
The tool at the path referenced by the error message should be automatically installed on your computer when you installed the "Teensy" boards platform via the Arduino IDE Boards Manager.
It seems something might have gone wrong during the installation. One possible fix is to uninstall and then reinstall the platform. I'll provide instructions you can follow to do that:
Select Tools > Board > Boards Manager from the Arduino IDE menus to open the "Boards Manager" view in the left side panel.
Scroll down through the list of boards platforms until you see the "Teensy" entry.
Hover the mouse pointer over the "Teensy" entry.
You will see a ••• icon appear at the top right corner of the entry.
Click the ●●● icon.
A menu will open.
Select "Remove" from the menu.
An "Uninstall" dialog will open.
Click the "YES" button in the "Uninstall" dialog.
Wait for the uninstallation to finish. ⓘ The progress will be shown by a notification at the bottom right corner of the Arduino IDE window.
Click the "INSTALL" button at the bottom of the "Teensy" entry.
Wait for the installation to finish.
Now try verifying your code again. Hopefully this time that "arm-none-eabi-g++: no such file or directory" error will not occur. If the error does still occur, please reply here to let us know and we'll see if we can find some other way to solve the problem.
Hey! So, this fixes one issue but not another. The project I am working on requires the 'platform.txt' and 'boards.local.tx' files to be edited. When I reinstall Teensy it resets those files which solves my error above but does not allow me to compile the MTP library found here:
What should I do from here? I tried installing MTP_Teensy via the Arduino IDE but it doesn't appear to exist.
I see you are already using boards.local.txt. I recommend you to also use the equivalent platform.local.txt file instead of editing platform.txt directly. This will allow you to easily implement your platform modifications after each update of the Teensy platform by simply copying two files into the platform folder. You should save a copy of the two files in a location outside the platform folder so they won't be lost during the update.
If you still have trouble installing the library then I'll be happy to provide detailed instructions you can follow. But I'm a bit confused about why you are finding it necessary to install it in the context of this discussion. If you install a library via any of the normal methods, its installation will not be affected by a platform uninstall+reinstall cycle as I recommended above. The only way the library installation could be affected is if you installed it under the libraries subfolder of the Teensy boards platform installation. That would be a very unusual and unlikely thing to do.