Make file with external libraries

Hello everybody.

I started Arduino learning without Arduino IDE. Until now I didn't need external libraries and "make" and "make upload" commands in Linux terminal was sufficiently.

But now, I want to get data from DHT11 temperature and humidity sensor and I need of a library to DHT11 sensor. I download this library and created a folder to it. In makefile I pointed to path of this library.

When I call "make" command in Linux terminal , returns a message "DHT.h file or directory not found"

I have only two questions:

  1. How to solve this problem?

  2. I will find more problems using this method "without Arduino IDE" ?

Thank you.

Why don't you use the Arduino builder? Of course, you could do everything with make, but that's just making things harder for no good reason, if you ask me.

Granted, the Arduino IDE isn't a great IDE, but there are alternatives, like PlatformIO, that handle compilation and uploading for you.

Pieter