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



  • Hi Guys

    I am looking for a working properly package with QT Lib, MinGW together with QtCreator.

    I have been working for 2 days, almost blood vomit.

    When I do the Qt 4.8.4 (Build Debug Libraries),huge amount of errors come up.

    May I know which version of the Qt Library (Open-Source) work fine with which version of minGW.

    Thanks


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    You can find on the download page the Qt 5.3 MinGW package which contains everything you need to get started. If you need to stay with Qt 4, you can additionally download Qt 4.8.6 which uses the same MinGW version. Note however that the Qt4 package does not provide Qt Creator nor MinGW



  • 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.



  • 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 directoryC:/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 directoryC:/Qt/4.8.6/src/tools/bootstrap'
    mingw32-make: *** [sub-tools-bootstrap-sub_Debug] Error 2



  • 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 directoryC:/Qt/4.8.4/src/tools/uic3'
    mingw32-make: *** No rule to make target src_tools_idc-sub_Debug', needed bys
    ub-activeqt-sub_Debug'. Stop.
    C:\Qt\4.8.4\src>


  • Lifetime Qt Champion

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

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



  • 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)


  • Moderators

    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.



  • 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.


  • Moderators

    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



  • 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.


  • Moderators

    [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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.