This repository was archived by the owner on Apr 17, 2023. It is now read-only.
Arch linux support #81
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds support for the Arduino IDE available from the arduino and arduino-avr-core arch linux repositories. All examples now compile assuming you've installed the required Arduino libraries and set
AUTO_SET_SKETCHBOOK_PATH=ON.Hopefully fixes #53 (for Arch Linux, Ubuntu ships an ancient version 1.0.5 of the IDE, untested on Fedora)
AFAIK Fedora does something similar to Arch but I haven't tested that yet so if someone with Fedora could test that would be great
Major differences between Arch install and the default distribution:
/usr/bininstead of a subdirectory of/usr/share/arduinoavrdude.confis in/etcinstead of a subdirectory of/usr/share/arduinoARDUINO_SDK_ROOT_PATHso I just set that to/if this is the case. It didn't break my compiling of the examples, but if you do think that could break anything important please say so/usr/share/arduino/libraries, all Arduino base libraries (likeStepper) are installed from the Arduino GUI package manager and get put in the user's sketchbook libraries folder.AUTO_SET_SKETCHBOOK_PATH=ONor supply a sketchbook pathOther Changes
~/.arduino15on linux and~/Library/Arduino15on mac. Not sure what the old path was to, but I left it in as a fallback if the above paths don't existCMAKE_HOST_ARCHLINUX AND ${USE_ARCHLINUX_BUILTIN_SUPPORT}check with a check for the existence of${ARDUINO_SDK_PATH}/hardware/archlinux-arduino. The above check wasn't working for me, and if your arduino folder contains anarchlinux-arduinosubdirectory I would be surprised if that wasn't what you were supposed to use.