I created this question because I find many questions with similar problems, so I wanted to provide a reference/ more generic question for these type of problems.
For my projects I have installed 3rd party libraries by cloning from the library's git repository into the folder that
sketchbook.path value exists into a folder named
libraries. In other words if the
sketchbook.path has the value
/home/myuser/sketchbook I clone the repositories into the folder
Then on the folder
/home/myuser/sketchbook/myexample I store my code
myexample.ino that needs a library with header files
While I click on Arduino IDE the verify button I get the error:
/usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -D__PROG_TYPES_COMPAT__ -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/standard -I/usr/share/arduino/libraries/SPI /tmp/build6596169359663087897.tmp/LoRaSerialGateway.cpp -o /tmp/build6596169359663087897.tmp/LoRaSerialGateway.cpp.o LoRaSerialGateway.ino:15:18: fatal error: Something.h: compilation terminated.
So my guess is that I cannot make avr-gcc to compile using the 3rd party library. Do you know how to pass into avr-gcc the correct paths for the appropriate libraries?