• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Compilation Error: lvgl_private.h No such file or directory

Q&A Forum › Category: ESP32 › Compilation Error: lvgl_private.h No such file or directory
0 Vote Up Vote Down
Fernando Taddei asked 8 months ago

Hi, I got today the new version of LVGL book (1.4). I verified the libraries versions and placed the User_Setup.h within the TFT_eSPI directory and the lv_conf.h within the libraries directory with the files supplied in this new book’ links.
Then I downloaded the “Hello, world!” sketch from the provided link, which took me to the raw view of this one. Then I copied (Control-C) the whole text and pasted it into a new sketch. I got the following compilation error:
c:\Users\tadde\OneDrive\Documents\Arduino\libraries\lvgl\src\examples\widgets\scale\lv_example_scale_7.c:4:10: fatal error: ../../../src/lvgl_private.h: No such file or directory
4 | #include “../../../src/lvgl_private.h” //To expose the fields of lv_draw_task_t
Is it possible that the TFT_eSPI and/or the lv_conf.h files provided may be wrong or there are other points I should check to help the compiler to find the file?
Thanks.

Question Tags: LVGL
2 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 8 months ago

Hello Fernando,
Please delete the LVGL library and follow the instructions again in the eBook to install the LVGL library.
That error means that you’ve moved the demos and examples folders to the src folder. You can’t move those folders in LVGL 9.2.

Regards,
Sara

0 Vote Up Vote Down
Fernando Taddei answered 8 months ago

Thanks for your fast reply.
I followed your advise and it works fine now.
Have a nice weekend.

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.