CMake error Building the nRF Connect SDK documentation

Following the guide posted here:
https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.2/nrf/doc_build.html

Generate this error:

C:\ncs\v2.1.2\nrf\doc>cmake -GNinja -S. -B_build

Loading Zephyr module(s) (Zephyr base (cached)): doc
-- Cache files will be written to: C:/ncs/v2.1.2/zephyr/.cache
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
CMake Error at C:/ncs/v2.1.2/zephyr/cmake/modules/zephyr_module.cmake:78 (message):
Traceback (most recent call last):

File "C:\ncs\v2.1.2\zephyr\scripts\zephyr_module.py", line 553, in <module>
main()
File "C:\ncs\v2.1.2\zephyr\scripts\zephyr_module.py", line 503, in main
west_proj = west_projects()
File "C:\ncs\v2.1.2\zephyr\scripts\zephyr_module.py", line 381, in west_projects
manifest = Manifest.from_file()
File "C:\Users\UserName\AppData\Local\Programs\Python\Python310\lib\site-packages\west\manifest.py", line 1170, in from_file
return Manifest(topdir=topdir, config=config,
File "C:\Users\UserName\AppData\Local\Programs\Python\Python310\lib\site-packages\west\manifest.py", line 1396, in __init__
self._load_validated()
File "C:\Users\UserName\AppData\Local\Programs\Python\Python310\lib\site-packages\west\manifest.py", line 1791, in _load_validated
self._load_projects(manifest_data, url_bases, defaults)
File "C:\Users\UserName\AppData\Local\Programs\Python\Python310\lib\site-packages\west\manifest.py", line 2114, in _load_projects
self._import_from_project(project, imp)
File "C:\Users\UserName\AppData\Local\Programs\Python\Python310\lib\site-packages\west\manifest.py", line 2300, in _import_from_project
self._import_map_from_project(project, imp)
File "C:\Users\UserName\AppData\Local\Programs\Python\Python310\lib\site-packages\west\manifest.py", line 2327, in _import_map_from_project
imported = self._import_content_from_project(project, imap.file)
File "C:\Users\UserName\AppData\Local\Programs\Python\Python310\lib\site-packages\west\manifest.py", line 2378, in _import_content_from_project
project.is_cloned():
File "C:\Users\UserName\AppData\Local\Programs\Python\Python310\lib\site-packages\west\manifest.py", line 933, in is_cloned
res = self.git('rev-parse --show-cdup', check=False, cwd=cwd,
File "C:\Users\UserName\AppData\Local\Programs\Python\Python310\lib\site-packages\west\manifest.py", line 830, in git
popen = subprocess.Popen(
File "C:\Users\UserName\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 966, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\UserName\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1435, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,

FileNotFoundError: [WinError 2] The system cannot find the file specified

Call Stack (most recent call first):
C:/ncs/v2.1.2/zephyr/cmake/modules/doc.cmake:24 (include)
C:/ncs/v2.1.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
C:/ncs/v2.1.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
CMakeLists.txt:18 (find_package)


-- Configuring incomplete, errors occurred!
See also "C:/ncs/v2.1.2/nrf/doc/_build/CMakeFiles/CMakeOutput.log".

Parents
  • Partial Solution

    Following worked for me:

    I opened VS Code as Admin, and opened an nRF Connect Terminal.

    (I also found this to work opening nRF Connect Desktop > Toolchain Manager > Open Bash)

    cd C:\ncs\v2.1.2

    >pip3 install -r zephyr/scripts/requirements.txt
    >pip3 install -r nrf/scripts/requirements.txt
    >pip3 install -r bootloader/mcuboot/scripts/requirements.txt

    (I had done all this previously from an elevated command shell, but doing it from inside an nRF Connect Terminal from VS Code did it.  The error probably has to do with the West workspace initialization, or Zephyr-Base path, but I worked through those, so unsure and it's unnecessary for me to pursue further.)

    cd C:\ncs\v2.1.2\nrf\doc

    >cmake -GNinja -S. -B_build

    Which built successfully.

    cd _build

    >ninja

    However Ninja now produces build errors, so will try to sort them out, and if I can't I'll post follow up.

  • Hi,

    Thank you for sharing your partial solution. Please let me know whether you are able to figure out the ninja errors or not.

    Best regards,

    Marte

Reply Children
No Data
Related