Closed fkromer closed 3 years ago
I've tried to do a clean uninstall of all Arduino IDEs (v1.8.5 + v2.0.0-beta.5) on the machine. I had to uninstall a few directories in C:\Users\<USER>\Documents\
manually: .arduinoIDE
, Arduino
, ArduinoData
. I'm not sure if I've deleted everything cause there is no documentation about the location the IDE saves data into. I reinstalled the Arduino IDE from the Windows 10 store (I've no idea if this makes a difference in comparison to installing from installer), reinstalled the board support for Arduino Uno (like described here: https://docs.arduino.cc/software/ide-v1/tutorials/getting-started/cores/arduino-sam) and the lib mWebSockets
again. Still, if I try to compile I get an error message containing a false positive (the lib mWebSockets
does support the Arduino Due for sure):
In file included from C:\Users\Florian\Documents\Arduino\libraries\mWebSockets\src\base64\Base64.cpp:2:0:
C:\Users\Florian\Documents\Arduino\libraries\mWebSockets\src\base64\../platform.h:30:4: error: #error "Unsupported platform"
# error "Unsupported platform"
^
C:\Users\Florian\Documents\Arduino\libraries\mWebSockets\src\base64\Base64.cpp:8:24: fatal error: pgmspace.h: No such file or directory
# include <pgmspace.h>
^
compilation terminated.
exit status 1
Error compiling for board Arduino Due (Programming Port).
Seems like C:\Users\<USER>\AppData\Local\Arduino15
as well as C:\Users\<USER>\AppData\Local\temp\.arduinoIDE-*
need to be removed as well.
Hi @fkromer Thanks for your interest in this open source project.
As the error message says, the library does not support the Arduino Due board you are compiling for: https://github.com/skaarj1989/mWebSockets/blob/1.4.0/src/platform.h#L19-L31
I see you mention the Arduino Uno several times. Yet you are compiling for the Arduino Due. If you have an Arduino Uno then you must install "Arduino AVR Boards" via the Boards Manager and then select Tools > Board > Arduino AVR Boards > Arduino Uno.
If you need further assistance, feel free to post on the Arduino Forum. We'll be happy to help you out over there: https://forum.arduino.cc/
@per1234 Sorry, that was a typo. It's about the Due. The issue is still unsolved. However I decided to stick to Arduino IDE v.1.8.* for now. After a cleanup of the filesystem from old files this IDE version was able to compile and upload.
Describe the bug
I've tried to compile & upload example code of mWebSocketServer to an Arduino Uno + Ethernet Shield v2. The compilation fails.
To Reproduce Steps to reproduce the behavior:
mWebSockets
into Arduino IDE v2.0.0-beta.5 (https://github.com/skaarj1989/mWebSockets/issues/37)Ethernet by Various
like recommended here: https://github.com/arduino/arduino-ide/issues/347#issuecomment-831055324simple-server
Expected behavior The example sketch compiles.
Screenshots
n.a.
Desktop (please complete the following information):
Additional context
n.a.