lvgl / lv_port_linux

LVGL configured to work with a standard Linux framebuffer
MIT License
260 stars 160 forks source link

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

Closed ChrisPasda closed 2 years ago

ChrisPasda commented 2 years 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 2 years ago

Do you build the project with Eclipse or Make?

ChrisPasda commented 2 years ago

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

Thanks for the response.

kisvegabor commented 2 years 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 2 years ago

I did that and that was my outcome: image

Thank you very much for the response and best regards

ChrisPasda commented 2 years ago

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

Thank you very much !

kisvegabor commented 2 years ago

Next time I suggest trying make clean too.