-
Notifications
You must be signed in to change notification settings - Fork 94
Description
Description:
The wolfssh_echoserver example is presented as a template to simplify the integration of wolfssh capabilities into custom ESP-IDF projects. However, when attempting to extract this example and set it up as a standalone project, the build process fails with the following error:
CMake Error at ~/esp/v5.4/esp-idf/tools/cmake/component.cmake:285 (message): SRC_DIRS entry '~/src/' does not exist. Call Stack (most recent call first): ~/esp/v5.4/esp-idf/tools/cmake/component.cmake:454 (__component_add_sources) components/wolfssh/CMakeLists.txt:437 (idf_component_register)
Steps to Reproduce:
Extract or copy the wolfssh_echoserver example from wolfssh/ide/Espressif/ESP-IDF/examples/wolfssh_echoserver to a new directory outside of the original repository tree.
Set up a new ESP-IDF project using the extracted example.
Run the build process with ESP-IDF.
Encounter the SRC_DIRS error during the CMake configuration.
Observed Behavior:
The build fails because the CMake configuration for the wolfssh component references a directory path (~/src/) that does not exist in the new project structure.
Expected Behavior:
As a template, the wolfssh_echoserver example should be easily extractable and configurable as a standalone project. The build system should use relative paths that are valid in the context of the new project location.
Potential Considerations:
The error might be related to how the SRC_DIRS entry is defined in the components/wolfssh/CMakeLists.txt.
Adjusting the SRC_DIRS configuration to reference paths relative to the project root could resolve this issue.
Request for Guidance/Action:
Could the maintainers provide clarification on the intended setup for the wolfssh_echoserver example when used as a standalone project?
Is there a recommended modification or configuration change (e.g., adjusting the SRC_DIRS path) that would allow the example to build successfully outside of the main repository tree?
Alternatively, should the example documentation be updated to include instructions for setting up the project independently?
Thank you for your time and assistance. I look forward to any guidance or suggestions you might have as I work through this issue.