-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unresolved includes #16
Comments
Hi,
We usually answer these questions over on the Forum at forum.switchdoc.com <http://forum.switchdoc.com/>
What IDE are you using to build with?
Here are some answers partially at least:
On Mar 20, 2019, at 2:50 PM, gb0101010101 ***@***.***> wrote:
There are a number of includes that fail to resolve when building on linux.
I have installed ESP8266 boards from http://arduino.esp8266.com/stable/package_esp8266com_index.json <http://arduino.esp8266.com/stable/package_esp8266com_index.json> but could only find "Adafruit Feather HUZZAH ESP8266" and not "Adafruit HUZZAH ESP8266" as stated in BUILD.MD. Is this the correct board?
Yes
Directions from Adafruit say to use this board: https://learn.adafruit.com/adafruit-huzzah-esp8266-breakout/using-arduino-ide <https://learn.adafruit.com/adafruit-huzzah-esp8266-breakout/using-arduino-ide>
'#include "Wire.h"' used in multiple libraries point to local file that does not exist. Is this supposed to be '#include <Wire.h>' which would use the file from the ESP8266 library?
I’d have to say that I’m not sure. We compile it using the Arduino IDE and it is resolved correctly. If it compiles the other way, then you are probably right. Note: Libraries and the Arduino IDE is one of the big problem with moving distributions from one place to another as far as IDEs go.
'#include "Crc16.h"' in SDL_ESP8266_WeatherPlus.ino. Local file is lowercase 'crc16.h' and therefore fails to include on Case Sensitive Linux OS. Renaming file solves the problem. Same goes for '#include "elapsedMillis.h"' in same INO file.
Yes, that makes sense.
Conversely there is '#include <String.h>' which should be lowercase '#include <string.h>'
Same as above.
Then it gets a bit more complex. There is '#include <Time.h>' in SDL_Weather_80422.cpp. Is this supposed to use the local file 'TimeLib.h' or '#include <time.h>' or 'Time' library by Michael Margolis?
This is a real problem. I believe TimeLib.h is correct, but again it depends. Oh, that is a bit of a pun.
Finally there is '#include "user_interface.h"' in local WifiManager.h. "user_interface.h" is not in your repo.
OK, I don’t have that repo here to check. I can check it later at the lab. Again, we use the Arduino IDE on Mac and Windows to compile. Even if I am a Linux guy.
Best regards,
John Shovic
… I see that others have brought up similar issues but they were not fixed in repo:
#2 <#2>
#4 <#4>
#14 <#14>
Thanks for any info you provide. Should be receiving my kit in 2 days and would like to get the code compiling before then.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#16>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AHEsSHQ2esDxBWC3bTd2_2C457p4wW09ks5vYq0ygaJpZM4cAVxq>.
|
Hi John, Thanks for the prompt reply. I managed to get it to compile with the following changes: #include "Wire.h" -> #include <Wire.h> #include "user_interface.h" problem disappeared without me changing anything. No I dea why it happened. Also had to modify 2 occurrences of Wire.requestFrom() in WXLink.h Will post other issues on the Switchdoc Forum of which hopefully there will be none. Just wanted to respond here so that others would know what needed to be changed. |
Thank you @gb0101010101 for this guide. I followed your indications in #16 (comment) and managed to compile. The changes should be made in the repo. EDIT: I see @gb0101010101 has already made substantial changes on their fork. Amazing. Some of the improvements could be cherry-picked back here. I have a question about one of the commits, but issues on the fork are disabled and no email is on the profile. @gb0101010101, please send me an email at [email protected] if you don't mind me asking about the AM2315 driver. |
A word of advice, which bit me in my backside when I wasn't paying attention. I found this when dealing with an HTTP_HEAD re-declaration issue... |
There are a number of includes that fail to resolve when building on linux.
I have installed ESP8266 boards from http://arduino.esp8266.com/stable/package_esp8266com_index.json but could only find "Adafruit Feather HUZZAH ESP8266" and not "Adafruit HUZZAH ESP8266" as stated in BUILD.MD. Is this the correct board?
Directions from Adafruit say to use this board: https://learn.adafruit.com/adafruit-huzzah-esp8266-breakout/using-arduino-ide
'#include "Wire.h"' used in multiple libraries point to local file that does not exist. Is this supposed to be '#include <Wire.h>' which would use the file from the ESP8266 library?
'#include "Crc16.h"' in SDL_ESP8266_WeatherPlus.ino. Local file is lowercase 'crc16.h' and therefore fails to include on Case Sensitive Linux OS. Renaming file solves the problem. Same goes for '#include "elapsedMillis.h"' in same INO file.
Conversely there is '#include <String.h>' which should be lowercase '#include <string.h>'
Then it gets a bit more complex. There is '#include <Time.h>' in SDL_Weather_80422.cpp. Is this supposed to use the local file 'TimeLib.h' or '#include <time.h>' or 'Time' library by Michael Margolis?
Finally there is '#include "user_interface.h"' in local WifiManager.h. "user_interface.h" is not in your repo.
I see that others have brought up similar issues but they were not fixed in repo:
#2
#4
#14
Thanks for any info you provide. Should be receiving my kit in 2 days and would like to get the code compiling before then.
The text was updated successfully, but these errors were encountered: