Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Fail to install 4.7.4 using Qt Libraries

    Installation and Deployment
    4
    12
    5490
    Loading More Posts
    • 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
      SeedOfLife last edited by

      I depend solely on the Qt installation for the MSVC compiler and the Qt VS addin for my Qt development work. However, I use QtCreator as a quick and easy tool to test out code and concepts. Lately I decided to upgrade to 4.7.4 (by first removing the previous 4.7.1 installation) and in order to make a complete installation, decided to use the following.

      • Qt libraries 4.7.4 for MinGW
      • Qt libraries 4.7.4. for Visual Studio
      • Qt Creator 2.3.0
      • Qt VS addin 1.1.9

      As soon as I installed the first in the list - Qt libraries for MinGW I noticed that the Qt Assistant is not having the proper formatted help files that it used to have in 4.7.1. I went ahead with Qt libraries for MSVC and that too had the same bug. When installing Qt libraries for MinGW I noticed that it didn't accept the installed MinGW that I had, complaining about a file WIN32API. I have stopped the installation and waiting for professional advice. I do not want to go the SDK way as I think it is kind of bloated and I do not target Qt for anything other than windows desktop. I thought installing Qt using libraries would be the more cleaner way since it only had the libraries and I get to add extra dependencies such as Qt VS addin, Qt Creator depending on my requirement.

      1 Reply Last reply Reply Quote 0
      • L
        lgeyer last edited by

        You might have to tell Qt Assistant to use the help files delivered with your updated Qt libraries instead of the old ones (and yes, the formatting changed in recent versions). This is not done automatically. In addition, not every MinGW installation or distribution comes with all the neccessary header files to build Qt and Qt applications.

        The SDK was built to circumvent such problems. It basically consist of a single tool, the SDK maintenance tool. I don't think this can be considered bloat.

        1 Reply Last reply Reply Quote 0
        • S
          SeedOfLife last edited by

          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 Reply Quote 0
          • L
            lgeyer last edited by

            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 Reply Quote 0
            • G
              goetz last edited by

              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 Reply Quote 0
              • S
                SeedOfLife last edited by

                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 Reply Quote 0
                • G
                  goetz last edited by

                  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 Reply Quote 0
                  • S
                    SeedOfLife last edited by

                    [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 Reply Quote 0
                    • T
                      tobias.hunger last edited by

                      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 Reply Quote 0
                      • S
                        SeedOfLife last edited by

                        [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 Reply Quote 0
                        • T
                          tobias.hunger last edited by

                          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 Reply Quote 0
                          • S
                            SeedOfLife last edited by

                            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 Reply Quote 0
                            • First post
                              Last post