ricmoo / QRCode

QR code generation library in C, optimized for low-power devices, such as Arduino.
Other
638 stars 202 forks source link

Doesnt work with latest esp32 boards in Arduino IDe #35

Open rachelbryan opened 2 years ago

rachelbryan commented 2 years ago

Installing latest esp32 boards in Arduino IDE breaks your great library

SaifSabban commented 2 years ago

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

Invisibleman1002 commented 2 years ago

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!

stshady commented 1 year ago

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.

MYCAMEL222 commented 1 year ago

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.

DarrellChan commented 4 months ago

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.

ricmoo commented 4 months ago

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

Thanks for the info. :)

c9obvi commented 3 months ago

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!

MadOrkestra commented 1 month ago

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