lvgl / lv_port_linux

LVGL configured to work with a standard Linux framebuffer
MIT License
235 stars 148 forks source link

Using 3rd-party lib qr-code shows "undefined reference"-error #28

Closed ChrisPasda closed 1 year ago

ChrisPasda commented 1 year ago

I am trying to use the qr-code feature with this template for the fb0 in c and i activated this feature in the lv_conf.h. When i am using some qr-related functions like lv_qrcode_create() i get an "undefined reference"-error while compiling with make. When i am clicking on the function my IDE finds the correct file in src/libs/qrcode.

Thank you very much in advance and with best regards,

Chris

kisvegabor commented 1 year ago

Do you build the project with Eclipse or Make?

ChrisPasda commented 1 year ago

Hey, i build it with make in VS Code. Maybe that could be the issue?

Thanks for the response.

kisvegabor commented 1 year ago

I've checked that the make file includes all C files from the extradirectory.

Please modify lv_qrcode.c like

#error "before #if"
#include "lv_qrcode.h"
#if LV_USE_QRCODE
#error "after #if"

It will show if the file is being compiled or not.

ChrisPasda commented 1 year ago

I did that and that was my outcome: image

Thank you very much for the response and best regards

ChrisPasda commented 1 year ago

Okay, i dont know what caused the problem but after restarting my VM everyhting is working now.

Thank you very much !

kisvegabor commented 1 year ago

Next time I suggest trying make clean too.