[Qt-interest] moc QNetworkReplyHandler.h generates an empty cpp file

RFOG no at mail.com
Wed Aug 26 10:59:33 CEST 2009


Hello all.

I'm trying to compile QT for Visual Studio 2008 and I'm getting the
same problem than before.

My configure execution is:

configure -no-qt3support -shared -debug-and-release -phonon

And when "moc-ing" QNetworkReplyHandler.h I get an empty file, then
linker shows faulting symbols.

Faulting line is: 

C:\Qt\2009.03-vc\qt\bin\moc.exe -DQT_SHARED -DQT_THREAD_SUPPORT
-DUNICOD E -DWIN32 -DQT_LARGEFILE_SUPPORT -DBUILDING_QT__=1
-DUSE_SYSTEM_MALLOC -DNDEBUG -DQT_MAKEDLL -DQT_NO_CAST_TO_ASCII
-DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -D_U SE_MATH_DEFINES
-DBUILD_WEBKIT -D_HAS_TR1=0 -DENABLE_OFFLINE_WEB_APPLICATIONS=1
-DENABLE_DOM_STORAGE=1 -DENABLE_ICONDATABASE=1 -DENABLE_DATABASE=1
-DENABLE_DASH BOARD_SUPPORT=0 -DENABLE_XPATH=1 -DENABLE_WML=0
-DENABLE_SVG=1 -DENABLE_SVG_FONT S=1 -DENABLE_SVG_FILTERS=1
-DENABLE_SVG_FOREIGN_OBJECT=1 -DENABLE_SVG_ANIMATION=1
-DENABLE_SVG_AS_IMAGE=1 -DENABLE_SVG_USE=1 -DENABLE_VIDEO=1
-DENABLE_NETSCAPE_PLUGIN_API=1 -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1
-DWTF_CHANGES=1 -DBUILDING_QT__ -DSQLITE_CORE
-DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_COMPLETE -DQT_DLL -DQT
_GUI_LIB -DQT_NETWORK_LIB
-DQT_CORE_LIB at tmp\moc\debug_shared\mocinclude.tmp -D_MSC_VER=1500
-DWIN32 platform\network\qt\QNetworkReplyHandler.h -o
tmp\moc\debug_shared\moc_QNetworkReplyHandler.cpp
platform\network\qt\QNetworkReplyHandler.h(0): Warning: No relevant
classes found. No output generated.

Then linker fails.

In a recent thread (here:
http://lists.trolltech.com/pipermail/qt-interest/2009-June/009132.html)
I had the same problem and I solved it doing the solution given by
Kimitake. However now I haven't the cpp file in released_shared.

I think the most true thing is that Nokia solve this instead of doing
workarounds.



More information about the Qt-interest-old mailing list