Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Wrong PWD when rebuilt Qt project in Visual Studio 2019

    General and Desktop
    1
    3
    524
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      Lun Yi last edited by

      (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 1

      So, 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.

      1 Reply Last reply Reply Quote 0
      • L
        Lun Yi last edited by

        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.props

        and 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

        L 1 Reply Last reply Reply Quote 0
        • L
          Lun Yi @Lun Yi last edited by

          @Lun-Yi

          Do not use windows absolute path in .pro file and vs project setting and rebuild it. It is working now.

          1 Reply Last reply Reply Quote 1
          • First post
            Last post