I don't know if it's considered bad form to bump old threads, but I figured I'd just continue this one since my issue is unchanged, and it is really affecting my ability to efficiently develop with QT. Apparently, I was only masking an underlying issue when I changed my .pro file as described above. Something weird is definitely happening.
On my Ubuntu box, uic will run *only* if my config line has a += as follows:
CONFIG += qt warn_off debug
The "+" is the key to making it work. If I leave off the "+", uic will not run. Ever.
To make matters even more confusing, on my Windows box, uic will only run if I have the "+" *and* I remove the first line:
TEMPLATE = app
Unfortunately, in Windows, if I remove this line uic will run but now my .exe is not built. On Linux, everything runs just fine without this line.
My .pro is still as described above. What is going on? I have scoured documentation, and I cannot find anything that begins to explain this behavior.
(Edited to add current .pro file)
CONFIG += qt warn_off debug
HEADERS = frmAdministrative.h frmEvaluation.h frmLIneItem.h frmLocation.h frmLogin.h frmMain.h qtutil.h tinystr.h tinyxml.h xmlhandler.h jonconfig.h claimobject.h
SOURCES = frmAdministrative.cpp frmEvaluation.cpp frmLineItem.cpp frmLocation.cpp frmLogin.cpp frmMain.cpp main.cpp qtutil.cpp tinystr.cpp tinyxml.cpp tinyxmlerror.cpp tinyxmlparser.cpp xmlhandler.cpp jonconfig.cpp claimobject.cpp
INCLUDEPATH += C:\\Qt\\4.1.1\\include
INCLUDEPATH += C:\\postgresql\\include
win32 {
LIBS += -lQtCore4 -lQtGui4 -lQtSql4 -lQtNetwork4 -lQtXml
LIBS += -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwsock32 -lws2_32
LIBS += -ladvapi32
}
unix {
LIBS += -lQtCore -lQtGui -lQtSql -lQtNetwork -lQtXml
}
INTERFACES += frmAdministrative_template.ui
INTERFACES += frmEvaluation_template.ui
INTERFACES += frmLineItem_template.ui
INTERFACES += frmLocation_template.ui
INTERFACES += frmLogin_template.ui
INTERFACES += frmMain_template.ui
TARGET = estitrac
CONFIG += qt warn_off debug
HEADERS = frmAdministrative.h frmEvaluation.h frmLIneItem.h frmLocation.h frmLogin.h frmMain.h qtutil.h tinystr.h tinyxml.h xmlhandler.h jonconfig.h claimobject.h
SOURCES = frmAdministrative.cpp frmEvaluation.cpp frmLineItem.cpp frmLocation.cpp frmLogin.cpp frmMain.cpp main.cpp qtutil.cpp tinystr.cpp tinyxml.cpp tinyxmlerror.cpp tinyxmlparser.cpp xmlhandler.cpp jonconfig.cpp claimobject.cpp
INCLUDEPATH += C:\\Qt\\4.1.1\\include
INCLUDEPATH += C:\\postgresql\\include
win32 {
LIBS += -lQtCore4 -lQtGui4 -lQtSql4 -lQtNetwork4 -lQtXml
LIBS += -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwsock32 -lws2_32
LIBS += -ladvapi32
}
unix {
LIBS += -lQtCore -lQtGui -lQtSql -lQtNetwork -lQtXml
}
INTERFACES += frmAdministrative_template.ui
INTERFACES += frmEvaluation_template.ui
INTERFACES += frmLineItem_template.ui
INTERFACES += frmLocation_template.ui
INTERFACES += frmLogin_template.ui
INTERFACES += frmMain_template.ui
TARGET = estitrac
To copy to clipboard, switch view to plain text mode
Bookmarks