Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Wrong PWD when rebuilt Qt project in Visual Studio 2019
QtWS25 Last Chance

Wrong PWD when rebuilt Qt project in Visual Studio 2019

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 1 Posters 824 Views
  • 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 Offline
    L Offline
    Lun Yi
    wrote on last edited by
    #1

    (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
    0
    • L Offline
      L Offline
      Lun Yi
      wrote on last edited by
      #2

      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
      0
      • L Lun Yi

        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 Offline
        L Offline
        Lun Yi
        wrote on last edited by
        #3

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

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved