0 votes
in Touch Interface by (210 points)

Hello room, I am new here so I'll give a you a quick introduction. I am 58 yo, total Lost in Space fan and relatively new to the Arduino. I have had some success in using the Arduino IDE but mostly failures. I recently bought the ESP Weather Station Color project and among other problems I am having (which I wont get into now) every time I click "verify" on the Arduino IDE I keep getting the same error message   Arduino: 1.8.5 (Windows 10), Board: "WeMos D1 mini Pro, 80 MHz, 16M (15M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 921600"

Invalid library found in C:\Users\Jim\Documents\Arduino\libraries\bearssl: C:\Users\Jim\Documents\Arduino\libraries\bearssl
In file included from C:\Users\Jim\Documents\Arduino\libraries\ESP8266WiFi\src/WiFiServerSecureBearSSL.h:24:0,
                 from C:\Users\Jim\Documents\Arduino\libraries\ESP8266WiFi\src/WiFiServerSecure.h:21,
                 from C:\Users\Jim\Documents\Arduino\libraries\ESP8266WiFi\src/ESP8266WiFi.h:41,
                 from C:\Users\Jim\Documents\Arduino\esp8266-weather-station-color-master\esp8266-weather-station-color\esp8266-weather-station-color.ino:29:

C:\Users\Jim\Documents\Arduino\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:27:29: fatal error: bearssl/bearssl.h: No such file or directory

 #include <bearssl/bearssl.h>
                             ^
compilation terminated.

exit status 1
Error compiling for board WeMos D1 mini Pro.
Invalid library found in C:\Users\Jim\Documents\Arduino\libraries\bearssl: C:\Users\Jim\Documents\Arduino\libraries\bearssl
Invalid library found in C:\Users\Jim\Documents\Arduino\libraries\bearssl: C:\Users\Jim\Documents\Arduino\libraries\bearssl
Invalid library found in C:\Users\Jim\Documents\Arduino\libraries\bearssl:


The C:\Users message repeats 35 times.
 

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Also when I remove the bearssl file from the libraries section I get the following message

Arduino: 1.8.5 (Windows 10), Board: "WeMos D1 mini Pro, 80 MHz, 16M (15M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 921600"

Build options changed, rebuilding all
In file included from C:\Users\Jim\Documents\Arduino\libraries\ESP8266WiFi\src/WiFiServerSecureBearSSL.h:24:0,
                 from C:\Users\Jim\Documents\Arduino\libraries\ESP8266WiFi\src/WiFiServerSecure.h:21,
                 from C:\Users\Jim\Documents\Arduino\libraries\ESP8266WiFi\src/ESP8266WiFi.h:41,
                 from C:\Users\Jim\Documents\Arduino\esp8266-weather-station-color-master\esp8266-weather-station-color\esp8266-weather-station-color.ino:29:
C:\Users\Jim\Documents\Arduino\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:27:29: fatal error: bearssl/bearssl.h: No such file or directory
 #include <bearssl/bearssl.h>
                             ^
compilation terminated.

exit status 1
Error compiling for board WeMos D1 mini Pro.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.


Has anyone out there had this kind of problem?

Can any one tell me how to fix this error message?

I am a proud member of The B9 Robot Builders Club and have built a life size B9 Robot and since (in the beginning) he was an environmental control robot I want to place this wonderful project on the robot and maybe in the future have him announce what's on the screen so any help in this matter would be greatly appreciated.

Sorry this was so long but in the future my messages will be shorter.

Thank you

