Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lvgl/src/../src/lv_conf_internal.h:59:18: fatal error: ../../lv_conf.h: No such file or directory #6000

Closed
rtek1000 opened this issue Mar 30, 2024 · 19 comments
Labels

Comments

@rtek1000
Copy link

rtek1000 commented Mar 30, 2024

LVGL version

The latest version available on GitHub

What happened?

I bought a display and I'm trying to compile the demo project, but an error occurs that a file is missing. Does anyone know how to generate this file?

https://www.aliexpress.com/item/1005005865107357.html

lvgl/src/../src/lv_conf_internal.h:59:18: fatal error: ../../lv_conf.h: No such file or directory

How to reproduce?

https://github.com/NoosaHydro/2.4inch_ESP32-2432S024/blob/main/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino

@C47D
Copy link
Contributor

C47D commented Apr 2, 2024

Hi,

Did you followed the instructions available in the docs? They mention where to place the lv_conf.h file the project is missing.

@rtek1000
Copy link
Author

rtek1000 commented Apr 2, 2024

lv_conf.h

The documents have a search box, but I didn't find specifically about the lv_conf.h file.

lv_conf_internal.h

GENERATED FILE, DO NOT EDIT IT!

Make sure all the defines of lv_conf.h have a default value

https://docs.lvgl.io/master/API/lv_conf_internal.html

I tried editing the address, but it returned a 404 error, 'File not found':
https://docs.lvgl.io/master/API/lv_conf.html

@C47D
Copy link
Contributor

C47D commented Apr 3, 2024

@rtek1000
Copy link
Author

rtek1000 commented Apr 9, 2024

Is this one https://docs.lvgl.io/master/integration/framework/arduino.html

Thanks, I'll test it as soon as possible.

@rtek1000
Copy link
Author

rtek1000 commented Apr 9, 2024

Hi, I tried following the instructions in the document, but I didn't find the folder path.

Go to lvgl and copy lv_conf_template.h as lv_conf.h into the Arduino Libraries directory next to the lvgl library folder.

Then I tried to put the file in the /lvgl/src folder, then it compiled.

But now it is asking for the file 'demos/lv_demos.h'


Is there no way for the user to generate these files automatically? Or is the example in question customized beyond what the lvgl library proposes?

@lvgl-bot
Copy link

We need some feedback on this issue.

Now we mark this as "stale" because there was no activity here for 14 days.

Remove the "stale" label or comment else this will be closed in 7 days.

@lvgl-bot lvgl-bot added the stale label Apr 24, 2024
@kisvegabor
Copy link
Member

I'm sorry, I missed your reply 🙁

Hi, I tried following the instructions in the document, but I didn't find the folder path.

Which is the folder that you haven't found?

@rtek1000
Copy link
Author

rtek1000 commented Apr 25, 2024

Which is the folder that you haven't found?


the instructions in the document:

"into the Arduino Libraries directory next to the lvgl library folder"

Then I tried to put the file in the /lvgl/src folder, then it compiled.


But now it is asking for the file 'demos/lv_demos.h'

@kisvegabor
Copy link
Member

It should look like this:
image

After that the demos shall work too.

@rtek1000
Copy link
Author

It should look like this: image

After that the demos shall work too.

Thank you for your attention, in the case of the /library folder, as it houses all shared libraries, wouldn't it be confusing for all libraries to make this type of use of the libraries' root folder?

@kisvegabor
Copy link
Member

kisvegabor commented Apr 29, 2024

It's not ideal for sure, but I have no better idea. 🙁
In the Arduino build system we don't have too much flexibility.

@rtek1000
Copy link
Author

rtek1000 commented May 2, 2024

It's not ideal for sure, but I have no better idea. 🙁 In the Arduino build system we don't have too much flexibility.

I don't really understand the reason for using the root folder, since the lvgl folder has a file called lv_conf_template.h, wouldn't it be easier for the user to just create a copy of that lv_conf_template.h file in this same lvgl folder and rename it to lv_conf.h, keeping both files inside the lvgl folder?

@kisvegabor
Copy link
Member

Hm, interesting idea. Normally our intention is to keep lvgl untouched to make it easier to update in the future. However in case of Arduino it might be really simpler this way. I just don't know how to make try including lv_conf.h from 2 locations in lv_conf_internal.h.

We can consider using

#if defined(__ARDUINO__)
#include "../lv_conf.h" //instead of ../../lv_conf.h
#endif

but it will break existing projects.

@rtek1000
Copy link
Author

rtek1000 commented May 7, 2024

Indeed, now that it is in use in this way, projects should break. It may be interesting to use #warning to guide the user to use the alternative path. I don't know if there is a way to test the existence of the file using #if, perhaps adding some version definition for "watershed" control, from that version the file is located in that folder.

@kisvegabor
Copy link
Member

If I'm not mistaken your lv_conf.h will be overwritten when you change LVGL version. What do you think about it?

@rtek1000
Copy link
Author

rtek1000 commented Jun 2, 2024

It is interesting to consult the Arduino forum to find out what the alternatives are, I know that there are several possible installation locations for Arduino IDE libraries. For example, the folder inside the IDE installation will be overwritten when updating the IDE.

@rtek1000
Copy link
Author

Hello, I tried to compile again the example, and some errors occurred. Have the codes changed a lot since 9 months ago when the example was posted?

error: 'lv_disp_draw_buf_t' does not name a type; did you mean 'lv_draw_buf_t'

Complete log:

