Report Bugs Here

Moderator: Mmiscool

User avatar
By bugs
#67048 Libraries were all present and correct. Problem was that to save time I had not installed the ESP8266 board (this took 40 minutes plus !). The missing hash.h was not in any of the libraries but in the esp board package.
Anyone using the flash drive installation needs patience..
User avatar
By Electroguard
#67053 I'm also trying to do a portable version, so can you tell me where I am going wrong please?

I've downloaded and unzipped Arduino IDE 1.6.5
Dumped the first empty folder
Created folder inside 'c:\arduino-1.6.5-r5' called 'portable'
Ran the arduino executable, pasted in the esp link and installed the latest esp8266 2.3.0 using boards manager.
Didn't see any 'libraries' folder structure created in 'portable' to be able to copy websockets library to, and didn't know what should be copied where, so installed it using Sketch, Include Library, .ZIP library, and steered it to the downloaded Basic-NewWebSockets\ESP8266Basic folder, which it apparently installed ok into the portable\sketchbook\libraries folder.
Closed and re-ran Arduino.
Opened ESP8266Basic.ino and tried to compile (verify) but got several quick library errors.
So copied websockets libraries structure over the top of portables\libraries, just getting 1 duplicate readme file error.
Re-opened ESP8266Basic.ino and tried to compile again, this time it went quite a long way through (20+secs)before eventually aborting with the errors shown below (which I will try to past into a scrollable code window if it will let me).

A couple of things:
The initial errors seem 64bit specific, but I don't remember being given a choice to download.
Should the websockets espbasic source all be copied (what where), or is it just the libraries folder mentioned in a previous post?

Code: Select allArduino: 1.6.5 (Windows 7), Board: "Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS), ck, Disabled, None"

ESP8266Basic\Base64.cpp.o: In function `base64_dec_len(char*, int)':
C:\arduino-1.6.5-r5\portable\sketchbook\libraries\ESP8266Basic/Base64.cpp:140: multiple definition of `base64_enc_len(int)'
Base64.cpp.o:C:\Users\Robin\AppData\Local\Temp\build6866435099386799829.tmp/Base64.cpp:105: first defined here
ESP8266Basic\Base64.cpp.o: In function `base64_encode(char*, char*, int)':
C:\arduino-1.6.5-r5\portable\sketchbook\libraries\ESP8266Basic/Base64.cpp:140: multiple definition of `base64_dec_len(char*, int)'
Base64.cpp.o:C:\Users\Robin\AppData\Local\Temp\build6866435099386799829.tmp/Base64.cpp:112: first defined here
ESP8266Basic\Base64.cpp.o:(.irom.text+0x0): multiple definition of `b64_alphabet'
Base64.cpp.o:(.irom.text+0x0): first defined here
ESP8266Basic\Base64.cpp.o: In function `base64_encode(char*, char*, int)':
C:\arduino-1.6.5-r5\portable\sketchbook\libraries\ESP8266Basic/Base64.cpp:140: multiple definition of `base64_encode(char*, char*, int)'
Base64.cpp.o:C:\Users\Robin\AppData\Local\Temp\build6866435099386799829.tmp/Base64.cpp:21: first defined here
ESP8266Basic\Base64.cpp.o: In function `base64_decode(char*, char*, int)':
C:\arduino-1.6.5-r5\portable\sketchbook\libraries\ESP8266Basic/Base64.cpp:59: multiple definition of `base64_decode(char*, char*, int)'
Base64.cpp.o:C:\Users\Robin\AppData\Local\Temp\build6866435099386799829.tmp/Base64.cpp:59: first defined here
collect2.exe: error: ld returned 1 exit status
Multiple libraries were found for "WebSocketsServer.h"
 Used: C:\arduino-1.6.5-r5\portable\sketchbook\libraries\WebSockets
 Not used: C:\arduino-1.6.5-r5\portable\sketchbook\libraries\arduinoWebSockets
Multiple libraries were found for "Servo.h"
 Used: C:\arduino-1.6.5-r5\portable\packages\esp8266\hardware\esp8266\2.3.0\libraries\Servo
 Not used: C:\arduino-1.6.5-r5\libraries\Servo
Multiple libraries were found for "OneWire.h"
 Used: C:\arduino-1.6.5-r5\portable\sketchbook\libraries\OneWire
 Not used: C:\arduino-1.6.5-r5\portable\sketchbook\libraries\MAX31850_OneWire
Multiple libraries were found for "DallasTemperature.h"
 Used: C:\arduino-1.6.5-r5\portable\sketchbook\libraries\MAX31850_DallasTemp
 Not used: C:\arduino-1.6.5-r5\portable\sketchbook\libraries\dallas-temperature-control
Multiple libraries were found for "SoftwareSerial.h"
 Used: C:\arduino-1.6.5-r5\portable\sketchbook\libraries\espsoftwareserial
 Not used: C:\arduino-1.6.5-r5\portable\packages\esp8266\hardware\esp8266\2.3.0\libraries\SoftwareSerial
Error compiling.

  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.
User avatar
By bugs
#67055 Can't really help. I did roughly the same as you but did not install the libraries using the arduino zip method. I copied the libraries folder from the espbasic download to the sketch\libraries directory. At some point I also copied it to arduino-1.6.5-r5\libraries so I get a lot of duplicate messages - too late to sort it tonight.
I don't think 32/64 bit is an issue.
Perhaps there should be another forum thread for discussing this rather than the save bug?
User avatar
By trackerj
#67089
Electroguard wrote:I'm also trying to do a portable version, so can you tell me where I am going wrong please?

I've downloaded and unzipped Arduino IDE 1.6.5
Dumped the first empty folder
Created folder inside 'c:\arduino-1.6.5-r5' called 'portable'
Ran the arduino executable, pasted in the esp link and installed the latest esp8266 2.3.0 using boards manager.
Didn't see any 'libraries' folder structure created in 'portable' to be able to copy websockets library to, and didn't know what should be copied where, so installed it using Sketch, Include Library, .ZIP library, and steered it to the downloaded Basic-NewWebSockets\ESP8266Basic folder, which it apparently installed ok into the portable\sketchbook\libraries folder.
Closed and re-ran Arduino.
Opened ESP8266Basic.ino and tried to compile (verify) but got several quick library errors.
So copied websockets libraries structure over the top of portables\libraries, just getting 1 duplicate readme file error.
Re-opened ESP8266Basic.ino and tried to compile again, this time it went quite a long way through (20+secs)before eventually aborting with the errors shown below (which I will try to past into a scrollable code window if it will let me).

A couple of things:
The initial errors seem 64bit specific, but I don't remember being given a choice to download.
Should the websockets espbasic source all be copied (what where), or is it just the libraries folder mentioned in a previous post?

Code: Select allArduino: 1.6.5 (Windows 7), Board: "Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS), ck, Disabled, None"

ESP8266Basic\Base64.cpp.o: In function `base64_dec_len(char*, int)':
C:\arduino-1.6.5-r5\portable\sketchbook\libraries\ESP8266Basic/Base64.cpp:140: multiple definition of `base64_enc_len(int)'
Base64.cpp.o:C:\Users\Robin\AppData\Local\Temp\build6866435099386799829.tmp/Base64.cpp:105: first defined here
ESP8266Basic\Base64.cpp.o: In function `base64_encode(char*, char*, int)':
C:\arduino-1.6.5-r5\portable\sketchbook\libraries\ESP8266Basic/Base64.cpp:140: multiple definition of `base64_dec_len(char*, int)'
Base64.cpp.o:C:\Users\Robin\AppData\Local\Temp\build6866435099386799829.tmp/Base64.cpp:112: first defined here
ESP8266Basic\Base64.cpp.o:(.irom.text+0x0): multiple definition of `b64_alphabet'
Base64.cpp.o:(.irom.text+0x0): first defined here
ESP8266Basic\Base64.cpp.o: In function `base64_encode(char*, char*, int)':
C:\arduino-1.6.5-r5\portable\sketchbook\libraries\ESP8266Basic/Base64.cpp:140: multiple definition of `base64_encode(char*, char*, int)'
Base64.cpp.o:C:\Users\Robin\AppData\Local\Temp\build6866435099386799829.tmp/Base64.cpp:21: first defined here
ESP8266Basic\Base64.cpp.o: In function `base64_decode(char*, char*, int)':
C:\arduino-1.6.5-r5\portable\sketchbook\libraries\ESP8266Basic/Base64.cpp:59: multiple definition of `base64_decode(char*, char*, int)'
Base64.cpp.o:C:\Users\Robin\AppData\Local\Temp\build6866435099386799829.tmp/Base64.cpp:59: first defined here
collect2.exe: error: ld returned 1 exit status
Multiple libraries were found for "WebSocketsServer.h"
 Used: C:\arduino-1.6.5-r5\portable\sketchbook\libraries\WebSockets
 Not used: C:\arduino-1.6.5-r5\portable\sketchbook\libraries\arduinoWebSockets
Multiple libraries were found for "Servo.h"
 Used: C:\arduino-1.6.5-r5\portable\packages\esp8266\hardware\esp8266\2.3.0\libraries\Servo
 Not used: C:\arduino-1.6.5-r5\libraries\Servo
Multiple libraries were found for "OneWire.h"
 Used: C:\arduino-1.6.5-r5\portable\sketchbook\libraries\OneWire
 Not used: C:\arduino-1.6.5-r5\portable\sketchbook\libraries\MAX31850_OneWire
Multiple libraries were found for "DallasTemperature.h"
 Used: C:\arduino-1.6.5-r5\portable\sketchbook\libraries\MAX31850_DallasTemp
 Not used: C:\arduino-1.6.5-r5\portable\sketchbook\libraries\dallas-temperature-control
Multiple libraries were found for "SoftwareSerial.h"
 Used: C:\arduino-1.6.5-r5\portable\sketchbook\libraries\espsoftwareserial
 Not used: C:\arduino-1.6.5-r5\portable\packages\esp8266\hardware\esp8266\2.3.0\libraries\SoftwareSerial
Error compiling.

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


This story sounds similar with what I've encountered.

Question: why is needed 1.6.5 only?
It's just a way to keep things consistent because ESPBasic is developped my Mike on this version or they are also other deeper reasons?
I'm asking because from what I can see so far 1.8.2 release solved a lot of previous issues.