From 762a573ef1f4d800b98d3acfcc72c0b2792de69e Mon Sep 17 00:00:00 2001
From: Chen Liang fsutil file setshortname
in
-cmd
on certain directories, such as
-Microsoft Visual Studio
or Windows Kits
, to
-assign arbitrary short paths so configure
can access
-them.
cmd
on directories to assign arbitrary short paths so
+configure
can access them. If the result says "Access
+denied", it may be that there are processes running in that directory;
+in this case, you can reboot Windows in safe mode and run the command on
+those directories again.
+The only directories required to have short paths are
+Microsoft Visual Studio
and Windows Kits
; the
+rest of the "contains space" warnings from configure
, such
+as IntelliJ IDEA
, can be ignored. You can choose any short
+name; once it is set, configure
's tools like
+cygpath
can convert the directory with spaces to your
+chosen short name and pass it to the build system.
If none of the suggestions in this document helps you, or if you find what you believe is a bug in the build system, please contact the Build diff --git a/doc/building.md b/doc/building.md index 47ad9e7c72b..466e8d7edf8 100644 --- a/doc/building.md +++ b/doc/building.md @@ -1800,9 +1800,17 @@ temporarily. On Windows, when configuring, `fixpath.sh` may report that some directory names have spaces. Usually, it assumes those directories have [short paths](https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/fsutil-8dot3name). -You can run `fsutil file setshortname` in `cmd` on certain directories, such as -`Microsoft Visual Studio` or `Windows Kits`, to assign arbitrary short paths so -`configure` can access them. +You can run `fsutil file setshortname` in `cmd` on directories to assign +arbitrary short paths so `configure` can access them. If the result says "Access +denied", it may be that there are processes running in that directory; in this +case, you can reboot Windows in safe mode and run the command on those directories +again. + +The only directories required to have short paths are `Microsoft Visual Studio` +and `Windows Kits`; the rest of the "contains space" warnings from `configure`, +such as `IntelliJ IDEA`, can be ignored. You can choose any short name; once it +is set, `configure`'s tools like `cygpath` can convert the directory with spaces +to your chosen short name and pass it to the build system. ### Getting Help