Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt4 Network Module Build Error -- Your help appreciated
Forum Updated to NodeBB v4.3 + New Features

Qt4 Network Module Build Error -- Your help appreciated

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 3 Posters 4.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    murthy
    wrote on last edited by
    #1

    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.dll

    g++ -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 directory C:/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 2

    Thanks
    Murthy

    1 Reply Last reply
    0
    • A Offline
      A Offline
      anselmolsm
      wrote on last edited by
      #2

      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.

      Anselmo L. S. Melo (anselmolsm)

      1 Reply Last reply
      0
      • ? This user is from outside of this forum
        ? This user is from outside of this forum
        Guest
        wrote on last edited by
        #3

        hi murthy, have built Qt a few times and never seen an issue with networking module ...

        just want to confirm -- did you run configure before the build
        also is qt\bin also in your path?

        1 Reply Last reply
        0
        • I Offline
          I Offline
          infoctopus
          wrote on last edited by
          #4

          I've never had such issue either. Try the latest sources (git)

          Qt rulez

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved