-
Notifications
You must be signed in to change notification settings - Fork 92
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
Standalone Project Setup Fails: SRC_DIRS Error When Extracting wolfssh_echoserver Example #782
Comments
@gojimmypi can you please take a look at this one too? |
I was able to resolve this so that the code works in both cases - but I am not very adept with git so just giving you my fixes here. Hopefully it helps.
|
@clutch2sft thanks you so much for the suggestion! I'll need to take a closer look at the proposed cmake changes here, but in the meantime please take a look at my update in #773. In particular, see my updates CMakeFiles.txt in the examples/wolfssh_echoserver. See also my #781 response. |
Hi @clutch2sft - I've updated the Managed Components for wolfSSL to v5.7.6 and for wolfSSH to 1.4.18. The wolfssh_echoserver example works for me, tested on ESP-IDF v5.2. I was hoping you could take it for a test drive and confirm before I upgrade the wolfSSH library to the latest release. |
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.
The text was updated successfully, but these errors were encountered: