I can't mingw32-make



  • F:\Qt\helloqt>mingw32-make
    mingw32-make -f Makefile.Release
    mingw32-make[1]: Entering directory 'F:/Qt/helloqt'
    g++ -c -pipe -fno-keep-inline-dllexport -O2 -frtti -Wall -Wextra -fexceptions -m
    threads -DUNICODE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I.
    -I"." -I"D:\Qt\Qt5.1.0\5.1.0\mingw48_32\include" -I"D:\Qt\Qt5.1.0\5.1.0\mingw48_
    32\include\QtGui" -I"D:\Qt\Qt5.1.0\5.1.0\mingw48_32\include\QtCore" -I"release"
    -I"D:\Qt\Qt5.1.0\5.1.0\mingw48_32\mkspecs\win32-g++" -o release\helloqt.o helloq
    t.cpp
    helloqt.cpp:1:24: fatal error: mainwindow.h: No such file or directory
    #include "mainwindow.h"
    ^
    compilation terminated.
    Makefile.Release:119: recipe for target 'release/helloqt.o' failed
    mingw32-make[1]: *** [release/helloqt.o] Error 1
    mingw32-make[1]: Leaving directory 'F:/Qt/helloqt'
    makefile:34: recipe for target 'release' failed
    mingw32-make: *** [release] Error 2

    F:\Qt\helloqt>


  • Moderators

    welcome to devnet

    Are you starting mingw32-make from command line or are you using qt creator?



  • I don't now I am a new student,just according to the Qt4



  • the Qt4 is make ,QT5 is mingw32-make but it don't operat


  • Lifetime Qt Champion

    Are you missing

    @QT += widgets@

    In you pro file ?


Log in to reply
 

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