Giter VIP home page Giter VIP logo

Comments (4)

taoyuan avatar taoyuan commented on May 25, 2024

The Arduino SDK on OSX should be in subdirectory Arduino.app/Contents/Java of parent folder Applications.

I have create a PR #30 to fix this.

The strange output caused by the environment variable ARDUINO_SDK_PATH really needs to review the code.

from arduino-cmake-ng.

MrPointer avatar MrPointer commented on May 25, 2024

@machadolab @taoyuan I'll have to check that output, although I have a theory on why it happens - the new Find-SDK module looks for the lib/version.txt file and stores the found path in a variable named ARDUINO_SDK_PATH. If it hasn't found anything, this variable will be set to ARDUINO_SDK_PATH-NOTFOUND (this how all CMake's find_xxx functions work).
However, even when the variable is set manually on the command-line, the Find module overrides this value, according to CMake's variable scoping rules, and that's how you get that strange output.
The reason I chose to set it to a variable with the same name is to avoid declaring more variables which don't actually have any meaning, but apparently now they do...

from arduino-cmake-ng.

masha256 avatar masha256 commented on May 25, 2024

The arduino sdk is now being detected automatically, and there is no strange output. Thanks!!

from arduino-cmake-ng.

MrPointer avatar MrPointer commented on May 25, 2024

Ummm this kind of bothers me because I did NOTHING since the last comment, just shared my thoughts... I still need to investigate this one further, but I'll open a separate issue for this

from arduino-cmake-ng.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.