Open rachelbryan opened 2 years ago
On both ESP32 Pico and ESP Wroom, error comes up on compiler as "'QRCode' does not name a type"
I followed someone else advice and renamed the QRCode.h and QRCode.C file. I chose qrcoderm, as in qrcode(r)ic(m)oo. Welcome to pick your own name.
#include <qrcoderm.h>
I also renamed the libraries folder to 'qrcoderm'. You need to change line 33 in the qrcoderm.c. to the new include name as well.
After that, the library compiled and code was uploaded to me ESP32_DevKitc_v4.
Good luck!
I still can not compile it for ESP32 with Arduino IDE, even after renaming. Tried on two different installations - no luck. Any advice please? I would like to make a QR code and print it on a thermal printer.
I think I figured this out. I was in the same boat as all of you above..
I tracked down the ESP32 board folder and deleted the QRCode folder in ESP32..
"C:\Users\xxxxx\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.9\tools\sdk\esp32\include\qrcode"
My code immediately compiled with no errors.
Remember to do the same if you install board updates.
I think I figured this out. I was in the same boat as all of you above..
I tracked down the ESP32 board folder and deleted the QRCode folder in ESP32..
"C:\Users\xxxxx\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.9\tools\sdk\esp32\include\qrcode"
My code immediately compiled with no errors.
Remember to do the same if you install board updates.
This solved my compilation error. Note that if AppData folder might be Hidden.
I’m back into doing more ESP32 work now; I should consider renaming the component folder.
Thanks for the info. :)
I’m back into doing more ESP32 work now; I should consider renaming the component folder.
Thanks for the info. :)
Thank you for the library and please do come back to the ESP32 world!
I’m back into doing more ESP32 work now; I should consider renaming the component folder.
Thanks for the info. :)
Welcome back, renaming does the trick, can you please merge and release the pull request https://github.com/ricmoo/QRCode/pull/36
Installing latest esp32 boards in Arduino IDE breaks your great library