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

#include __LV_TO_STR(LV_CONF_PATH) fails if LV_CONF_PATH contains spaces #7858

Open
XJDHDR opened this issue Feb 27, 2025 · 0 comments
Open

Comments

@XJDHDR
Copy link

XJDHDR commented Feb 27, 2025

LVGL version

v9.2.2

Platform

PlatformIO running through JetBrains CLion on Windows
Custom-made PCB with ESP32-C3 microcontroller

What happened?

I have a PlatformIO project set up for a project I'm working on. I have my lv_conf.h inside the PlatformIO include folder and used this line in the platformio.ini file to tell LVGL where to find it:
build_flags = -D LV_CONF_PATH="$PROJECT_INCLUDE_DIR/lv_conf.h"

When I tried to build the project, I encountered this error:

In file included from .pio/libdeps/lolin_c3_mini/lvgl/src/lv_init.h:16,
Compiling .pio\build\lolin_c3_mini\src\main.cpp.o
                 from .pio/libdeps/lolin_c3_mini/lvgl/LVGL.h:21,
                 from src/Display/Display.h:8,
                 from src/Display/Display.cpp:5:
.pio/libdeps/lolin_c3_mini/lvgl/src/lv_conf_internal.h:54:42: fatal error: D://College_project/include/lv_conf.h 1/Repoless: No such file or directory
         #include __LV_TO_STR(LV_CONF_PATH)

I then tried commenting out the include line mentioned in the error and replaced it with this explicitly defining the file's path:

#include "D:/Projects/Repoless Projects/College_project/include/lv_conf.h"

This let the project compile successfully.

After undoing that change, I then tried renaming the Repoless Projects folder to replace the space with an underscore. This also let my project compile successfully.

How to reproduce?

No response

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

No branches or pull requests

1 participant