I am using RealTek UE72 SDK with LVGL to build my application. I want to generate a QR code, for that I am using ui/LVGL/lvgl/src/extra/libs/qrcode modules but looks like it is not included in the build tree. So that getting ‘undefined reference’ error for the APIs from the modules of this folder. How to include them in the build?
The setting must be set to
#define CONFIG_LV_USE_QRCODE 1
Consequently, LV_USE_QRCODE will be defined within lv_conf.h
#define LV_USE_QRCODE CONFIG_LV_USE_QRCODE
Inside *.c or *.h, you need to #include “lvgl/src/extra/libs/qrcode/lv_qrcode.h”
and use “lv_qrcode_create()” and other functions
1 Like