QR Reader/Decoder Lib?

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
John12
Posts: 8
Joined: Thu Jun 10, 2021 8:41 pm

Re: QR Reader/Decoder Lib?

Post by John12 » Sat Jun 19, 2021 12:33 pm

Hello,

I tried an example mentioned here :
https://github.com/dlbeer/quirc

It worked for me on my laptop when providing an image file that contents a qr code. To compile the example file on my laptop, i used theses commands :

Code: Select all

cc -I lib -I tests -g -O0 -c example.c
cc -o example example.o tests/dbgutil.o libquirc.a -L /usr/local/lib -lm -lpng -ljpeg
Now i want to build the .mpy file.

Itried with this makefile :

Code: Select all

# Source files (.c or .py)
SRC = factorial.c dbgutil.c decode.c identify.c quirc.c version_db.c

# Architecture to build for (x86, x64, armv7m, xtensa, xtensawin)
ARCH = xtensawin
but i got this error :

Code: Select all

dbgutil.c:21:10: fatal error: jpeglib.h: No such file or directory
 #include <jpeglib.h>
          ^~~~~~~~~~~
compilation terminated.
../../../py/dynruntime.mk:129: recipe for target 'build/dbgutil.o' failed
make: *** [build/dbgutil.o] Error 1

Do you have some idea to solve it ?

Thank you

Post Reply