Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. VS Tools 2.7.1 rev 15

VS Tools 2.7.1 rev 15

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
7 Posts 2 Posters 1.1k Views 2 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.
  • PerdrixP Offline
    PerdrixP Offline
    Perdrix
    wrote on last edited by Perdrix
    #1

    Since VS Tools 2.7.1 I can't compile my C++ code! I'm getting errors like:

    C:\path\fileid(4,10): fatal error C1083: Cannot open include file: 'QCoreApplication': No such file or directory

    I don't think I changed the project (apart from the lrelease stuff), so clearly something has gone slightly awry.

    9995ed31-433c-4342-94c6-2296170afb19-image.png

    What do I need to change to get this compiling again? Clearly the QT include directory needs to be picked up somehow but I thought that VS Tools handled that stuff.

    Yes this could well be pilot error, and I'm happy to be told what I've done wrong!!!

    Thanks
    David

    1 Reply Last reply
    0
    • PerdrixP Offline
      PerdrixP Offline
      Perdrix
      wrote on last edited by
      #2

      I manually added the following to the C++ Include directories:

      $(QtInstallDir)\include;$(QtInstallDir)\include\QtWidgets;$(QtInstallDir)\include\QtGui;$(QtInstallDir)\include\QtCore;

      which has enabled me to compile again, but I don't believe this is the "correct answer"

      1 Reply Last reply
      0
      • Chris KawaC Offline
        Chris KawaC Offline
        Chris Kawa
        Lifetime Qt Champion
        wrote on last edited by
        #3

        If you go to the project properties page there's a QtProject Settings section where you can choose which modules you're using. This will add necessary include directories and libraries for linking.

        Qt modules

        1 Reply Last reply
        0
        • PerdrixP Offline
          PerdrixP Offline
          Perdrix
          wrote on last edited by
          #4

          That's already set, but it didn't set the include path :(

          c51864fa-61e2-405d-9e60-b61e6d8a8f6d-image.png
          David

          1 Reply Last reply
          0
          • Chris KawaC Offline
            Chris KawaC Offline
            Chris Kawa
            Lifetime Qt Champion
            wrote on last edited by Chris Kawa
            #5

            Maybe the settings it generates got lost somehow. There's always the "have you tried turning it off and on again" method - try removing all the modules, save project, restore modules and rebuild.

            1 Reply Last reply
            0
            • PerdrixP Offline
              PerdrixP Offline
              Perdrix
              wrote on last edited by
              #6

              Sadly clearing Qt Modules and reinstating (saving between) didn't help.

              David

              1 Reply Last reply
              0
              • PerdrixP Offline
                PerdrixP Offline
                Perdrix
                wrote on last edited by
                #7

                https://bugreports.qt.io/browse/QTVSADDINBUG-902

                1 Reply Last reply
                0

                • Login

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