QRCode icon indicating copy to clipboard operation
QRCode copied to clipboard

Doesnt work with latest esp32 boards in Arduino IDe

Open rachelbryan opened this issue 3 years ago • 10 comments

Installing latest esp32 boards in Arduino IDE breaks your great library

rachelbryan avatar Jan 11 '22 16:01 rachelbryan

On both ESP32 Pico and ESP Wroom, error comes up on compiler as "'QRCode' does not name a type"

SaifSabban avatar May 14 '22 12:05 SaifSabban

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!

Invisibleman1002 avatar Jul 08 '22 19:07 Invisibleman1002

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.

stshady avatar Feb 26 '23 09:02 stshady

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.

MYCAMEL222 avatar May 28 '23 00:05 MYCAMEL222

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.

DarrellChan avatar Mar 01 '24 09:03 DarrellChan

I’m back into doing more ESP32 work now; I should consider renaming the component folder.

Thanks for the info. :)

ricmoo avatar Mar 01 '24 16:03 ricmoo

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!

c9obvi avatar Apr 11 '24 05:04 c9obvi