Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. A package of Qt library + minGW + QtCreator (Solved)
Forum Updated to NodeBB v4.3 + New Features

A package of Qt library + minGW + QtCreator (Solved)

Scheduled Pinned Locked Moved General and Desktop
12 Posts 3 Posters 6.7k 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.
  • Y Offline
    Y Offline
    ylkevin
    wrote on last edited by
    #3

    HI

    As you suggest, for this qtlib -> Qt 5.3.1 for Windows 32-bit (MinGW 4.8.2, OpenGL, 735 MB) (Info).

    Do I need to config the library after installation? Where to find the qlib aftter installation.

    1 Reply Last reply
    0
    • Y Offline
      Y Offline
      ylkevin
      wrote on last edited by
      #4

      Hi

      I have tried Qt4.8.6, then configure the qtlib by run Qt 4.8.6 (Build Debug Libraries).

      Finally, it gives the following. Does it mean successfully or not?
      If successfully configured, why it continue to build and then meet the error?

      Qt is now configured for building. Just run mingw32-make.
      To reconfigure, run mingw32-make confclean and configure.

      cd tools\bootstrap\ && mingw32-make -f Makefile debug
      mingw32-make[1]: Entering directory C:/Qt/4.8.6/src/tools/bootstrap' mingw32-make -f Makefile.Debug mingw32-make[2]: Entering directory C:/Qt/4.8.6/src/tools/bootstrap'
      g++ -c -pipe -fno-keep-inline-dllexport -g -frtti -fexceptions -mthreads -Wall -
      Wextra -DUNICODE -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_NO_CAST_FROM_ASCII -DQ
      T_NO_CAST_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_GEOM_VARIANT -DQT_N
      O_LIBRARY -DQT_NO_QOBJECT -DQT_NO_STL -DQT_NO_SYSTEMLOCALE -DQT_NO_TEXTSTREAM -D
      QT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -DQT_NO_DEPRECATED -D
      QT_NODLL -I"......\include" -I"......\include\QtCore" -I"......\include\Qt
      Xml" -I"....\3rdparty\zlib" -I"c:\Program Files (x86)\Microsoft Visual Studio\V
      C98\atl\include" -I"c:\Program Files (x86)\Microsoft Visual Studio\VC98\mfc\incl
      ude" -I"c:\Program Files (x86)\Microsoft Visual Studio\VC98\include" -I" C:\Qt\4
      .8.4\include" -I"......\mkspecs\win32-g++-4.6" -o tmp\obj\debug_shared\qisciic
      odec.o ....\corelib\codecs\qisciicodec.cpp
      cc1plus.exe: error: unrecognized command line option "-fno-keep-inline-dllexport
      "
      mingw32-make[2]: *** [tmp/obj/debug_shared/qisciicodec.o] Error 1
      mingw32-make[2]: Leaving directory C:/Qt/4.8.6/src/tools/bootstrap' mingw32-make[1]: *** [debug] Error 2 mingw32-make[1]: Leaving directory C:/Qt/4.8.6/src/tools/bootstrap'
      mingw32-make: *** [sub-tools-bootstrap-sub_Debug] Error 2

      1 Reply Last reply
      0
      • Y Offline
        Y Offline
        ylkevin
        wrote on last edited by
        #5

        Hi

        I also use qlib 4.8.4. Run configure the lib, finally it got this error:

        Why?

        g++ -Wl,-subsystem,console -mthreads -o ......\bin\uic3.exe object_script.uic3
        .Debug -L"c:\Qt\4.8.4\lib" -L"c:\Program Files (x86)\Microsoft Visual Studio\VC
        98\mfc\lib" -L"c:\Program Files (x86)\Microsoft Visual Studio\VC98\lib" -L"c:\Qt
        \4.8.4\lib" -lQt3Supportd4 -lQtXmld4 -lQtGuid4 -lQtCored4
        mingw32-make[2]: Leaving directory C:/Qt/4.8.4/src/tools/uic3' mingw32-make[1]: Leaving directory C:/Qt/4.8.4/src/tools/uic3'
        mingw32-make: *** No rule to make target src_tools_idc-sub_Debug', needed by s
        ub-activeqt-sub_Debug'. Stop.
        C:\Qt\4.8.4\src>

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #6

          Why didn't you just install 4.8.6 from the installer ?

          I can't tell, I don't know how you configured it

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • Y Offline
            Y Offline
            ylkevin
            wrote on last edited by
            #7

            thanks. Actually I used the installer.

            Another question, after I install the

            Qt 5.3.1 for Windows 32-bit (MinGW 4.8.2, OpenGL, 735 MB) (Info)

            Then open qtcreator, build a new project,

            I CANNOT find the configure tab in the project option , but I can find others like build, code style, dependencies etc.

            Why?

            How can we configure the qt libraries after install the Qt 5.3.1 for Windows 32-bit (MinGW 4.8.2, OpenGL, 735 MB)

            1 Reply Last reply
            0
            • JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #8

              Hi,

              Did you uninstall/delete your other copies of Qt and Qt Creator?

              [quote author="ylkevin" date="1406167965"]How can we configure the qt libraries after install the Qt 5.3.1 for Windows 32-bit (MinGW 4.8.2, OpenGL, 735 MB) [/quote]Just follow these steps:

              Open Qt Creator

              Create a new project using File -> New File or Project... -> Applications -> Qt Widgets Application

              Configure your project using the wizard. This includes selecting your Kit.

              (Note: a Kit contains the Qt libraries and compiler).

              When you finish the wizard, Qt Creator will generate a small application for you.

              Click the green triangle on the bottom left ("Run")

              This will build your application and show its GUI.

              If you want a tutorial, see "Getting Started Programming with Qt Widgets":http://qt-project.org/doc/qt-5/gettingstartedqt.html

              [quote author="ylkevin" date="1406167965"]I CANNOT find the configure tab in the project option , but I can find others like build, code style, dependencies etc.[/quote]The "Build & Run" tab also lets you select your Kit. But, you usually don't need to change it.

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              1 Reply Last reply
              0
              • Y Offline
                Y Offline
                ylkevin
                wrote on last edited by
                #9

                Hi

                Thanks a lot.

                I follow your method, built a new Widgets project, run it, it is OK.

                Then I go back to my previous prj, astonishingly now it can compile, and run as I expect the result. Previous compiling reported 2000 errors. So I felt the library was not well configured at that time

                Now I am still puzzled when the qt library was configured after I finished to complete installing the qt creator.

                As mentioned in qt 4.8.2, we needed to set mingw first, then dowload the qt lib, run the "Build Debug Libraries). The funny thing was that this morning I started to run till now, still not completed for QT 4.8.6 (Build Debug Libraries) - ...."

                Anyway, great thanks to all of you.

                1 Reply Last reply
                0
                • JKSHJ Offline
                  JKSHJ Offline
                  JKSH
                  Moderators
                  wrote on last edited by
                  #10

                  That's good news! :) Please edit your original post and add "[SOLVED]" to the title.

                  [quote]Now I am still puzzled when the qt library was configured after I finished to complete installing the qt creator.[/quote]The installer configures it for you. You don't need to do anything.

                  [quote]As mentioned in qt 4.8.2, we needed to set mingw first, then dowload the qt lib, run the “Build Debug Libraries)[/quote]Qt 4 is very old now. Qt 5 has major improvements -- setting up Qt 5 is easier.

                  But anyway, you don't need to run "Build Debug Libraries". If you want to use Qt 4.8.6, just:

                  Download and install Qt libraries 4.8.6 for Windows (MinGW 4.8.2, 328 MB)

                  Open Qt Creator (the same one that you used for Qt 5.3.1), and:

                  See "Adding Qt Versions":http://qt-project.org/doc/qtcreator-3.1/creator-project-qmake.html to tell Qt Creator where to find Qt 4.8.6

                  Finally, see "Adding Kits":http://qt-project.org/doc/qtcreator-3.1/creator-targets.html to tell Qt Creator how to combine your MinGW compiler with the Qt 4.8.6 libraries

                  Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                  1 Reply Last reply
                  0
                  • Y Offline
                    Y Offline
                    ylkevin
                    wrote on last edited by
                    #11

                    Hi

                    I think run “Build Debug Libraries” is the same meaning of install Qt libraries 4.8.6.

                    Otherwise how can we install Qt Lib.

                    1 Reply Last reply
                    0
                    • JKSHJ Offline
                      JKSHJ Offline
                      JKSH
                      Moderators
                      wrote on last edited by
                      #12

                      [quote author="ylkevin" date="1406183314"]how can we install Qt Lib.[/quote]To install the Qt libraries, download "Qt libraries 4.8.6 for Windows (MinGW 4.8.2, 328 MB)" and run the .exe.

                      That's all. After you run the .exe, Qt 4.8.6 is installed.

                      Then, read the links in my previous post to integrate Qt 4.8.6 into Qt Creator.

                      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                      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