<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Qt4 Network Module Build Error -- Your help appreciated]]></title><description><![CDATA[<p dir="auto">Hi</p>
<p dir="auto">I am having a bit of a problem compiling Qt Network module (c:\qt\2010.05\qt\src\network\<a href="http://network.pro" target="_blank" rel="noopener noreferrer nofollow ugc">network.pro</a>;<br />
target: QtNetwork4.dll) on Windows Vista Home Edition.</p>
<p dir="auto">I have given the mkspecs using set QMAKESPEC=c:\qt\2010.05\qt\mkspecs\win32-g++</p>
<p dir="auto">My path is set PATH=%PATH%;c:\qt\2010.05\mingw\bin</p>
<p dir="auto">I have run qmake to generate the Makefiles.</p>
<p dir="auto">If I  add to the defines QT_NO_HTTP in <a href="http://network.pro" target="_blank" rel="noopener noreferrer nofollow ugc">network.pro</a>, the module<br />
is built successfully.</p>
<p dir="auto">Please advise how to fix the following error message as I need to have<br />
HTTP functionality in the  QtNetwork4.dll</p>
<p dir="auto">g++ -c -include tmp\obj\debug_shared\qt_pch.h -g -Wall -frtti -fexceptions -mth<br />
eads -DQT_SHARED -DQT_THREAD_SUPPORT -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_BUIL<br />
_NETWORK_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_FTP -DQT_MAKEDLL -DQT_NO_CAST_TO_A<br />
CII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_FAST_OPERAT<br />
R_PLUS -DQT_USE_FAST_CONCATENATION -D_USE_MATH_DEFINES -DQT_DLL -DQT_CORE_LIB -<br />
"....\include\QtCore" -I"....\include" -I"....\include\QtNetwork" -I"tmp\rcc<br />
debug_shared" -I"tmp" -I"..\3rdparty\zlib" -I"kernel" -I"c:\openssl\include" -I<br />
....\include\ActiveQt" -I"tmp\moc\debug_shared" -I"c:\qt2\2010.05\qt\mkspecs\w<br />
n32-g++" -o tmp\obj\debug_shared\moc_qhttp.o tmp\moc\debug_shared\moc_qhttp.cpp<br />
tmp\moc\debug_shared\moc_qhttp.cpp: In member function 'virtual int QHttp::qt_m<br />
tacall(QMetaObject::Call, int, void**)':<br />
tmp\moc\debug_shared\moc_qhttp.cpp:128: error: invalid use of incomplete type '<br />
truct QHttpPrivate'<br />
tmp\moc\debug_shared/../../../access/qhttp.h:66: error: forward declaration of<br />
'struct QHttpPrivate'<br />
tmp\moc\debug_shared\moc_qhttp.cpp:129: error: invalid use of incomplete type '<br />
truct QHttpPrivate'<br />
tmp\moc\debug_shared/../../../access/qhttp.h:66: error: forward declaration of<br />
'struct QHttpPrivate'<br />
tmp\moc\debug_shared\moc_qhttp.cpp:130: error: invalid use of incomplete type '<br />
truct QHttpPrivate'<br />
tmp\moc\debug_shared/../../../access/qhttp.h:66: error: forward declaration of<br />
'struct QHttpPrivate'<br />
tmp\moc\debug_shared\moc_qhttp.cpp:131: error: invalid use of incomplete type '<br />
truct QHttpPrivate'<br />
tmp\moc\debug_shared/../../../access/qhttp.h:66: error: forward declaration of<br />
'struct QHttpPrivate'<br />
tmp\moc\debug_shared\moc_qhttp.cpp:131: error: expected type-specifier before '<br />
AbstractSocket'<br />
tmp\moc\debug_shared\moc_qhttp.cpp:131: error: expected '&gt;' before 'QAbstractSo<br />
ket'<br />
tmp\moc\debug_shared\moc_qhttp.cpp:131: error: expected '(' before 'QAbstractSo<br />
ket'<br />
tmp\moc\debug_shared\moc_qhttp.cpp:131: error: 'QAbstractSocket' has not been d<br />
clared<br />
tmp\moc\debug_shared\moc_qhttp.cpp:131: error: expected primary-expression befo<br />
e ')' token<br />
tmp\moc\debug_shared\moc_qhttp.cpp:132: error: invalid use of incomplete type '<br />
truct QHttpPrivate'<br />
tmp\moc\debug_shared/../../../access/qhttp.h:66: error: forward declaration of<br />
'struct QHttpPrivate'<br />
tmp\moc\debug_shared\moc_qhttp.cpp:133: error: invalid use of incomplete type '<br />
truct QHttpPrivate'<br />
tmp\moc\debug_shared/../../../access/qhttp.h:66: error: forward declaration of<br />
'struct QHttpPrivate'<br />
tmp\moc\debug_shared\moc_qhttp.cpp:134: error: invalid use of incomplete type '<br />
truct QHttpPrivate'<br />
tmp\moc\debug_shared/../../../access/qhttp.h:66: error: forward declaration of<br />
'struct QHttpPrivate'<br />
tmp\moc\debug_shared\moc_qhttp.cpp:135: error: invalid use of incomplete type '<br />
truct QHttpPrivate'<br />
tmp\moc\debug_shared/../../../access/qhttp.h:66: error: forward declaration of<br />
'struct QHttpPrivate'<br />
tmp\moc\debug_shared\moc_qhttp.cpp:136: error: invalid use of incomplete type '<br />
truct QHttpPrivate'<br />
tmp\moc\debug_shared/../../../access/qhttp.h:66: error: forward declaration of<br />
'struct QHttpPrivate'<br />
tmp\moc\debug_shared\moc_qhttp.cpp:137: error: invalid use of incomplete type '<br />
truct QHttpPrivate'<br />
tmp\moc\debug_shared/../../../access/qhttp.h:66: error: forward declaration of<br />
'struct QHttpPrivate'<br />
mingw32-make[2]: *** [tmp/obj/debug_shared/moc_qhttp.o] Error 1<br />
mingw32-make[2]: Leaving directory <code>C:/Qt2/2010.05/qt/src/network' mingw32-make[1]: *** [debug-all] Error 2 mingw32-make[1]: Leaving directory </code>C:/Qt2/2010.05/qt/src/network'<br />
mingw32-make: *** [sub-network-make_default] Error 2</p>
<p dir="auto">Thanks<br />
Murthy</p>
]]></description><link>https://forum.qt.io/topic/1912/qt4-network-module-build-error-your-help-appreciated</link><generator>RSS for Node</generator><lastBuildDate>Wed, 18 Nov 2026 11:32:07 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/1912.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 25 Nov 2010 04:49:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Qt4 Network Module Build Error -- Your help appreciated on Mon, 06 Dec 2010 20:41:25 GMT]]></title><description><![CDATA[<p dir="auto">I've never had such issue either. Try the latest sources (git)</p>
]]></description><link>https://forum.qt.io/post/63314</link><guid isPermaLink="true">https://forum.qt.io/post/63314</guid><dc:creator><![CDATA[infoctopus]]></dc:creator><pubDate>Mon, 06 Dec 2010 20:41:25 GMT</pubDate></item><item><title><![CDATA[Reply to Qt4 Network Module Build Error -- Your help appreciated on Sat, 04 Dec 2010 21:40:33 GMT]]></title><description><![CDATA[<p dir="auto">hi murthy, have built Qt a few times and never seen an issue with networking module ...</p>
<p dir="auto">just want to confirm -- did you run configure before the build<br />
also is qt\bin also in your path?</p>
]]></description><link>https://forum.qt.io/post/62586</link><guid isPermaLink="true">https://forum.qt.io/post/62586</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sat, 04 Dec 2010 21:40:33 GMT</pubDate></item><item><title><![CDATA[Reply to Qt4 Network Module Build Error -- Your help appreciated on Sat, 04 Dec 2010 11:44:12 GMT]]></title><description><![CDATA[<p dir="auto">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.</p>
]]></description><link>https://forum.qt.io/post/62389</link><guid isPermaLink="true">https://forum.qt.io/post/62389</guid><dc:creator><![CDATA[anselmolsm]]></dc:creator><pubDate>Sat, 04 Dec 2010 11:44:12 GMT</pubDate></item></channel></rss>