Skip to content

cannot compile with minimal setup from readme #266

@jappyjan

Description

@jappyjan

I am using the platformio.ini from the readme and have a basic lv_conf.h in the include folder

this is my platformio.ini

[platformio]
#default_envs = esp32-2432S028R

[env]
platform = espressif32
framework = arduino

monitor_speed = 115200
monitor_rts = 0
monitor_dtr = 0
monitor_filters = esp32_exception_decoder

# Partition scheme for OTA
board_build.partitions = min_spiffs.csv

build_flags =
    -Ofast
    #-Wall
    -D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE
    # LVGL settings
    -D LV_CONF_PATH="/Users/jappy/code/cyd-lvgl-test/include/lv_conf.h"

lib_deps =
    https://github.com/rzeldent/esp32-smartdisplay.git

[env:esp32-2432S028R]
board = esp32-2432S028R

this is my lv_conf.h

#define LV_COLOR_DEPTH 16

// debug only
#define LV_USE_PERF_MONITOR 1
#define LV_USE_MEM_MONITOR 1

/*Enable the lvgl log module*/
#define LV_USE_LOG 1

i cannot get past this error message during compilation.

Compiling .pio/build/esp32-2432S028R/libe1a/FS/FS.cpp.o
Compiling .pio/build/esp32-2432S028R/libe1a/FS/vfs_api.cpp.o
Compiling .pio/build/esp32-2432S028R/lib3cc/LittleFS/LittleFS.cpp.o
In file included from .pio/libdeps/esp32-2432S028R/lvgl/src/lv_init.h:16,
                 from .pio/libdeps/esp32-2432S028R/lvgl/lvgl.h:21,
                 from src/main.cpp:2:
.pio/libdeps/esp32-2432S028R/lvgl/src/lv_conf_internal.h:56:18: error: #include expects "FILENAME" or <FILENAME>
         #include LV_CONF_PATH                     /* Note: Make sure to define custom CONF_PATH as a string */
                  ^~~~~~~~~~~~
Compiling .pio/build/esp32-2432S028R/libc2f/SPI/SPI.cpp.o
Compiling .pio/build/esp32-2432S028R/liba53/SD/SD.cpp.o
Compiling .pio/build/esp32-2432S028R/liba53/SD/sd_diskio.cpp.o
Compiling .pio/build/esp32-2432S028R/liba53/SD/sd_diskio_crc.c.o
In file included from .pio/libdeps/esp32-2432S028R/lvgl/src/lv_init.h:16,
                 from .pio/libdeps/esp32-2432S028R/lvgl/lvgl.h:21,
                 from src/main.cpp:2:
.pio/libdeps/esp32-2432S028R/lvgl/src/lv_conf_internal.h:65:120: note: #pragma message: Possible failure to include lv_conf.h, please read the comment in this file if you get errors
         #pragma message("Possible failure to include lv_conf.h, please read the comment in this file if you get errors")
                                                                                                                        ^
Compiling .pio/build/esp32-2432S028R/lib20f/lvgl/core/lv_group.c.o
Compiling .pio/build/esp32-2432S028R/lib20f/lvgl/core/lv_obj.c.o
*** [.pio/build/esp32-2432S028R/src/main.cpp.o] Error 1
In file included from .pio/libdeps/esp32-2432S028R/lvgl/src/core/lv_group.h:16,
                 from .pio/libdeps/esp32-2432S028R/lvgl/src/core/lv_group_private.h:17,
                 from .pio/libdeps/esp32-2432S028R/lvgl/src/core/lv_group.c:9:
.pio/libdeps/esp32-2432S028R/lvgl/src/core/../lv_conf_internal.h:56:18: error: #include expects "FILENAME" or <FILENAME>
         #include LV_CONF_PATH                     /* Note: Make sure to define custom CONF_PATH as a string */
                  ^~~~~~~~~~~~
.pio/libdeps/esp32-2432S028R/lvgl/src/core/../lv_conf_internal.h:65:17: note: #pragma message: Possible failure to include lv_conf.h, please read the comment in this file if you get errors
         #pragma message("Possible failure to include lv_conf.h, please read the comment in this file if you get errors")
                 ^~~~~~~
In file included from .pio/libdeps/esp32-2432S028R/lvgl/src/core/lv_obj.h:16,
                 from .pio/libdeps/esp32-2432S028R/lvgl/src/core/lv_obj_private.h:17,
                 from .pio/libdeps/esp32-2432S028R/lvgl/src/core/lv_obj.c:9:
.pio/libdeps/esp32-2432S028R/lvgl/src/core/../lv_conf_internal.h:56:18: error: #include expects "FILENAME" or <FILENAME>
         #include LV_CONF_PATH                     /* Note: Make sure to define custom CONF_PATH as a string */
                  ^~~~~~~~~~~~
.pio/libdeps/esp32-2432S028R/lvgl/src/core/../lv_conf_internal.h:65:17: note: #pragma message: Possible failure to include lv_conf.h, please read the comment in this file if you get errors
         #pragma message("Possible failure to include lv_conf.h, please read the comment in this file if you get errors")
                 ^~~~~~~
*** [.pio/build/esp32-2432S028R/lib20f/lvgl/core/lv_group.c.o] Error 1
*** [.pio/build/esp32-2432S028R/lib20f/lvgl/core/lv_obj.c.o] Error 1
============================================= [FAILED] Took 7.22 seconds =============================================

Environment      Status    Duration
---------------  --------  ------------
esp32-2432S028R  FAILED    00:00:07.224
======================================= 1 failed, 0 succeeded in 00:00:07.224 =======================================

 *  The terminal process "platformio 'run', '--environment', 'esp32-2432S028R'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions