Where is Path specified??????????

User avatar
klaatu2
Posts: 16
Joined: Wed Feb 08, 2023 11:32 pm
Location: TEXAS

Where is Path specified??????????

Postby klaatu2 » Mon Aug 26, 2024 5:35 pm

Trying to compile example code

Code: Select all

  Directory specified in EXTRA_COMPONENT_DIRS doesn't exist: E:/components
The path is wrong, where/how is it set?

floitsch_toit
Posts: 22
Joined: Wed Jun 29, 2022 4:25 pm

Re: Where is Path specified??????????

Postby floitsch_toit » Tue Aug 27, 2024 11:57 am

https://docs.espressif.com/projects/esp ... le-project
Alternatively, EXTRA_COMPONENT_DIRS can be set in the top-level CMakeLists.txt to look for components in other places.

User avatar
klaatu2
Posts: 16
Joined: Wed Feb 08, 2023 11:32 pm
Location: TEXAS

Re: Where is Path specified??????????

Postby klaatu2 » Tue Aug 27, 2024 4:56 pm

The CMakeLists.txt file has the following

Code: Select all

# The following lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)

set(EXTRA_COMPONENT_DIRS
    ../../components   (Was this the line that was the issue?)
    )

add_compile_options(-fdiagnostics-color=always 
                    -Wno-format 
                    -DLV_LVGL_H_INCLUDE_SIMPLE
                    -Wno-ignored-qualifiers
                    -Wno-unused-function
                    -Wno-unused-variable)

project(smart_panel)
In the end, I just made sure I had the same directory structure as the example and got it to work. What was confusing, was this example had its own folder, but it was drawing from files outside/above the folder apparently files common to all examples. Never found any reference to the path to the files outside the example folder, other than "../../components" above

Who is online

Users browsing this forum: Bing [Bot] and 182 guests