Qt4-preview-feedback Archive, March 2007
qmake generating broken .vcproj
Message 1 in thread
Hi,
I've downloaded the binary beta and compiled today's snapshot and
with both I had issues with .vcproj files generated by qmake. In
particular, it did wrong build rules for files from the Service
solution when there are QObject inherited classes inside the .cpp
files. And the worst part is, those rules even overwrite the original
file causing a potential loss of work.
I'm using VS2005 (win32-msvc2005) and generating the project file
with qmake -tp vc.
I haven't figured out how to reproduce it in a simpler project
yet, but here is what I get as a rule of qtservice.moc:
C:\Qt\4.3.0beta\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT
-DQT_THREAD_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_NETWORK_LIB
-DQT_CORE_LIB -I"C:/Qt/4.3.0beta/include/QtCore"
-I"C:/Qt/4.3.0beta/include/QtCore"
-I"C:/Qt/4.3.0beta/include/QtNetwork"
-I"C:/Qt/4.3.0beta/include/QtNetwork"
-I"C:/Qt/4.3.0beta/include/QtGui" -I"C:/Qt/4.3.0beta/include/QtGui"
-I"C:/Qt/4.3.0beta/include" -I"."
-I"C:/programming/eufinity/kiosk/assembly/devloop/src/devloop/qtservice-2.3-commercial/src"
-I"C:/Qt/4.3.0beta/include/ActiveQt" -I"debug" -I"."
-Ic:\Qt\4.3.0beta\mkspecs\default -D_MSC_VER=1400 -DWIN32
qtservice-2.3-commercial\src\qtservice_win.cpp -o
debug\qtservice_win.moc && C:\Qt\4.3.0beta\bin\moc.exe -DUNICODE
-DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_THREAD_SUPPORT -DQT_DLL
-DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB
-I"C:/Qt/4.3.0beta/include/QtCore" -I"C:/Qt/4.3.0beta/include/QtCore"
-I"C:/Qt/4.3.0beta/include/QtNetwork"
-I"C:/Qt/4.3.0beta/include/QtNetwork"
-I"C:/Qt/4.3.0beta/include/QtGui" -I"C:/Qt/4.3.0beta/include/QtGui"
-I"C:/Qt/4.3.0beta/include" -I"."
-I"C:/programming/eufinity/kiosk/assembly/devloop/src/devloop/qtservice-2.3-commercial/src"
-I"C:/Qt/4.3.0beta/include/ActiveQt" -I"debug" -I"."
-Ic:\Qt\4.3.0beta\mkspecs\default -D_MSC_VER=1400 -DWIN32
qtservice-2.3-commercial\src\qtservice_win.cpp -o
qtservice-2.3-commercial\src\qtservice_win.cpp
Please notice that the second command (after the &&) it mocs and
outputs back to the same file!
I hope this helps finding the problem :)
Cheers,
Thiago A. Correa
To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx