Skip to content

Commit b7e8a9a

Browse files
committed
Windows sof-docs build environment troubleshooting
Signed-off-by: Michal Wasko <michal.wasko@intel.com>
1 parent a3e53ca commit b7e8a9a

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

contribute/process/docbuild.rst

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,40 @@ Further information on how to use lightweight Python
329329
virtualization environments can be found at
330330
https://docs.python.org/3/library/venv.html.
331331

332+
Windows troubleshooting
333+
***********************
334+
335+
It is possible that the ``cmake`` command may not be accessible from the MSYS2 shell:
336+
337+
.. code-block:: console
338+
339+
cmake -GNinja .
340+
bash: cmake: command not found
341+
342+
The problem may be due to the MSYS2 PATH missising cmake installation folder.
343+
If the cmake works correctly from the Win Command Prompt then edit the msys2_shell.cmd
344+
and check if a PATH inherit option is enabled:
345+
346+
.. code-block:: bash
347+
348+
set MSYS2_PATH_TYPE=inherit
349+
350+
351+
Another issue that may occur is the ``sphinx-build`` command not found:
352+
353+
.. code-block:: bash
354+
355+
make html
356+
make: sphinx-build: Command not found
357+
make: *** [Makefile:36: html] Error 127
358+
359+
If the above error occurs both in Win Command Prompt and in the MSYS2 shell
360+
then the python sphinx package need to be updated:
361+
362+
.. code-block:: bash
363+
364+
pip install -U sphinx
365+
332366
Diagram compilation troubleshooting
333367
***********************************
334368

0 commit comments

Comments
 (0)