Qt4-preview-feedback Archive, March 2007
Qt 4.3 qmake generating broken .vcproj
Message 1 in thread
Forwarding it back as it seams it didn't got into the list looking at
the archives... Hope it doesn't gets dupped.
---------- Forwarded message ----------
From: Thiago A. Corrêa <thiago.correa@xxxxxxxxx>
Date: Mar 28, 2007 8:29 PM
Subject: qmake generating broken .vcproj
To: qt4-preview-feedback@xxxxxxxxxxxxx
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
Message 2 in thread
On Thursday 29 March 2007 17:20, Thiago A. Corrêa wrote:
> 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.
It sounds like something we encountered yesterday. Are you sure the
mkspecs\default\qmake.conf is for win32-msvc2005?
David
--
[ signature omitted ]