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. [Solved] Error compiling 4.8.0 on Win7x64, VS2010 SP1

[Solved] Error compiling 4.8.0 on Win7x64, VS2010 SP1

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 3.9k 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.
  • T Offline
    T Offline
    TimS
    wrote on last edited by
    #1

    Followed the instructions to the T here: http://qt-project.org/wiki/Building_Qt_Desktop_for_Windows_with_MSVC

    Getting following errors (snippet), I'm no C++ expert so can't figure out why the types are not appearing defined.

    "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe" -f Makefile.Release
    cl -c -FIqt_pch.h -Yuqt_pch.h -Fptmp\obj\release_shared\QtNetwork_pch.pch -nologo -Zm200 -Zc:wchar_t -O2 -MD -W3 -w34100 -w34189 -MP -GR -EHsc -GL -DQT_SHARED -DQT_THREAD_SUPPORT -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_BUILD_NETWORK_LIB -DQT_NO_USING_NAMESPACE -DQT_MAKEDLL -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -D_USE_MATH_DEFINES -DQT_DLL -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -I"....\include\QtCore" -I"....\include" -I"....\include\QtNetwork" -I"tmp\rcc\release_shared" -I"tmp" -I"..\3rdparty\zlib" -I"kernel" -I"....\include\ActiveQt" -I"tmp\moc\release_shared" -I"....\mkspecs\win32-msvc2010" -Fotmp\obj\release_shared\ @C:\Users\TSHNAI~1\AppData\Local\Temp\nm45DF.tmp
    qsslcertificate.cpp
    qsslconfiguration.cpp
    qsslcipher.cpp
    qsslerror.cpp
    r:\qtsdk\qtsources\4.8.0\src\network\ssl\qsslconfiguration_p.h(89) : error C2146: syntax error : missing ';' before identifier 'peerCertificate'
    r:\qtsdk\qtsources\4.8.0\src\network\ssl\qsslconfiguration_p.h(89) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    r:\qtsdk\qtsources\4.8.0\src\network\ssl\qsslconfiguration_p.h(89) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    r:\qtsdk\qtsources\4.8.0\src\network\ssl\qsslconfiguration_p.h(90) : error C2065: 'QSslCertificate' : undeclared identifier
    r:\qtsdk\qtsources\4.8.0\src\network\ssl\qsslconfiguration_p.h(91) : error C2146: syntax error : missing ';' before identifier 'localCertificate'
    r:\qtsdk\qtsources\4.8.0\src\network\ssl\qsslconfiguration_p.h(91) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    r:\qtsdk\qtsources\4.8.0\src\network\ssl\qsslconfiguration_p.h(91) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    r:\qtsdk\qtsources\4.8.0\src\network\ssl\qsslconfiguration_p.h(93) : error C2146: syntax error : missing ';' before identifier 'privateKey'
    r:\qtsdk\qtsources\4.8.0\src\network\ssl\qsslconfiguration_p.h(93) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    r:\qtsdk\qtsources\4.8.0\src\network\ssl\qsslconfiguration_p.h(93) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    r:\qtsdk\qtsources\4.8.0\src\network\ssl\qsslconfiguration_p.h(94) : error C2146: syntax error : missing ';' before identifier 'sessionCipher'
    r:\qtsdk\qtsources\4.8.0\src\network\ssl\qsslconfiguration_p.h(94) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    r:\qtsdk\qtsources\4.8.0\src\network\ssl\qsslconfiguration_p.h(94) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    r:\qtsdk\qtsources\4.8.0\src\network\ssl\qsslconfiguration_p.h(95) : error C2065: 'QSslCipher' : undeclared identifier
    r:\qtsdk\qtsources\4.8.0\src\network\ssl\qsslconfiguration_p.h(96) : error C2065: 'QSslCertificate' : undeclared identifier
    r:\qtsdk\qtsources\4.8.0\src\network\ssl\qsslconfiguration_p.h(99) : error C2653: 'QSslSocket' : is not a class or namespace name
    r:\q

    1 Reply Last reply
    0
    • T Offline
      T Offline
      TimS
      wrote on last edited by
      #2

      Resolved - I extracted a fresh copy of 4.8.0 source tree, obviously something got a bit confused and wasn't being cleared out on a clean.

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goetz
        wrote on last edited by
        #3

        You must not recompile or reconfigure the sources bundled with prebuilt binaries or SDK builds. Always start with the vanilla source package.

        http://www.catb.org/~esr/faqs/smart-questions.html

        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