cederom commented on PR #2827:
URL: https://github.com/apache/nuttx-apps/pull/2827#issuecomment-2462917999
@WenLY1 I have problem testing this PR locally.. my first cmake steps in
NuttX.. could you please advise? :-)
```
(venv3.11embedded) uname -a
Linux octagon 5.15.0 FreeBSD 13.3-RELEASE-p7 GENERIC x86_64 GNU/Linux
```
Looks like cmake tries to create `/include` directory on your branch why?
```
(venv3.11embedded) rm -rf build/
(venv3.11embedded) git checkout WenLY1/quickjs_upstream
Updating files: 100% (27852/27852), done.
Note: switching to 'WenLY1/quickjs_upstream'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at 7191a587c2 update quickjs patch for cmake compilation
(venv3.11embedded) git branch
* (HEAD detached at WenLY1/quickjs_upstream)
br_wjy_kernel_sotest_devminor
master
(venv3.11embedded) cmake -B build -DBOARD_CONFIG=sim:nsh
CMake Warning (dev) in CMakeLists.txt:
No project() command is present. The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command. Add a line of
code such as
project(ProjectName)
near the top of the file, but after cmake_minimum_required().
CMake is pretending there is a "project(Project)" command on the first
line.
This warning is for project developers. Use -Wno-dev to suppress it.
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:41 (file):
file problem creating directory: /include
CMake Error at audioutils/CMakeLists.txt:21 (nuttx_add_subdirectory):
Unknown CMake command "nuttx_add_subdirectory".
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.25)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring incomplete, errors occurred!
See also "/XXX/nuttx/build/CMakeFiles/CMakeOutput.log".
(venv3.11embedded) rm -rf build/
```
There is no problem on nuttx master all works fine:
```
(venv3.11embedded) git checkout master
Updating files: 100% (27852/27852), done.
Previous HEAD position was 7191a587c2 update quickjs patch for cmake
compilation
Switched to branch 'master'
Your branch is up to date with 'origin/master'.
(venv3.11embedded) cmake -B build -DBOARD_CONFIG=sim:nsh
-- Initializing NuttX
Select HOST_LINUX=y
Select HOST_X86_64=y
-- CMake 3.25.1
-- Board: sim
-- Config: nsh
-- Appdir: /XXX/nuttx-apps
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /XXX/nuttx/build
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]