Failed to generate moc file for QT
LukeMouse opened this issue · 0 comments
LukeMouse commented
Under Windows, I tried to generate QT project script with MPC instead of qmake, everythis is OK when I configured the QTDIR and generate the VS2015 script, but when I compile the project I got lnk2001, after my reserch I found the reason is the moc configure didn't work, I think this is a bug, but I failed to correct it, Would anybody help me! following is my custom mpc file
project(Demo05):build_files,lukeexe,lukeexeout,qt5_core_win,qt5_gui_win,qt5_widgets_win,lukedsagentus{
exename=Demo05
MOC_Files{ // failed work
mainwindow.h
}
UIC_Files{ // work
mainwindow.ui
}
QRC_Files{ // work
mainwindow.qrc
}
}