Qt4 Network Module Build Error -- Your help appreciated
-
Hi
I am having a bit of a problem compiling Qt Network module (c:\qt\2010.05\qt\src\network\network.pro;
target: QtNetwork4.dll) on Windows Vista Home Edition.I have given the mkspecs using set QMAKESPEC=c:\qt\2010.05\qt\mkspecs\win32-g++
My path is set PATH=%PATH%;c:\qt\2010.05\mingw\bin
I have run qmake to generate the Makefiles.
If I add to the defines QT_NO_HTTP in network.pro, the module
is built successfully.Please advise how to fix the following error message as I need to have
HTTP functionality in the QtNetwork4.dllg++ -c -include tmp\obj\debug_shared\qt_pch.h -g -Wall -frtti -fexceptions -mth
eads -DQT_SHARED -DQT_THREAD_SUPPORT -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_BUIL
_NETWORK_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_FTP -DQT_MAKEDLL -DQT_NO_CAST_TO_A
CII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_FAST_OPERAT
R_PLUS -DQT_USE_FAST_CONCATENATION -D_USE_MATH_DEFINES -DQT_DLL -DQT_CORE_LIB -
"....\include\QtCore" -I"....\include" -I"....\include\QtNetwork" -I"tmp\rcc
debug_shared" -I"tmp" -I"..\3rdparty\zlib" -I"kernel" -I"c:\openssl\include" -I
....\include\ActiveQt" -I"tmp\moc\debug_shared" -I"c:\qt2\2010.05\qt\mkspecs\w
n32-g++" -o tmp\obj\debug_shared\moc_qhttp.o tmp\moc\debug_shared\moc_qhttp.cpp
tmp\moc\debug_shared\moc_qhttp.cpp: In member function 'virtual int QHttp::qt_m
tacall(QMetaObject::Call, int, void**)':
tmp\moc\debug_shared\moc_qhttp.cpp:128: error: invalid use of incomplete type '
truct QHttpPrivate'
tmp\moc\debug_shared/../../../access/qhttp.h:66: error: forward declaration of
'struct QHttpPrivate'
tmp\moc\debug_shared\moc_qhttp.cpp:129: error: invalid use of incomplete type '
truct QHttpPrivate'
tmp\moc\debug_shared/../../../access/qhttp.h:66: error: forward declaration of
'struct QHttpPrivate'
tmp\moc\debug_shared\moc_qhttp.cpp:130: error: invalid use of incomplete type '
truct QHttpPrivate'
tmp\moc\debug_shared/../../../access/qhttp.h:66: error: forward declaration of
'struct QHttpPrivate'
tmp\moc\debug_shared\moc_qhttp.cpp:131: error: invalid use of incomplete type '
truct QHttpPrivate'
tmp\moc\debug_shared/../../../access/qhttp.h:66: error: forward declaration of
'struct QHttpPrivate'
tmp\moc\debug_shared\moc_qhttp.cpp:131: error: expected type-specifier before '
AbstractSocket'
tmp\moc\debug_shared\moc_qhttp.cpp:131: error: expected '>' before 'QAbstractSo
ket'
tmp\moc\debug_shared\moc_qhttp.cpp:131: error: expected '(' before 'QAbstractSo
ket'
tmp\moc\debug_shared\moc_qhttp.cpp:131: error: 'QAbstractSocket' has not been d
clared
tmp\moc\debug_shared\moc_qhttp.cpp:131: error: expected primary-expression befo
e ')' token
tmp\moc\debug_shared\moc_qhttp.cpp:132: error: invalid use of incomplete type '
truct QHttpPrivate'
tmp\moc\debug_shared/../../../access/qhttp.h:66: error: forward declaration of
'struct QHttpPrivate'
tmp\moc\debug_shared\moc_qhttp.cpp:133: error: invalid use of incomplete type '
truct QHttpPrivate'
tmp\moc\debug_shared/../../../access/qhttp.h:66: error: forward declaration of
'struct QHttpPrivate'
tmp\moc\debug_shared\moc_qhttp.cpp:134: error: invalid use of incomplete type '
truct QHttpPrivate'
tmp\moc\debug_shared/../../../access/qhttp.h:66: error: forward declaration of
'struct QHttpPrivate'
tmp\moc\debug_shared\moc_qhttp.cpp:135: error: invalid use of incomplete type '
truct QHttpPrivate'
tmp\moc\debug_shared/../../../access/qhttp.h:66: error: forward declaration of
'struct QHttpPrivate'
tmp\moc\debug_shared\moc_qhttp.cpp:136: error: invalid use of incomplete type '
truct QHttpPrivate'
tmp\moc\debug_shared/../../../access/qhttp.h:66: error: forward declaration of
'struct QHttpPrivate'
tmp\moc\debug_shared\moc_qhttp.cpp:137: error: invalid use of incomplete type '
truct QHttpPrivate'
tmp\moc\debug_shared/../../../access/qhttp.h:66: error: forward declaration of
'struct QHttpPrivate'
mingw32-make[2]: *** [tmp/obj/debug_shared/moc_qhttp.o] Error 1
mingw32-make[2]: Leaving directoryC:/Qt2/2010.05/qt/src/network' mingw32-make[1]: *** [debug-all] Error 2 mingw32-make[1]: Leaving directory
C:/Qt2/2010.05/qt/src/network'
mingw32-make: *** [sub-network-make_default] Error 2Thanks
Murthy -
Hm... I don't have a Windows box here to test it, I think it's a good idea to ask for help abut this issue in the #qt IRC channel, freenode server.
-
I've never had such issue either. Try the latest sources (git)