Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Conversation

@TellowKrinkle
Copy link
Contributor

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:

  • Binaries are installed to /usr/bin instead of a subdirectory of /usr/share/arduino
  • avrdude.conf is in /etc instead of a subdirectory of /usr/share/arduino
    • I didn't see any other use of ARDUINO_SDK_ROOT_PATH so 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
  • There is no /usr/share/arduino/libraries, all Arduino base libraries (like Stepper) are installed from the Arduino GUI package manager and get put in the user's sketchbook libraries folder.
    • If you need these, you'll need to enable AUTO_SET_SKETCHBOOK_PATH=ON or supply a sketchbook path

Other Changes

  • The Arduino IDE preferences file location is in ~/.arduino15 on linux and ~/Library/Arduino15 on mac. Not sure what the old path was to, but I left it in as a fallback if the above paths don't exist
  • Switched the CMAKE_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 an archlinux-arduino subdirectory I would be surprised if that wasn't what you were supposed to use.

@TellowKrinkle
Copy link
Contributor Author

Now tested on Fedora as well

Copy link
Member

@MrPointer MrPointer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TellowKrinkle Many thanks for this extremely useful PR!
I left a note in one of the files, please take a look at it. After that we can merge it 😃

@TellowKrinkle
Copy link
Contributor Author

Does that seem right?

Copy link
Member

@MrPointer MrPointer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does LGTM, merging.

@MrPointer MrPointer merged commit 412b64b into arduino-cmake:master Apr 22, 2019
@TellowKrinkle TellowKrinkle deleted the ArchLinuxSupport branch April 22, 2019 21:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Toolchain can't find avrdude

2 participants