by (19.9k points)
I don't know what the problem is but it looks like you are not running the ESP8266 Arduino-core 2.4.1 (latest official release). The references to BearSSL in your output look odd - BearSSL was only added after the last release. It will be part of the upcoming release.
by (10.0k points)
It looks to me as if you manually installed some libraries in your libraries folder. These libraries might conflict with your Arduino core installation. I suggest you backup the content of your Arduino/libraries folder and then delete the content of that folder. Then make sure that you have the latest stable version running of the Arduino Core platform. After emptying the libraries folder you will have to re-install some libraries used by the ESP8266 color project (e.g. Mini Grafx, JSON Streaming Parser, etc). Please follow our setup instructions at https://docs.thingpulse.com/guides/wifi-color-display-kit/
by (210 points)
reshown by
I want to thank both of you for your help and I have spent the last six hours working on exactly those ideas. I can not help but come to one conclusion that this project is just another one of those internet pranks that some idiots fall for and I (being one of those idiots) have fallen for it. I even spent $36 buying the kit mistakenly thinking I was going to get this to work. I live on a fixed income and that's a whole lot of money to me. I tried about six months age to try and get this to work with separate parts I bought with absolutely no success that's why I made the mistake and bought the kit this time. I apologize for bothering you guys I should have realized that people like me are just not allowed to have nice things. I wont be bothering anyone again on this issue. Thank you again for your help.
by (19.9k points)
We'll condone for now that you called our product an "internet prank" something which we normally take more than just slight offence at.
Don't give up just yet! People like you (whatever kind of people that refers to) are definitely allowed to have nice things.

This sequence here

C:\Users\Jim\Documents\Arduino\libraries\ESP8266WiFi\src/WiFiServerSecureBearSSL.h:24:0,
   from C:\Users\Jim\Documents\Arduino\libraries\ESP8266WiFi\src/WiFiServerSecure.h:21,
   from C:\Users\Jim\Documents\Arduino\libraries\ESP8266WiFi\src/ESP8266WiFi.h:41

really shows there's something wrong with your ESP8266 Arduino-core library. I checked that library source and it confirms my earlier hint: what you've got is some snapshot version from its master branch rather than a released version.

Are you ready to give this another try? Dani suggested the right approach; putting the content of the existing libraries folder aside and reinstalling just the relevant ones. https://docs.thingpulse.com/guides/wifi-color-display-kit/#install-the-esp8266-toolchain shows how to install version 2.4.1 of the ESP8266 Arduino-core library. That's the one you need first.

Ready?
by (210 points)
I will give it one last try only because this is just so damn cool. First let me say I meant no insult to anyone, if it was taken that way I apologize. I lied when I said I have been working on this for 6 months, it has actually been 16 months (and I can prove it if you want). As for people like me I mean poor people, I mean those of us who have no talent for anything. I cant sing or play an instrument, I cant write poetry, I cant do wood working, I cant fix a car,  hell I don't even own a car. I could go on but I hope you get my point.