/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:16:8: error: 'lv_disp_draw_buf_t' does not name a type; did you mean 'lv_draw_buf_t'?
 static lv_disp_draw_buf_t draw_buf;
        ^~~~~~~~~~~~~~~~~~
        lv_draw_buf_t
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:127:20: error: variable or field 'my_disp_flush' declared void
 void my_disp_flush(lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p)
                    ^~~~~~~~~~~~~
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:127:20: error: 'lv_disp_drv_t' was not declared in this scope
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:127:20: note: suggested alternative: 'lv_fs_drv_t'
 void my_disp_flush(lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p)
                    ^~~~~~~~~~~~~
                    lv_fs_drv_t
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:127:35: error: 'disp' was not declared in this scope
 void my_disp_flush(lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p)
                                   ^~~~
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:127:35: note: suggested alternative: 'dup'
 void my_disp_flush(lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p)
                                   ^~~~
                                   dup
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:127:41: error: expected primary-expression before 'const'
 void my_disp_flush(lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p)
                                         ^~~~~
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:127:75: error: expected primary-expression before '*' token
 void my_disp_flush(lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p)
                                                                           ^
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:127:76: error: 'color_p' was not declared in this scope
 void my_disp_flush(lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p)
                                                                            ^~~~~~~
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:127:76: note: suggested alternative: 'lv_color_t'
 void my_disp_flush(lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p)
                                                                            ^~~~~~~
                                                                            lv_color_t
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:140:23: error: variable or field 'my_touchpad_read' declared void
 void my_touchpad_read(lv_indev_drv_t *indev_driver, lv_indev_data_t *data)
                       ^~~~~~~~~~~~~~
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:140:23: error: 'lv_indev_drv_t' was not declared in this scope
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:140:23: note: suggested alternative: 'lv_indev_data_t'
 void my_touchpad_read(lv_indev_drv_t *indev_driver, lv_indev_data_t *data)
                       ^~~~~~~~~~~~~~
                       lv_indev_data_t
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:140:39: error: 'indev_driver' was not declared in this scope
 void my_touchpad_read(lv_indev_drv_t *indev_driver, lv_indev_data_t *data)
                                       ^~~~~~~~~~~~
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:140:39: note: suggested alternative: 'lv_indev_reset'
 void my_touchpad_read(lv_indev_drv_t *indev_driver, lv_indev_data_t *data)
                                       ^~~~~~~~~~~~
                                       lv_indev_reset
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:140:69: error: expected primary-expression before '*' token
 void my_touchpad_read(lv_indev_drv_t *indev_driver, lv_indev_data_t *data)
                                                                     ^
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:140:70: error: 'data' was not declared in this scope
 void my_touchpad_read(lv_indev_drv_t *indev_driver, lv_indev_data_t *data)
                                                                      ^~~~
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:140:70: note: suggested alternative: 'atan'
 void my_touchpad_read(lv_indev_drv_t *indev_driver, lv_indev_data_t *data)
                                                                      ^~~~
                                                                      atan
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:127:20: error: variable or field 'my_disp_flush' declared void
 void my_disp_flush(lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p)
                    ^~~~~~~~~~~~~
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:127:20: error: 'lv_disp_drv_t' was not declared in this scope
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:127:20: note: suggested alternative: 'lv_fs_drv_t'
 void my_disp_flush(lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p)
                    ^~~~~~~~~~~~~
                    lv_fs_drv_t
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:127:35: error: 'disp' was not declared in this scope
 void my_disp_flush(lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p)
                                   ^~~~
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:127:35: note: suggested alternative: 'dup'
 void my_disp_flush(lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p)
                                   ^~~~
                                   dup
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:127:41: error: expected primary-expression before 'const'
 void my_disp_flush(lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p)
                                         ^~~~~
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:127:75: error: expected primary-expression before '*' token
 void my_disp_flush(lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p)
                                                                           ^
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:127:76: error: 'color_p' was not declared in this scope
 void my_disp_flush(lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p)
                                                                            ^~~~~~~
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:127:76: note: suggested alternative: 'lv_color_t'
 void my_disp_flush(lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p)
                                                                            ^~~~~~~
                                                                            lv_color_t
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:140:23: error: variable or field 'my_touchpad_read' declared void
 void my_touchpad_read(lv_indev_drv_t *indev_driver, lv_indev_data_t *data)
                       ^~~~~~~~~~~~~~
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:140:23: error: 'lv_indev_drv_t' was not declared in this scope
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:140:23: note: suggested alternative: 'lv_indev_data_t'
 void my_touchpad_read(lv_indev_drv_t *indev_driver, lv_indev_data_t *data)
                       ^~~~~~~~~~~~~~
                       lv_indev_data_t
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:140:39: error: 'indev_driver' was not declared in this scope
 void my_touchpad_read(lv_indev_drv_t *indev_driver, lv_indev_data_t *data)
                                       ^~~~~~~~~~~~
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:140:39: note: suggested alternative: 'lv_indev_reset'
 void my_touchpad_read(lv_indev_drv_t *indev_driver, lv_indev_data_t *data)
                                       ^~~~~~~~~~~~
                                       lv_indev_reset
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:140:69: error: expected primary-expression before '*' token
 void my_touchpad_read(lv_indev_drv_t *indev_driver, lv_indev_data_t *data)
                                                                     ^
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:140:70: error: 'data' was not declared in this scope
 void my_touchpad_read(lv_indev_drv_t *indev_driver, lv_indev_data_t *data)
                                                                      ^~~~
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:140:70: note: suggested alternative: 'atan'
 void my_touchpad_read(lv_indev_drv_t *indev_driver, lv_indev_data_t *data)
                                                                      ^~~~
                                                                      atan
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino: In function 'void setup()':
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:198:28: error: 'draw_buf' was not declared in this scope
     lv_disp_draw_buf_init(&draw_buf, buf1, buf2, screenWidth * 200);
                            ^~~~~~~~
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:198:28: note: suggested alternative: 'lv_draw_buf_t'
     lv_disp_draw_buf_init(&draw_buf, buf1, buf2, screenWidth * 200);
                            ^~~~~~~~
                            lv_draw_buf_t
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:198:5: error: 'lv_disp_draw_buf_init' was not declared in this scope
     lv_disp_draw_buf_init(&draw_buf, buf1, buf2, screenWidth * 200);
     ^~~~~~~~~~~~~~~~~~~~~
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:198:5: note: suggested alternative: 'lv_draw_buf_init'
     lv_disp_draw_buf_init(&draw_buf, buf1, buf2, screenWidth * 200);
     ^~~~~~~~~~~~~~~~~~~~~
     lv_draw_buf_init
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:201:12: error: 'lv_disp_drv_t' does not name a type; did you mean 'lv_fs_drv_t'?
     static lv_disp_drv_t disp_drv;
            ^~~~~~~~~~~~~
            lv_fs_drv_t
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:202:23: error: 'disp_drv' was not declared in this scope
     lv_disp_drv_init(&disp_drv);
                       ^~~~~~~~
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:202:5: error: 'lv_disp_drv_init' was not declared in this scope
     lv_disp_drv_init(&disp_drv);
     ^~~~~~~~~~~~~~~~
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:202:5: note: suggested alternative: 'lv_fs_drv_init'
     lv_disp_drv_init(&disp_drv);
     ^~~~~~~~~~~~~~~~
     lv_fs_drv_init
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:206:25: error: 'my_disp_flush' was not declared in this scope
     disp_drv.flush_cb = my_disp_flush;
                         ^~~~~~~~~~~~~
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:208:5: error: 'lv_disp_drv_register' was not declared in this scope
     lv_disp_drv_register(&disp_drv);
     ^~~~~~~~~~~~~~~~~~~~
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:208:5: note: suggested alternative: 'lv_fs_drv_register'
     lv_disp_drv_register(&disp_drv);
     ^~~~~~~~~~~~~~~~~~~~
     lv_fs_drv_register
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:211:12: error: 'lv_indev_drv_t' does not name a type; did you mean 'lv_indev_data_t'?
     static lv_indev_drv_t indev_drv;
            ^~~~~~~~~~~~~~
            lv_indev_data_t
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:212:24: error: 'indev_drv' was not declared in this scope
     lv_indev_drv_init(&indev_drv);
                        ^~~~~~~~~
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:212:5: error: 'lv_indev_drv_init' was not declared in this scope
     lv_indev_drv_init(&indev_drv);
     ^~~~~~~~~~~~~~~~~
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:212:5: note: suggested alternative: 'lv_fs_drv_init'
     lv_indev_drv_init(&indev_drv);
     ^~~~~~~~~~~~~~~~~
     lv_fs_drv_init
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:214:25: error: 'my_touchpad_read' was not declared in this scope
     indev_drv.read_cb = my_touchpad_read;
                         ^~~~~~~~~~~~~~~~
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:214:25: note: suggested alternative: 'touchRead'
     indev_drv.read_cb = my_touchpad_read;
                         ^~~~~~~~~~~~~~~~
                         touchRead
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:215:5: error: 'lv_indev_drv_register' was not declared in this scope
     lv_indev_drv_register(&indev_drv);
     ^~~~~~~~~~~~~~~~~~~~~
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:215:5: note: suggested alternative: 'lv_fs_drv_register'
     lv_indev_drv_register(&indev_drv);
     ^~~~~~~~~~~~~~~~~~~~~
     lv_fs_drv_register
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:230:5: error: 'lv_demo_widgets' was not declared in this scope
     lv_demo_widgets(); // OK
     ^~~~~~~~~~~~~~~
/home/user/ESP32/ESP32-DISPLAY-2.4/2.4inch_ESP32-2432S024/1-Demo/Demo_Arduino/1_2_Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch/Factory_samples_Capacitive_touch.ino:230:5: note: suggested alternative: 'lv_demos_create'
     lv_demo_widgets(); // OK
     ^~~~~~~~~~~~~~~
     lv_demos_create

@rtek1000
Copy link
Author

Note, the 'demos' were placed in the sketch folder.

print1

@rtek1000
Copy link
Author

The compilation using old libraries worked, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants