You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "alimans (via GitHub)" <gi...@apache.org> on 2025/07/27 19:55:41 UTC

[I] [BUG] Feedback on C++/CMake Guide – Outdated Folder Structure and Build Issues [nuttx]</h1><pre> alimans opened a new issue, #16782: URL: https://github.com/apache/nuttx/issues/16782 ### Description / Steps to reproduce the issue Dear Apache NuttX Team, I was following the [C++ and CMake guide](https://nuttx.apache.org/docs/latest/guides/cpp_cmake.html) from your documentation, and I encountered several issues that I believe may be due to changes in the folder structure or recent updates in the repository. Specifically: After running make export, I received the following error: `nuttxspace/nuttx/libs/libc/elf/gnu-elf.ld': No such file or directory` It appears this path or file no longer exists or has been moved. When building the project, it failed with an error related to missing cstdio. I noticed the CMakeLists.txt refers to: `${NUTTX_PATH}/include/libcxx` However, this directory seems to have been renamed or replaced—libcxx no longer exists, and I found a cxx directory instead. After adjusting the path, the next build error occurred: ``` error: 'string' was not declared in this scope; did you mean 'stdin'? src/HelloWorld.cpp:18:9 ``` It seems the standard C++ header <string> could not be found. This might indicate missing include paths or incorrect configurations for C++ standard library support in the example. Based on these issues, I believe the guide could benefit from an update to align with the current repository structure and build process. Please let me know if there are updated instructions elsewhere or if I can assist in clarifying the problems I encountered. Thank you for your time and for the great work on NuttX. ### On which OS does this issue occur? [OS: Linux] ### What is the version of your OS? Ubuntu 24.04.2 LTS runining with wsl2 ### NuttX Version nuttx-export-12.10.0 ### Issue Architecture [Arch: simulator] ### Issue Area [Area: Build System] ### Host information _No response_ ### Verification - [x] I have verified before submitting the report. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org.apache.org For queries about this service, please contact Infrastructure at: users@infra.apache.org </pre><hr/> <h2>Re: [I] [BUG] Feedback on C++/CMake Guide – Outdated Folder Structure and Build Issues [nuttx]</h2> <b>Posted by "leducp (via GitHub)" <gi...@apache.org>.</b><hr/><pre> leducp commented on issue #16782: URL: https://github.com/apache/nuttx/issues/16782#issuecomment-3166862078 NuttX export should support CMake toolchain file now, so your CMakeLists.txt should only contains your own project settings, and be built like this: ``` cmake -B my_build_folder -S my_source_folder -DCMAKE_TOOLCHAIN_FILE=top_path_to_find/nuttx-export/scripts/toolchain.cmake ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org For queries about this service, please contact Infrastructure at: users@infra.apache.org </pre><hr/> <h2>Re: [I] [BUG] Feedback on C++/CMake Guide – Outdated Folder Structure and Build Issues [nuttx]</h2> <b>Posted by "acassis (via GitHub)" <gi...@apache.org>.</b><hr/><pre> acassis closed issue #16782: [BUG] Feedback on C++/CMake Guide – Outdated Folder Structure and Build Issues URL: https://github.com/apache/nuttx/issues/16782 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org For queries about this service, please contact Infrastructure at: users@infra.apache.org </pre><hr/> <h2>Re: [I] [BUG] Feedback on C++/CMake Guide – Outdated Folder Structure and Build Issues [nuttx]</h2> <b>Posted by "leducp (via GitHub)" <gi...@apache.org>.</b><hr/><pre> leducp commented on issue #16782: URL: https://github.com/apache/nuttx/issues/16782#issuecomment-3166866097 ping @trns1997 It seems that we missed the documentation folder when we integrated the CMake toolchain export -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org For queries about this service, please contact Infrastructure at: users@infra.apache.org </pre><hr/> </body> </html>