david
Junior Member
Posts: 95
Raspberry Pi: Yes
|
Post by david on Mar 9, 2020 9:05:18 GMT -8
I am trying to compile the code (v57) downloaded from GitHub for the v2 board. It hangs with message "RH_RF95.h: No such file or directory" -- Using the Library Manager, I can not find a library containing this file to include to IDE. It looks like it is referring to a #include statement in file WXLink.h.
|
|
david
Junior Member
Posts: 95
Raspberry Pi: Yes
|
Post by david on Mar 9, 2020 14:37:32 GMT -8
|
|
david
Junior Member
Posts: 95
Raspberry Pi: Yes
|
Post by david on Mar 9, 2020 15:53:42 GMT -8
Installing the library from above allows the sketch to proceed in compile but then gives error "RH_RF95 id not a template" at "rf95.setModemConfig(RH_RF95<HardwareSerial>::ModemConfigChoice(Bw31_25Cr48Sf512)); in WXLink.h. I have not made any code changes, I learned that it is best if I make sure I can compile the unchanged source before I change anything. Help
|
|
david
Junior Member
Posts: 95
Raspberry Pi: Yes
|
Post by david on Mar 9, 2020 16:32:50 GMT -8
I found this post over in the SolarMAX section, I'll try t and see what happens:
Quote: Welcome to Arduino Library Land! Its a fun place where things aren't thought out very well and don't always work.
make sure you use the following library. Delete the old RH library before you put this in. Shutdown and restart the IDE.
This is a strange error that we have had a hard time figuring out why the standard library doesn't work.
Grove_LoRa_433MHz_and_915MHz_RF-master.zip (86.17 KB)
B
|
|
david
Junior Member
Posts: 95
Raspberry Pi: Yes
|
Post by david on Mar 10, 2020 15:05:23 GMT -8
Still not working, Is there a different RH_RF95 library I should be using or is there some other thing I am doing wrong?
|
|
|
Post by SDL on Mar 10, 2020 16:00:05 GMT -8
Remove your old library, install the one above, and then restart the Arduino library. You are probably finding the wrong one. Lovely software glitch in the IDE.
BP
|
|
david
Junior Member
Posts: 95
Raspberry Pi: Yes
|
Post by david on Mar 11, 2020 5:47:34 GMT -8
Thanks, I did as you suggested and now get:
|
|
david
Junior Member
Posts: 95
Raspberry Pi: Yes
|
Post by david on Mar 11, 2020 15:04:49 GMT -8
looks like the library wants to #include <util/atomic.h> but only has <RHutil/atomic.h> I am not sure if this is part of problem or how to fix if it is.
|
|
|
Post by SDL on Mar 11, 2020 17:51:52 GMT -8
Go down into
/home/user/Arduino/libraries/Grove_LoRa_433MHz_and_915MHz_RF-master/RadioHead.h
and replace <util/atomic.h> with <RHutil/atomic.h>
I could swear that I have answered this here before, but I can't find it!
BP
|
|
david
Junior Member
Posts: 95
Raspberry Pi: Yes
|
Post by david on Mar 11, 2020 19:01:25 GMT -8
OK Thanks,
I changed :
#if defined(__arm__) #include <RHutil/atomic.h> #else #include <util/atomic.h> #endif
to:
#if defined(__arm__) #include <RHutil/atomic.h> #else #include <RHutil/atomic.h> #endif
And now get following error when I compile:
|
|
|
Post by SDL on Mar 12, 2020 16:01:29 GMT -8
Something is wrong with your time library. This is an IDE problem. Did you install another time.h library?
BP
|
|
david
Junior Member
Posts: 95
Raspberry Pi: Yes
|
Post by david on Mar 12, 2020 18:33:46 GMT -8
Not that I know of. I may do a clean re-install of IDE.
|
|
david
Junior Member
Posts: 95
Raspberry Pi: Yes
|
Post by david on Mar 13, 2020 12:36:59 GMT -8
Ok, still having issues. So I have done a clean re-install of Arduino IDE, added in the ESP32 board and cloned a new copy of SDL_ESP32_OurWeather (to ~/Arduino). This time I finally see that the clone has a copy of Grove_LoRa_433MHz_and 915MHz_RF-master-2.zip . I moved this zip file to /Arduino/libraries/ and unziped it there. I went into RadioHead.h and changed util/atomic.h to RHutil/atomic.h.
Then I try to compile (note, it seems that Ubuntu has less tolerance for case in file names so I end up editing some code, I will include those steps here for completeness)
Error -- what I did file SDL_ESP32_OurWeather, line 77 #include <TimeLib.h> error is 'No such file or directory', line 74 is #include "TimeLib.h" so I comment-out line 77
line 252 #include <String.h> , error states 'No such file or directory' , I change to <string.h>
line 334 change "elapsedMillis.h" to "elapsedmilis.h"
line 659 changed "utility.h" to "Utility.h"
line 816 changed "Crc16.h" to "crc16.h"
in file SDL_Weather_80422.cpp, line 13 #include <Time.h> and error is 'Time.h: No such file or directory; Not sure what to do here. Is there a Time.h in some library that I need to install? Do I change it to "TimeLib.h"?
Thanks for any help.
|
|
|
Post by SDL on Mar 16, 2020 11:45:38 GMT -8
David, This is what I hate about the Arduino IDE. It can get libraries so screwed up. If you do a clean install of the IDE, you must clean out your Arduino directory (ESPECIALLY the Libraries directory). Regarding the case matching. Funny I have never seen those errors. We develop on Macs, and the OS seems not to have the same issue. We will fix these issues in the next rev. They should not be there. Regarding Time.h, this is a "changing" Arduino library issue through the various revs of the IDE. Irritating. And since my IDE history is different than yours, these things slip through. Check out this posting: forum.arduino.cc/index.php?topic=578586.0BP
|
|
david
Junior Member
Posts: 95
Raspberry Pi: Yes
|
Post by david on Mar 20, 2020 8:50:39 GMT -8
Thanks
|
|