Anyway I have been doing what I believe has been suggested, I completely emptied my Arduino libraries folder and have been only put in the libraries asked for in this program (see enclosed screen shot #1). After every item I put in the libraries folder I run "Verify" on the code and when I get an error message about a missing file or directory I install that missing file. I am now getting this error message and I can not get this file downloaded which I figure means I can not move further.

Arduino: 1.8.5 (Windows 10), Board: "WeMos D1 mini Pro, 80 MHz, 16M (15M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 921600"

C:\Users\Jim\Documents\Arduino\libraries\ESP8266WiFi\src\bearssl\samples\client_basic.c:33:24: fatal error: sys/socket.h: No such file or directory

 #include <sys/socket.h>

                        ^

compilation terminated.

exit status 1
Error compiling for board WeMos D1 mini Pro.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.


Apparently I cant figure out how to enclose a screen shot so here is a list of all the libraries I have in my Arduino/ Libraries folder,

Folders,
Adafruit_GFX
Adafruit_ILI9341
ESP8266_Weather_Station
ESP8266WiFi
Json_Streaming_Parser
Mini_Grafx
simpleDSTadjust
WiFiManager
XPT2046_Touchscreen

.h files
ArialRounded.h
moonphases.h
settings.h
socket.h
TouchControllerWS.h
weathericons.h

Any suggestions?
by (10.0k points)
Hi Jim

Thank you for trying again. I compared my library to yours and I don't have the ESP8266WiFi library. And the compiler problem you have seems to originate in that folder: "C:\Users\Jim\Documents\Arduino\libraries\ESP8266WiFi"  

What did you install it for? Can you remove it and try again?
by (19.9k points)
No talent? C'mon, you built a life size B9 Robot, how cool is that!

"...have been only put in the libraries asked for in this program. After every item I put in the libraries folder I run "Verify" on the code and when I get an error message about a missing file or directory I install that missing file"

Hhmm, that doesn't sound like a promising approach. In particular there isn't supposed to be a 'ESP8266WiFi' folder in libraries.

If you follow https://docs.thingpulse.com/guides/wifi-color-display-kit/#install-libraries it asks you to install a number of libraries through Sketch > Include Library... > Manage Libraries... Don't try to manually download those libraries and then copy them to the libraries folder (not sure if you did that). You need to install all of the libraries as documented first before 'Verify' has a chance to complete.

Also, our guide asks you install the ESP8266 toolchain 2.4.1 before that. Can you confirm that you've got a C:\Users\Jim\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.4.1 ?
by (210 points)
I have removed all folders and files from the Arduino/libraries folder and installed only the five recommended files and here is the error message I see

Arduino: 1.8.5 (Windows 10), Board: "WeMos D1 mini Pro, 80 MHz, 16M (15M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 921600"

C:\Users\Jim\AppData\Local\Temp\arduino_modified_sketch_996730\esp8266-weather-station-color.ino:29:43: fatal error: ESP8266WiFi.h: No such file or directory

 #include <ESP8266WiFi.h>                  

                                           ^

compilation terminated.

exit status 1
Error compiling for board WeMos D1 mini Pro.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.


As far as the above mentioned toolchain 2.4.1 it is not there but I do have a folder named esp8266-2.4.1 in the original Libraries folder I emptied onto my desktop, is that the same thing only mislocated?
I have no more folders past  C:\Users\Jim\Documents\ArduinoData\       so no there is no ESP8266 toolchain 2.4.1 there.
by (19.9k points)
That means progress I guess.
We mentioned a couple of times that and how you need to install the 2.4.1 toolchain, see the respective chapter in our guide. Once this is done you're home free. I'm quite certain about this.
by (210 points)
WAHOOOOO, This things actually working and it is beautiful.  Wish I could show you the video of me doing cartwheels. Thank you Marcel and squix78, I can totally honestly say I would never have got this to work without your help and guidance. Now that I see this actually working I can more appreciate the hard work you guys must have gone through to create this amazing project and the $36 bucks I spent was well worth it. I will probably need to buy a few more for my neighbor and my father in law.

I still have one more question, what happens next month if I find a sketch that requires some of the other libraries that I removed to get this to work ? If I have to put them back will this still work or do I need to set up a different folder somehow? If so you have any suggestions how?

Again thank you, 16 months I fought this with realistically no hope of ever getting it to work. This was going to be my last, best attempt.
by (210 points)
Sorry but I forgot to ask does this do automatic daylight savings time changes or is that up to me?
by (210 points)
In case you might be wondering how I finally got it to work I actually went into Sketch/include Libraries/manage libraries and went to  the 2.4.1 toolchain and uninstalled it, then I reinstalled. I also noticed a small box on the web page where it tells the builder to change the baud rate to 115200 although I have no idea what that is about I noticed mine was set at 9600 so I changed that. Next when I clicked verify it took about a half an hour to actually verify but there were no error messages so I took a chance and uploaded the program which also took about a half an hour and at about 5 am EST the display came to life and it was amazing. Now it no longer takes as long but it is truly worth the wait, at least for me.

Thanks again,
Jim

Please log in or register to answer this question.

Welcome to ThingPulse Q&A, where you can ask questions and receive answers from other members of the community.

https://thingpulse.com

...