mingw make can't handle spaces in path?

后端 未结 4 452
抹茶落季
抹茶落季 2020-12-07 01:08

I am trying to compile code, the makefile created using qmake. When I run mingw32-make I get the following error:

cd bzip2-1.0.5\\ && c:\\QtSDK\\Desk         


        
4条回答
  •  甜味超标
    2020-12-07 01:32

    From the MinGW "Getting Started" guide:

    MinGW may have problems with paths containing spaces, and if not, usually other programs used with MinGW will experience problems with such paths. Thus, we strongly recommend that you do not install MinGW in any location with spaces in the path name reference; i.e. you should avoid installing into any subdirectory of "Program Files" or "My Documents", or the like.

    I suspect the same problems found in running executable files will also manifest itself with other files as well. You could try wrapping the whole thing (file specification) inside double quotes and this may work but Windows is sometimes not as logical as UNIX-based shells in this area.


    Spaces in file names are evil anyway :-)

提交回复
热议问题