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
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
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
Thank you