Robot-Will / Stino

A Sublime Text Plugin for Arduino
Other
1.58k stars 250 forks source link

Arduino.h not found - arduino core #451

Open rswilem opened 7 years ago

rswilem commented 7 years ago

Hiya,

First off, big thanks for this project. Have been using the old stino for a while now. Amazing.

I have just installed the new Stino, and building normal projects works like a charm. 👍🏼 However, when I change packages.stino-settings (Install platform > Add package) to:

{
    "arduino": "http://downloads.arduino.cc/packages/package_index.json", 
    "arduino_lib": "http://downloads.arduino.cc/libraries/library_index.json",
    "sparkfun": "https://raw.githubusercontent.com/sparkfun/Arduino_Boards/master/IDE_Board_Manager/package_sparkfun_index.json"
}

for use with this project: https://github.com/YourproductSmarter/KISSLoRa-demo

I get the following error after configuring everything like stated in their README.md:

[Build] /Users/xxxx/Documents/A/Arduino/KISSLoRa-demo_app...
[Step 1] Check Toolchain.
[Step 2] Find all source files.
[Step 3] Start building.
[5.9%] Compiling KISSLoRa-demo_app.ino.cpp...
/Users/xxxx/Documents/A/Arduino/KISSLoRa-demo_app/KISSLoRa-demo_app.ino:36:21: fatal error: Arduino.h: No such file or directory
 #include <Arduino.h>
                     ^
compilation terminated.
[Build] Error occurred.

It looks like Stino cannot find the default arduino core anymore.

In my Sublime Text 3../Packages folder under User/Stino/packages I have two folders:

arduino/hardware/avr/1.6.18
SparkFun/hardware/avr/1.1.5

The first folder does have /cores/arduino, where the spark fun folder does not.

Any clues? Is this my own error perhaps? Can I link multiple libraries perhaps?

Thank you in advance.

rswilem commented 7 years ago

I have managed to get a build running using symlinks and the libraries folder.

I have added a few symlinks under User/Stino/Packages/SparkFun/hardware/avr/1.1.5/libraries linking the cores/arduino, libraries/EEPROM, libraries/HID, libraries/SoftwareSerial, libraries/SPI and libraries/Wire folders in the User/Stino/Packages/arduino/hardware/avr/1.6.18 folder.

Doesn't feel like the right way but I guess it's a fix.