Wrong PWD when rebuilt Qt project in Visual Studio 2019
-
(C:\Qt5.9.0\5.9 and qmake is in C:\Qt\Qt5.9.0\5.9\msvc2017_64, C:\vcglib, project root is in: C:\meshlab\src\meshlab.pro, and many projects in src folder)
When I rebuilt project in visual studio (Qt extension imported .pro), I see below error (I built and run it successful before. Now I can run it but cannot rebuild it ):
Error ERROR running qmake
qmake: (\bin\qmake.exe)
qmake: $PWD=C:\Users\lyi\AppData\Local\Temp\5dxmcl5p.wwo
qmake: The system cannot find the path specified.
qmake: Error creating Makefile
common C:\meshlab\src\common\common.vcxproj 1So, what PWD meaning here (project working directory) ?
And why/how PWD pointing to my user data folder ?
My working directory is : C:\meshlab\src\common (other projects in .sln (VS solution) had same error).Please help to resolve it. Thank you very much.
-
I checked MACRO of project property and see :
$(QtVarsWorkDir) = C:\Users\lyi\AppData\Local\Temp\5dxmcl5p.wwo
$(QtVarsWorkPath) = C:\Users\lyi\AppData\Local\Temp\5dxmcl5p.wwo\qtvars_x64_Debug.propsand I see $(QtVarsWorkDir) in C:\Users\lyi\AppData\Local\QtMsBuild\qt.props
So, looks like it is temp property variable. But, not know how to set correct value and where to set it (may set it in environment variable by hard code)
Any helps ?
Thanks