I keep getting "no include path in which to search for..." errors when I compile

EDIT: This was a previous post from a couple of days ago that the mods merged with my 2nd post below that describes my current issue. I have a stop-gap in place that gets around most of the issues described in this first post, but it describes my set up pretty well so I linked to it.

Thanks!

Hello, when I try and compile the "blink" test program, I'm getting these errors:

"Error while detecting libraries included by /tmp/arduino_build_973026/sketch/Blink.ino.cpp"
...
"error: no include path in which to search for Arduino.h"

I'm using the Arduino 1.8.13 IDE, and I'm not seeing an obvious place to add include paths for the compiler to search.

My set up might be a little strange - I had to manually install the board because I can't get internet on this computer, and don't have an equivalent system that I can use to download to and replicate from.

To do this, I:

  1. Downloaded https://files.seeedstudio.com/arduino/core/samd/ArduinoCore-samd-1.8.1.tar.bz2, which is the most recent Seeeduino Xiao package listed on the Seeeduino json package list:
    https://files.seeedstudio.com/arduino/package_seeeduino_boards_index.json

  2. Placed the ArduinoCore-samd-1.8.1 folder into the /home/user/Arduino/hardware directory

  3. Copied the boards.txt, keywords.txt, platform.txt, programmers.txt and package.json files into the "/home/user/Arduino/hardware/ArduinoCore-samd-1.8.1/cores" directory because of error messages where the compiler couldn't find them.

I tried copying "Arduino.h" and dozens of other missing files from the ArduinoCore-samd-1.8.1 package directly into the folder containing the blink .ino file, just to see if that might work, but I eventually landed on a "sam.h" file missing error, and it looks like that file wasn't included in either the ArduinoCore-samd-1.8.1 zip or the Arduino 1.8.13 IDE zip, and it looks like it has been deprecated for quite some time anyway.

Does anyone have any thoughts on what I could try next?

Thanks!

Hello, I'm running into an issue while trying to compile the blink program.

Unfortunately my setup is probably a little unorthodox:

https://forum.arduino.cc/index.php?topic=728661.msg4901377#msg4901377

I finally got everything just about working by copying all missing files directly into my sketch folder and changing all includes to absolute references (<> to ""), but now the compiler is adding an <Arduino.h> include to the top of my sketch's *.ino.cpp file when compiling and gives me the same "no include path" error.

Does anyone know how I can add include paths manually? It seem like you used to be able to do it, but not in 1.8.13.

Or maybe how to edit the <Arduino.h> include the compiler is adding to the *.ino.cpp file? After doing a hexdump it looks like it might be specified in the arduino-builder binary, but I'm not looking forward to editing it.

Thanks in advance if you have any suggestions on what I can try next.

Topics merged to remove the need for users to read 2 threads

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.