Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. SLOVED.Where define the QTDIR in visual studio?
Qt 6.11 is out! See what's new in the release blog

SLOVED.Where define the QTDIR in visual studio?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 8.4k Views 1 Watching
  • 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.
  • S Offline
    S Offline
    suclida
    wrote on last edited by suclida
    #1

    It is convenient that the vs-addin set QTDIR as XXX automatic when I build a qtpro in the visual studio.
    There is a trouble that: When I set QTDIR in cmd and then I can't build a qtpro from cmd

    set QTDIR="XXXX"
    echo "QTDIR=%QTDIR%"
    devenv /build release YYY.sln
    

    It's reported that

    fatal error C1083: Can not open include file: 'QtCore/qglobal.h': No such file or directory
    

    But if I set the QTDIR from the ui of "My computer". I can build it in cmd successfully.


    1. I don't know where the QTDIR is set in the vcxproj file.Could you help me?
    2. How can I solve that problem when I build a qtpro in cmd?

    1. QTDIR is defined at vcxproj.user
    2. I should edit the vcxproj.user
    raven-worxR 1 Reply Last reply
    0
    • S suclida

      It is convenient that the vs-addin set QTDIR as XXX automatic when I build a qtpro in the visual studio.
      There is a trouble that: When I set QTDIR in cmd and then I can't build a qtpro from cmd

      set QTDIR="XXXX"
      echo "QTDIR=%QTDIR%"
      devenv /build release YYY.sln
      

      It's reported that

      fatal error C1083: Can not open include file: 'QtCore/qglobal.h': No such file or directory
      

      But if I set the QTDIR from the ui of "My computer". I can build it in cmd successfully.


      1. I don't know where the QTDIR is set in the vcxproj file.Could you help me?
      2. How can I solve that problem when I build a qtpro in cmd?

      1. QTDIR is defined at vcxproj.user
      2. I should edit the vcxproj.user
      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @suclida
      IIRC in the QtAddin settings and/or at the beginning of the vcxproj-file.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      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