Closed masha256 closed 6 years ago
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.
@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...
The arduino sdk is now being detected automatically, and there is no strange output. Thanks!!
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
When I set the system environment variable
ARDUINO_SDK_PATH
to/Applications/Arduino.app/Contents/Java
it is able to finish cmake, but there is some strange output: