This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Problem Building the nRF Connect SDK documentation

Hi,

After following the steps for building the documentation, I always get the following error:

"CMake Error at CMakeLists.txt:92 (add_subdirectory): add_subdirectory given source "/doc" which is not an existing directory."

Everything else is working perfectly.

Settings:

Clean Win 10, updated, on Parallels on a Mac-pro.

NCS master, not using the toolchain, as I need to work on the master branch

This error is on the steps to build the documentation found here: 

https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/doc_build.html

When I get to step 3 "cmake -GNinja .."

I get the error:

"CMake Error at CMakeLists.txt:92 (add_subdirectory): add_subdirectory given source "/doc" which is not an existing directory."

This is line 92 at CMakeLists.txt:

# Get access to the 'html' target from doc/CMakeLists.txt in Zephyr

add_subdirectory(${ZEPHYR_BASE}/doc ${ZEPHYR_BINARY_DIR})

Everything looks normal

I am attaching a couple of screenshots showing the results.

Please advise.

Thanks!

Related