Notifications
Clear all

Arduino Library Confusion, missing .h files

3 Posts
3 Users
0 Likes
1,454 Views
BunnyKiller
(@bunnykiller)
Member
Joined: 4 years ago
Posts: 31
Topic starter  

Hey all...

seems that every time ( well not every time but about 98% of the time) I DL a library file to my IDE it stores a copy in my download folder ( Im okay with that, in fact I prefer it to happen) and it also drops the info into the library folder ( which I suppose its supposed to do). When I open up Arduino to open the file/project, theres always a .h file or 3 missing, tells me there is no such file/folder etc. And trying to find such files that are "missing" in the library ( the one we DL from (( Library manager))) is nearly impossible ( well impossible for me since I havent found any of the missing .h files )...

sooo, whats the story? are the files Im choosing so old that the associated .h files that the program ( sketch) ask for are no longer there or what??  Im at a loss as what to do on locating those pesky missing .h files.

for example, I wanted to DL with the library manager in Arduino the XPT2046_calibration files. I found the files in the library, installed them, opened up Arduino, opened the file set, did the open touch calibration, did the verify/compile, and thats where it tells me of the missing .h files, in this case, XPT2046_calibration h. file is no such file or directory...  but, the file is sitting in  the src folder, do I need to manually move it to a specific folder so Arduino can find it??

This topic was modified 4 years ago by BunnyKiller

   
Quote
(@starnovice)
Member
Joined: 5 years ago
Posts: 110
 

Are you using include "header.h" or <header.h>? You might try the other style and see if it works.  If I remember correctly quotes are for the local project directory and angle brackets are for system directories.

Pat Wicker (Portland, OR, USA)


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6661
 

@bunnykiller I think you are using the wrong procedure. There are 2 procedures and I will cover both.

First, though let me point out that if you are downloading library zip files from github then yes they get downloaded to your download folder. They get into your personal library folder by doing a 'Sketch/Include Library/Add .ZIP Library...' (see attached pic) That is procedure 2, procedure 1 is to open the IDE Library Manager, type a word or two that appears in the Library description into the search box at the top and then a list of possible libraries will appear. There are two more drop down boxes where you can refine your search but I almost never use them because I don't fully understand them.

I have only encountered one library that was 'messed up' and I had to spend a few hours over several days to debug it but the hundreds of other libraries I have either installed from the Library Manager or from github have always worked.

I have helped a lot of noobs fix their 'broken libraries' and in all but one cased the fault was user error.

All of this is documented in the Arduino.cc web site, I am just one of those nerds that has RTFM.

I am adding an example of using the extended search boxes.

Screenshot 2023 05 28 at 17.14.07
Screenshot 2023 05 28 at 17.22.28

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote