Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Arch linux support #81

Merged
MrPointer merged 7 commits into arduino-cmake:master from TellowKrinkle:ArchLinuxSupport
Apr 22, 2019
Merged

Conversation

@TellowKrinkle
Copy link
Contributor

@TellowKrinkle TellowKrinkle commented Apr 14, 2019

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.

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 😃

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.

Reviewers

1 more reviewer

@MrPointer MrPointer MrPointer approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Toolchain can't find avrdude

AltStyle によって変換されたページ (->オリジナル) /