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. Builds with 4.7.2 fail if 4.7.1 has been uninstalled
QtWS25 Last Chance

Builds with 4.7.2 fail if 4.7.1 has been uninstalled

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 3 Posters 3.0k 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.
  • Z Offline
    Z Offline
    zing0000
    wrote on last edited by
    #1

    Using VS2008 Pro on Vista.
    4.7.1 has an include folder with all the header files for QtGui, QtCore, QtWebkit, etc. needed when building a Qt application. Not there in 4.7.2.
    What should environment variable QTDIR refer to?
    Seems a fundamental flaw - or am I missing something?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dourouc05
      wrote on last edited by
      #2

      What are you using? Qt SDK, sources...?

      If building from the sources, don't forget to run configure, it creates all the include wrappers needed.

      The Qt French community: http://qt.developpez.com/
      Our translation of the doc: http://qt.developpez.com/doc/latest/
      Our forum: http://qt.developpez...

      1 Reply Last reply
      0
      • Z Offline
        Z Offline
        zing0000
        wrote on last edited by
        #3

        Just using the SDK. I am not trying to build the sources.

        1 Reply Last reply
        0
        • ZlatomirZ Offline
          ZlatomirZ Offline
          Zlatomir
          wrote on last edited by
          #4

          For the 2008 edition of Visual Studio they provide Qt framework binaries for download, so usually you don't need to build the whole framework.

          But if you really need to build Qt yourself, then i recommend the source files, that way it never failed for me (most of the times using VS2010, but i used 2008 once or twice)

          https://forum.qt.io/category/41/romanian

          1 Reply Last reply
          0
          • Z Offline
            Z Offline
            zing0000
            wrote on last edited by
            #5

            Note - I am not trying to build the framework!

            I have a Qt GUI Application, at some point I need to
            #include <QtGui\QApplication>

            But all the header files are removed when you uninstall 4.7.1. They are not reinstalled with 4.7.2 (unless they are hiding)

            All the libs (e.g. QtGuid4.lib) are also missing.

            1 Reply Last reply
            0
            • Z Offline
              Z Offline
              zing0000
              wrote on last edited by
              #6

              OK, here is the explanation. Hope it helps others with the same workflow.

              In 4.7.1, the include folder is at,
              QtSDK/include
              but now in 4.7.2 everything has been moved about, and it is at
              QtSDK/Desktop/Qt/4.7.2/msvc2008/include

              So you need to update your $QTDIR, and update your path to the bin folder which is at the new location in the new QTDIR.

              Also, you will need to update QT Settings in your vs2008 project.
              In Qt/QtOptions/Qt Versions, add the new version and path.
              Then, in Qt/Qt Project Settings/Properties, apply the new version from the dropdown list.

              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