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. Fail to install 4.7.4 using Qt Libraries

Fail to install 4.7.4 using Qt Libraries

Scheduled Pinned Locked Moved Installation and Deployment
12 Posts 4 Posters 6.2k 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.
  • S Offline
    S Offline
    SeedOfLife
    wrote on last edited by
    #3

    Thanks for the quick response Lukas.
    All I want from a Qt setup for my windows desktop targeted development work is

    • Qt Assistant and the help files
    • Qt Creator running on Qt MinGW ( for testing code and concepts easily )
    • Qt libraries that run on MSVC
    • Qt Addin ( to develop Qt on MS Visual Studio )

    So how do u suggest I get them installed ? Cos right now I have not got anything on my PC and prior to removing the Qt installation I had everything that I needed on that list and I cant remember how exectly I got to that.

    I installed using Qt SDK version 1.1 and there too the Qt Assistant is missing.
    I simply wish Nokia would make this easier for us. There is no easy way to know what we will be getting when we install any file from Qt downloads. And Im also baffled how the SDK fails to install a complete version even though i specified what I want from the above list.

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on last edited by
      #4

      Just grab the "online installer":http://qt.nokia.com/downloads/sdk-windows-cpp of the SDK and install the packages you want:

      • Qt Assistant and the help files
        Qt SDK -> Development Tools -> Qt Assistant
        Qt SDK -> Documentation
      • Qt Creator running on Qt MinGW
        Qt SDK -> Development Tools -> Qt Creator
        Qt SDK -> Miscellaneous -> MinGW 4.4
      • Qt libraries that run on MSVC
        Qt SDK -> Development Tools -> Desktop Qt -> Qt 4.7.4 -> Desktop Qt 4.7.4 - MSVC
      • Qt Addin
        "http://qt.nokia.com/downloads/visual-studio-add-in":http://qt.nokia.com/downloads/visual-studio-add-in

      A broken installation is most probably the consequence of a failed deinstallation attempt of previous versions. Make sure to remove any residues (especially orphaned environment variables and registry entries).

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goetz
        wrote on last edited by
        #5

        You do not need the Qt MinGW libraries in order to just run Qt Creator. It brings its needed libs as a set of dependencies in the installer.

        http://www.catb.org/~esr/faqs/smart-questions.html

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SeedOfLife
          wrote on last edited by
          #6

          Hi guys, thanks for the replies so far. I got this sorted over the weekend. It so happens that Qt Assistant does get installed with the SDK 1.1.3 and only the usual shortcut created from a "Qt Library installation" is missing. I had to manually create that. I guess the format change in the Qt Assistant help files was what had me bothered and wondering whether I had a broken installation. As pointed above by Lukas I got to know that the format changed from 4.7.2 to 4.7.4.

          I now have the SDK 1.1.3 and the MSVC library of Qt 4.7.3 installed. I use the SDK installation for compiling and the 4.7.3 Qt library simply to use the help files (from 4.7.2) which have the previous help format I like. @Volker I use Qt Creator to compile as well since it provides faster project setup compared to MSVC when testing code snippets. Therefore MinGW is a must for me.

          However I must point out that when installed using "Qt Libraries for 4.7.4" the Qt Assistant help files do have a formatting error since most of the html tags can be seen in the documentation (this has been reported by someone before as I saw on the web). Also trying to install 4.7.4 Qt Libraries for MinGW on a clean system warns the user of missing Win32API files even though a proper installation of MinGW was done manually beforehand.

          These kind of installtion bugs have been a part of my Qt experiences so far since 4.7.1. As pointed out I have learnt that using the SDK solves most of the problems. However I do wish Nokia pays some concern for the quality of Qt Libraries when providing them as installation media.

          1 Reply Last reply
          0
          • G Offline
            G Offline
            goetz
            wrote on last edited by
            #7

            Again: You do not need to install a MinGW build of the Qt libraries in order to just run Qt Creator. It does not matter what toolchain you use to compile your applications.

            http://www.catb.org/~esr/faqs/smart-questions.html

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SeedOfLife
              wrote on last edited by
              #8

              [quote author="Volker" date="1317017703"]Again: You do not need to install a MinGW build of the Qt libraries in order to just run Qt Creator. It does not matter what toolchain you use to compile your applications.[/quote]

              I use Qt Creator to compile as well. Actually it's my testing environment to sorta test out code snippets, ui forms and concepts that work on Qt. Visual Studio is my production environment where I build, debug and release code. So just being able to run Qt Creator isn't enuf for me. Otherwise what is the point of running an IDE to test out code snippets without being able to compile.
              I believe I have mentioned this in my last reply.

              1 Reply Last reply
              0
              • T Offline
                T Offline
                tobias.hunger
                wrote on last edited by
                #9

                Qt Creator does happily use MSVC to compile and the Windows debugging tools to debug MSVC build code.

                We do ship Mingw since it is a legal option for us to set up a complete environment for our users as we can not bundle the Microsoft compilers with Qt Creator.

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SeedOfLife
                  wrote on last edited by
                  #10

                  [quote author="Tobias Hunger" date="1317025098"]Qt Creator does happily use MSVC to compile and the Windows debugging tools to debug MSVC build code.[/quote]

                  Well I've tried that in previous versions - always gave me an error saying jom.exe failed or something. Now that you mentioned I tried again on my 4.7.4 installation, changed the Qt Version to use MSVC and compiled. It still gives some errors. I'm guessing it could be some configuration problem. If so isnt it supposed to be easy as changing the Qt Version like I did and then happy compiling ?

                  1 Reply Last reply
                  0
                  • T Offline
                    T Offline
                    tobias.hunger
                    wrote on last edited by
                    #11

                    Sorry, but all I can offer when being asked to about "some error" is "some encouragements" :-)

                    Seriously: This should be as easy as switching Qt versions. You better make sure your code ends up in a new shadow build directory (or at least that the build directory is clean), as otherwise you will end up with a mix of mingw and msvc objects getting linked together.

                    [EDIT: fixed false link, Volker]

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SeedOfLife
                      wrote on last edited by
                      #12

                      Ok sorry for not being descriptive. In order to get you the error output I created a new project in the path D:\Test_QT called HistoryFields. Building using the MSVC toolchain fails as usual wth the following errors.

                      @Running build steps for project HistoryFields...
                      Starting: "c:\qtsdk\desktop\qt\4.7.4\msvc2008\bin\qmake.exe" D:\Test_QT\HistoryFields\HistoryFields.pro -r -spec win32-msvc2008
                      The process "c:\qtsdk\desktop\qt\4.7.4\msvc2008\bin\qmake.exe" exited normally.
                      Starting: "C:\QtSDK\QtCreator\bin\jom.exe"
                      C:\QtSDK\QtCreator\bin\jom.exe -nologo -j 4 -f Makefile.Debug
                      c:\QtSDK\Desktop\Qt\4.7.4\msvc2008\bin\uic.exe ..\HistoryFields\mainwindow.ui -o ui_mainwindow.h
                      cl -c -nologo -Zm200 -Zc:wchar_t- -Zi -MDd -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"c:\QtSDK\Desktop\Qt\4.7.4\msvc2008\include\QtCore" -I"c:\QtSDK\Desktop\Qt\4.7.4\msvc2008\include\QtGui" -I"c:\QtSDK\Desktop\Qt\4.7.4\msvc2008\include" -I"c:\QtSDK\Desktop\Qt\4.7.4\msvc2008\include\ActiveQt" -I"debug" -I"." -I"..\HistoryFields" -I"." -I"c:\QtSDK\Desktop\Qt\4.7.4\msvc2008\mkspecs\win32-msvc2008" -Fodebug\ @C:\Users<myusername>\AppData\Local\Temp\main.obj.2040.16.jom
                      main.cpp
                      ..\HistoryFields\main.cpp(0) : fatal error C1033: cannot open program database 'd:\test_qt\historyfields-build-desktop-qt_4_7_4_for_desktop_-_msvc2008__qt_sdk__debug\vc60.pdb'
                      C:\QtSDK\Desktop\Qt\4.7.4\msvc2008\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"c:\QtSDK\Desktop\Qt\4.7.4\msvc2008\include\QtCore" -I"c:\QtSDK\Desktop\Qt\4.7.4\msvc2008\include\QtGui" -I"c:\QtSDK\Desktop\Qt\4.7.4\msvc2008\include" -I"c:\QtSDK\Desktop\Qt\4.7.4\msvc2008\include\ActiveQt" -I"debug" -I"." -I"..\HistoryFields" -I"." -I"c:\QtSDK\Desktop\Qt\4.7.4\msvc2008\mkspecs\win32-msvc2008" -D_MSC_VER=1500 -DWIN32 ..\HistoryFields\mainwindow.h -o debug\moc_mainwindow.cpp

                      jom 1.0.6 - empower your cores

                      Command line warning D4002 : ignoring unknown option '-Zc'
                      Command line warning D4002 : ignoring unknown option '-Z:'
                      Command line warning D4002 : ignoring unknown option '-Zw'
                      Command line warning D4002 : ignoring unknown option '-Zc'
                      Command line warning D4002 : ignoring unknown option '-Zh'
                      Command line warning D4002 : ignoring unknown option '-Zr'
                      Command line warning D4002 : ignoring unknown option '-Z_'
                      Command line warning D4002 : ignoring unknown option '-Zt'
                      Command line warning D4002 : ignoring unknown option '-Z-'
                      Command line warning D4002 : ignoring unknown option '-w34100'
                      Command line warning D4002 : ignoring unknown option '-w34189'
                      command failed with exit code 2
                      cl -c -nologo -Zm200 -Zc:wchar_t- -Zi -MDd -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"c:\QtSDK\Desktop\Qt\4.7.4\msvc2008\include\QtCore" -I"c:\QtSDK\Desktop\Qt\4.7.4\msvc2008\include\QtGui" -I"c:\QtSDK\Desktop\Qt\4.7.4\msvc2008\include" -I"c:\QtSDK\Desktop\Qt\4.7.4\msvc2008\include\ActiveQt" -I"debug" -I"." -I"..\HistoryFields" -I"." -I"c:\QtSDK\Desktop\Qt\4.7.4\msvc2008\mkspecs\win32-msvc2008" -Fodebug\ @C:\Users<myusername>\AppData\Local\Temp\mainwindow.obj.2040.63.jom
                      mainwindow.cpp
                      c:\QtSDK\Desktop\Qt\4.7.4\msvc2008\include\QtCore/qglobal.h(2273) : error C2146: syntax error : missing ';' before identifier 'i'
                      c:\QtSDK\Desktop\Qt\4.7.4\msvc2008\include\QtCore/qglobal.h(2275) : see reference to class template instantiation 'QForeachContainer<T>' being compiled
                      c:\QtSDK\Desktop\Qt\4.7.4\msvc2008\include\QtCore/qglobal.h(2273) : error C2501: 'i' : missing storage-class or type specifiers
                      c:\QtSDK\Desktop\Qt\4.7.4\msvc2008\include\QtCore/qglobal.h(2275) : see reference to class template instantiation 'QForeachContainer<T>' being compiled
                      c:\QtSDK\Desktop\Qt\4.7.4\msvc2008\include\QtCore/qglobal.h(2273) : error C2501: 'e' : missing storage-class or type specifiers
                      c:\QtSDK\Desktop\Qt\4.7.4\msvc2008\include\QtCore/qglobal.h(2275) : see reference to class template instantiation 'QForeachContainer<T>' being compiled
                      c:\QtSDK\Desktop\Qt\4.7.4\msvc2008\include\QtCore/qglobal.h(2341) : error C2146: syntax error : missing ';' before identifier 'qGetPtrHelper'
                      c:\QtSDK\Desktop\Qt\4.7.4\msvc2008\include\QtCore/qglobal.h(2341) : error C2433: 'pointer' : 'inline' not permitted on data declarations
                      c:\QtSDK\Desktop\Qt\4.7.4\msvc2008\include\QtCore/qglobal.h(2341) : fatal error C1903: unable to recover from previous error(s); stopping compilation
                      Command line warning D4002 : ignoring unknown option '-Zc'
                      Command line warning D4002 : ignoring unknown option '-Z:'
                      Command line warning D4002 : ignoring unknown option '-Zw'
                      Command line warning D4002 : ignoring unknown option '-Zc'
                      Command line warning D4002 : ignoring unknown option '-Zh'
                      Command line warning D4002 : ignoring unknown option '-Zr'
                      Command line warning D4002 : ignoring unknown option '-Z_'
                      Command line warning D4002 : ignoring unknown option '-Zt'
                      Command line warning D4002 : ignoring unknown option '-Z-'
                      Command line warning D4002 : ignoring unknown option '-w34100'
                      Command line warning D4002 : ignoring unknown option '-w34189'
                      command failed with exit code 2
                      command failed with exit code 2
                      The process "C:\QtSDK\QtCreator\bin\jom.exe" exited with code 2.
                      Error while building project HistoryFields (target: Desktop)
                      When executing build step 'Make'@

                      Btw, if you can get this sorted it would really be a big win for me as i only need to have one toolchain installed on my desktop to compile Qt projects.

                      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