86box_demo移植问题

末班车上的乘客
Posts: 18
Joined: Mon Feb 06, 2023 6:56 am

86box_demo移植问题

Postby 末班车上的乘客 » Wed Feb 22, 2023 10:49 am

死活找不到文件
-- App "86box_demo" version: 1
-- Adding linker script D:/esp-bsp/user/app/86box_demo/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.0/components/esp_system/ld/esp32s3/sections.ld.in
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.0/components/esp_rom/esp32s3/ld/esp32s3.rom.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.0/components/esp_rom/esp32s3/ld/esp32s3.rom.api.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.0/components/esp_rom/esp32s3/ld/esp32s3.rom.libgcc.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.0/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.0/components/esp_rom/esp32s3/ld/esp32s3.rom.version.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.0/components/soc/esp32s3/ld/esp32s3.peripherals.ld
CMake Error at C:/Espressif/frameworks/esp-idf-v5.0/tools/cmake/component.cmake:280 (message):
SRC_DIRS entry
'D:/esp-bsp/user/app/86box_demo/managed_components/lvgl__lvgl/demos/benchmark/assets/img_benchmark_cogwheel_alpha16.c'
does not exist.
Call Stack (most recent call first):
C:/Espressif/frameworks/esp-idf-v5.0/tools/cmake/component.cmake:442 (__component_add_sources)
main/CMakeLists.txt:6 (idf_component_register)

main/cmakelists.txt 如下
set(LV_DEMO_DIR D:/esp-bsp/user/app/86box_demo/managed_components/lvgl__lvgl/demos)

#file(GLOB_RECURSE LV_DEMOS_SOURCES ${LV_DEMO_DIR}/*.c)

idf_component_register(
SRC_DIRS
"."
"gui"
"gui/font"
"gui/assert"
"gui_music"
"gui_music/assets"
"app"
${LV_DEMOS_SOURCES}

INCLUDE_DIRS
"."
"gui"
"app"
${LV_DEMO_DIR})

set_source_files_properties(
${LV_DEMOS_SOURCES}
PROPERTIES COMPILE_OPTIONS
-DLV_LVGL_H_INCLUDE_SIMPLE)
spiffs_create_partition_image(storage ../spiffs FLASH_IN_PROJECT)

相对路径又无法识别到路径
-- App "86box_demo" version: 1
-- Adding linker script D:/esp-bsp/user/app/86box_demo/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.0/components/esp_system/ld/esp32s3/sections.ld.in
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.0/components/esp_rom/esp32s3/ld/esp32s3.rom.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.0/components/esp_rom/esp32s3/ld/esp32s3.rom.api.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.0/components/esp_rom/esp32s3/ld/esp32s3.rom.libgcc.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.0/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.0/components/esp_rom/esp32s3/ld/esp32s3.rom.version.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.0/components/soc/esp32s3/ld/esp32s3.peripherals.ld
CMake Error at C:/Espressif/frameworks/esp-idf-v5.0/tools/cmake/component.cmake:280 (message):
SRC_DIRS entry
'D:/esp-bsp/user/app/86box_demo/main/../managed_components/lvgl__lvgl/demos/benchmark/assets/img_benchmark_cogwheel_alpha16.c'
does not exist.
Call Stack (most recent call first):
C:/Espressif/frameworks/esp-idf-v5.0/tools/cmake/component.cmake:442 (__component_add_sources)
main/CMakeLists.txt:6 (idf_component_register)

main/cmakelists.txt如下

set(LV_DEMO_DIR ../managed_components/lvgl__lvgl/demos)

file(GLOB_RECURSE LV_DEMOS_SOURCES ${LV_DEMO_DIR}/*.c)

idf_component_register(
SRC_DIRS
"."
"gui"
"gui/font"
"gui/assert"
"gui_music"
"gui_music/assets"
"app"
${LV_DEMOS_SOURCES}

INCLUDE_DIRS
"."
"gui"
"app"
${LV_DEMO_DIR})

set_source_files_properties(
${LV_DEMOS_SOURCES}
PROPERTIES COMPILE_OPTIONS
-DLV_LVGL_H_INCLUDE_SIMPLE)
spiffs_create_partition_image(storage ../spiffs FLASH_IN_PROJECT)

末班车上的乘客
Posts: 18
Joined: Mon Feb 06, 2023 6:56 am

Re: 86box_demo移植问题

Postby 末班车上的乘客 » Wed Feb 22, 2023 10:52 am

将路径加到根目录下makelist中也无效

末班车上的乘客
Posts: 18
Joined: Mon Feb 06, 2023 6:56 am

Re: 86box_demo移植问题

Postby 末班车上的乘客 » Wed Feb 22, 2023 10:55 am

这sdk搞得比linux还复杂,搞yacto的时候也没这么费劲

末班车上的乘客
Posts: 18
Joined: Mon Feb 06, 2023 6:56 am

Re: 86box_demo移植问题

Postby 末班车上的乘客 » Wed Feb 22, 2023 1:29 pm

都不起作用啥情况
add_definitions(LV_LVGL_H_INCLUDE_SIMPLE)
set_source_files_properties(
# ${LV_DEMOS_SOURCES}
SRC_DIRS
PROPERTIES COMPILE_DEFINITIONS LV_LVGL_H_INCLUDE_SIMPLE)

set_source_files_properties(
# ${LV_DEMOS_SOURCES}
SRC_DIRS
PROPERTIES COMPILE_OPTIONS -DLV_LVGL_H_INCLUDE_SIMPLE=1)

末班车上的乘客
Posts: 18
Joined: Mon Feb 06, 2023 6:56 am

Re: 86box_demo移植问题

Postby 末班车上的乘客 » Thu Feb 23, 2023 9:15 am

SRC_DIRS不起作用...

idf_component_register(
SRCS
"hmi_esp32_blink.c"
# "led_show/led_show.c"
# "audio/audio.c"
# "gui/lv_example_top_menu.c"
${LV_DEMOS_SOURCES}

SRC_DIRS
"."
"led_show/"
"audio/"
${LV_DEMO_DIR}
# "gui"
# "gui/font"
# "gui/assert"

# ${LV_SOURCES}

INCLUDE_DIRS
"."
"led_show"
"audio"
${LV_DEMO_DIR}
# "gui"
# "gui/font"
# "gui/assert"

# ${LV_SRC_DIR}
)

set_source_files_properties(
${LV_DEMOS_SOURCES}
PROPERTIES COMPILE_OPTIONS
-DLV_LVGL_H_INCLUDE_SIMPLE)
set_source_files_properties(
#${LV_DEMOS_SOURCES}
${LV_DEMO_DIR}
PROPERTIES COMPILE_OPTIONS
-DLV_LVGL_H_INCLUDE_SIMPLE)

Who is online

Users browsing this forum: Google [Bot] and 27 guests