Important: Please read the Qt Code of Conduct -

Need help to build...

  • hello i m stef from switzerland i m newbie and i try to compil a software but i have this error...:

    10:18:31: Running steps for project vaslib...
    10:18:31: Configuration unchanged, skipping qmake step.
    10:18:31: Starting: "C:\Qt\Qt5.0.1\Tools\MinGW\bin\mingw32-make.exe"
    C:/Qt/Qt5.0.1/Tools/MinGW/bin/mingw32-make -f Makefile.Release
    mingw32-make[1]: Entering directory 'F:/Perso/FS/DEV_VASFMC/VASFMC_SRC/vaslib/src'
    g++ -c -pipe -fno-keep-inline-dllexport -O2 -Wall -Wextra -fno-rtti -DUNICODE -DQT_NO_DEBUG -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -DQT_NO_DYNAMIC_CAST -I. -I"C:\Qt\Qt5.0.1\5.0.1\mingw47_32\include" -I"C:\Qt\Qt5.0.1\5.0.1\mingw47_32\include\QtXml" -I"C:\Qt\Qt5.0.1\5.0.1\mingw47_32\include\QtNetwork" -I"C:\Qt\Qt5.0.1\5.0.1\mingw47_32\include\QtGui" -I"C:\Qt\Qt5.0.1\5.0.1\mingw47_32\include\QtCore" -I"release" -I"C:\Qt\Qt5.0.1\5.0.1\mingw47_32\mkspecs\win32-g++" -o release\fsaccess_msfs.o fsaccess_msfs.cpp
    In file included from fsuipc.h:27:0,
    from fsaccess_msfs.h:13,
    from fsaccess_msfs.cpp:5:
    logger.h:28:23: fatal error: QMessageBox: No such file or directory
    compilation terminated.
    Makefile.Release:2426: recipe for target 'release/fsaccess_msfs.o' failed
    mingw32-make[1]: *** [release/fsaccess_msfs.o] Error 1
    mingw32-make[1]: Leaving directory 'F:/Perso/FS/DEV_VASFMC/VASFMC_SRC/vaslib/src'
    makefile:34: recipe for target 'release' failed
    mingw32-make: *** [release] Error 2
    10:18:33: The process "C:\Qt\Qt5.0.1\Tools\MinGW\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project vaslib (kit: Desktop Qt 5.0.1 MinGW 32bit)
    When executing step 'Make'

    can any people can help me

    thank stef

  • QMessageBox is widget based dialog.
    You need to add
    QT += widgets

    to your project file to use QtWidgets in Qt5.

  • ok thanks... it will work but now i have

    Qftp: No such file or directory


  • and i have already

    Qt += network

    but error still here

  • great i will try to install 4.8 and creator 2.6... do you think it will work ?


  • [quote author="snaker" date="1361307308"]great i will try to install 4.8 and creator 2.6... do you think it will work ?
    Yes, it does work! I am using QFtp with Qt 4.8.4 and MinGW 4.7.2 and it does work.

    A couple of notes. AFAIK there are a couple of differences between the version change of Qt from 4 to 5. In general there is compatibility. Already in Qt4.8 QFtp can be achieved a "more general concept.":
    This class provides a direct interface to FTP that allows you to have more control over the requests. However, for new applications, it is recommended to use QNetworkAccessManager and QNetworkReply, as those classes possess a simpler, yet more powerful API.
    This should be also available in Qt5, but the QFtp has been removed.

    If you are trying to get an application based on QFtp to work, you need to get Qt4.

    If you like to start to start a new application, you might to rethink and go for Qt5.

    One problem is at the moment with the available pre-builds of Qt4.8.4. Those are compiled with MinGW4.4. MinGW4.4 is not compatible with MinGW 4.7.2. Either you need to get MinGW 4.4 or you need to compile Qt yourself "following this guide.":

  • hi all and thanks for your help...

    i install qt 5.1 the last,
    and i install qt 4.5.1 because in make file is write build by this version

    for install qt.4.5.1 i need to install with mingw 3.2, now is done..

    now my question is ? how i declar to build with qt 4.5.1 instead of 5.1 in qt creator...

    thanks for your help

  • ok i find the solution ... i declare a new kit and it works better but now when i build at the end i think ? i m a newbie...i have a message : "custome executable " can anyone help me what i need to do...

    thank you

  • ok it s work... but now when i build qt create only the exe...not the i can do this...



Log in to reply