Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt failed to compile MSVC2017 X86 platform
Forum Updated to NodeBB v4.3 + New Features

Qt failed to compile MSVC2017 X86 platform

Scheduled Pinned Locked Moved Unsolved General and Desktop
26 Posts 3 Posters 8.7k Views 2 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.
  • J Offline
    J Offline
    jack9603301
    wrote on last edited by A Former User
    #1

    I did a complete compilation of MSVC x86 on windows, but encountered some trouble. The library path of OPENSSL is D:/openssl, and the QT compile parameter is QT5.9.2:

    Configure -prefix d:\Qt\5.9.2\msvc2017_x86 -opensource -debug-and-release -shared -pch -opengl dynamic -angle -combined-angle-lib -qt3d-profile-gl -icu -qt-sqlite -qt3d-profile-jobs -L D:/icu/lib -I D:/icu/include -recheck-all -ssl -qt-zlib -qt-libjpeg -qt-libpng -qt-xcb -qt-xkbcommon -qt-pcre -qt-harfbuzz -LD:/openssl/lib -ID:/openssl/include -make tools -make LIBS -make examples -developer-build -qt-assimp

    A link error occurred in the QtNetwork module:

    Moc_qhttpthreaddelegate_p.obj: external symbol "error public: __thiscall QSslCertificate: LNK2019: could not parse: QSslCertificate (class QByteArray const & enum, QSsl:: EncodingFormat)" (? 0QSslCertificate@@QAE@ABVQByteArray@@? W4EncodingFormat@QSsl@@@Z), the symbol "public: __thiscall QList<class in function QSslError>:: ~QList<class QSslError> (void)" (?? 1? $QList@VQSslError@@@@QAE@XZ) cited
    Moc_qnetworkfile_p.obj: external symbol "error public: __thiscall QSslCertificate: LNK2001: could not parse: QSslCertificate (class QByteArray const & enum, QSsl:: EncodingFormat)" (? 0QSslCertificate@@QAE@ABVQByteArray@@W4EncodingFormat@QSsl? @@@Z)
    Moc_qhttp2protocolhandler_p.obj: external symbol "error public: __thiscall QSslCertificate: LNK2001: could not parse: QSslCertificate (class QByteArray const & enum, QSsl:: EncodingFormat)" (? 0QSslCertificate@@QAE@ABVQByteArray@@? W4EncodingFormat@QSsl@@@Z)
    Moc_qnetworkaccessftpbackend_p.obj: external symbol "error public: __thiscall QSslCertificate: LNK2001: could not parse: QSslCertificate (class QByteArray const & enum, QSsl:: EncodingFormat)" (? 0QSslCertificate@@QAE@ABVQByteArray@@? W4EncodingFormat@QSsl@@@Z)
    Moc_qnetworkaccessdebugpipebackend_p.obj: external symbol "error public: __thiscall QSslCertificate: LNK2001: could not parse: QSslCertificate (class QByteArray const & enum, QSsl:: EncodingFormat)" (? 0QSslCertificate@@QAE@ABVQByteArray@@? W4EncodingFormat@QSsl@@@Z)
    Moc_qnetworkaccessfilebackend_p.obj: external symbol "error public: __thiscall QSslCertificate: LNK2001: could not parse: QSslCertificate (class QByteArray const & enum, QSsl:: EncodingFormat)" (? 0QSslCertificate@@QAE@ABVQByteArray@@? W4EncodingFormat@QSsl@@@Z)

    Asking for help.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Did you check the configure summary ? Are you sure that the OpenSSL support was successfully activated ?

      By the way, which version of OpenSSL are you using ? Are you sure it's built with MSVC2017 ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      J 1 Reply Last reply
      0
      • J Offline
        J Offline
        jack9603301
        wrote on last edited by
        #3

        @SGaist said in Qt failed to compile MSVC2017 X86 platform:

        Hi,
        Did you check the configure summary ? Are you sure that the OpenSSL support was successfully activated ?
        By the way, which version of OpenSSL are you using ? Are you sure it's built with MSVC2017 ?

        I have to check the configuration information, OpenSSL Header has been detected, the configuration without OpenSSL detection, the use of OpenSSL is the highest official version of the OpenSSL, I am sure that use MSVC2017 x86.
        I used to use -openssl-linked, and the OpenSSL detection, configuration changes after the error is found, with -ssl instead of -openssl-linked is still wrong.

        1 Reply Last reply
        0
        • SGaistS SGaist

          Hi,

          Did you check the configure summary ? Are you sure that the OpenSSL support was successfully activated ?

          By the way, which version of OpenSSL are you using ? Are you sure it's built with MSVC2017 ?

          J Offline
          J Offline
          jack9603301
          wrote on last edited by
          #4

          @SGaist This is configuration information. I just confirmed it:
          Build options:
          Mode ................................... debug and release; default link: debug; optimized tools
          Optimize release build for size ........ no
          Building shared libraries .............. yes
          Using C++ standard ..................... C++11
          Using gold linker ...................... no
          Using precompiled headers .............. yes
          Using LTCG ............................. no
          Target compiler supports:
          SSE .................................. SSE2 SSE3 SSSE3 SSE4.1 SSE4.2
          AVX .................................. AVX AVX2 F16C
          AVX512 ............................... <none>
          Build parts ............................ tools libs examples
          App store compliance ................... no
          Qt modules and options:
          Qt Concurrent .......................... yes
          Qt D-Bus ............................... yes
          Qt D-Bus directly linked to libdbus .... no
          Qt Gui ................................. yes
          Qt Network ............................. yes
          Qt Sql ................................. yes
          Qt Testlib ............................. yes
          Qt Widgets ............................. yes
          Qt Xml ................................. yes
          Support enabled for:
          Using pkg-config ....................... no
          QML debugging .......................... yes
          udev ................................... no
          Using system zlib ...................... no
          Qt Core:
          DoubleConversion ....................... yes
          Using system DoubleConversion ........ no
          GLib ................................... no
          iconv .................................. no
          ICU .................................... yes
          Logging backends:
          journald ............................. no
          syslog ............................... no
          slog2 ................................ no
          Using system PCRE2 ..................... no
          Qt Network:
          getaddrinfo() .......................... no
          getifaddrs() ........................... no
          IPv6 ifname ............................ no
          libproxy ............................... no
          OpenSSL ................................ yes
          Qt directly linked to OpenSSL ........ no
          SCTP ................................... no
          Use system proxies ..................... yes
          Qt Gui:
          Accessibility .......................... yes
          FreeType ............................... yes
          Using system FreeType ................ no
          HarfBuzz ............................... yes
          Using system HarfBuzz ................ no
          Fontconfig ............................. no
          Image formats:
          GIF .................................. yes
          ICO .................................. yes
          JPEG ................................. yes
          Using system libjpeg ............... no
          PNG .................................. yes
          Using system libpng ................ no
          EGL .................................... yes
          OpenVG ................................. no
          OpenGL:
          ANGLE ................................ yes
          Combined ANGLE Library ............... yes
          Desktop OpenGL ....................... no
          Dynamic OpenGL ....................... yes
          OpenGL ES 2.0 ........................ no
          OpenGL ES 3.0 ........................ no
          OpenGL ES 3.1 ........................ no
          Session Management ..................... yes
          Features used by QPA backends:
          evdev .................................. no
          libinput ............................... no
          INTEGRITY HID .......................... no
          mtdev .................................. no
          tslib .................................. no
          xkbcommon-evdev ........................ no
          QPA backends:
          DirectFB ............................... no
          EGLFS .................................. no
          LinuxFB ................................ no
          VNC .................................... no
          Mir client ............................. no
          Windows:
          Direct 2D ............................ yes
          DirectWrite .......................... yes
          DirectWrite 2 ........................ yes
          Qt Widgets:
          GTK+ ................................... no
          Styles ................................. Fusion Windows WindowsXP WindowsVista
          Qt PrintSupport:
          CUPS ................................... no
          Qt Sql:
          DB2 (IBM) .............................. no
          InterBase .............................. no
          MySql .................................. no
          OCI (Oracle) ........................... no
          ODBC ................................... yes
          PostgreSQL ............................. no
          SQLite2 ................................ no
          SQLite ................................. yes
          Using system provided SQLite ......... no
          TDS (Sybase) ........................... no
          Qt SerialBus:
          Socket CAN ............................. no
          Socket CAN FD .......................... no
          QtXmlPatterns:
          XML schema support ..................... yes
          Qt QML:
          QML interpreter ........................ yes
          QML network support .................... yes
          Qt Quick:
          Direct3D 12 ............................ yes
          AnimatedImage item ..................... yes
          Canvas item ............................ yes
          Support for Qt Quick Designer .......... yes
          Flipable item .......................... yes
          GridView item .......................... yes
          ListView item .......................... yes
          Path support ........................... yes
          PathView item .......................... yes
          Positioner items ....................... yes
          ShaderEffect item ...................... yes
          Sprite item ............................ yes
          Qt Gamepad:
          SDL2 ................................... no
          Qt 3D:
          Assimp ................................. yes
          System Assimp .......................... no
          Output Qt3D Job traces ................. yes
          Output Qt3D GL traces .................. yes
          Qt 3D GeometryLoaders:
          Autodesk FBX ........................... no
          Qt Wayland Client ........................ no
          Qt Wayland Compositor .................... no
          Qt Bluetooth:
          BlueZ .................................. no
          BlueZ Low Energy ....................... no
          Linux Crypto API ....................... no
          Qt Sensors:
          sensorfw ............................... no
          Qt Quick Controls 2:
          Styles ................................. Default Material Universal
          Qt Quick Templates 2:
          Hover support .......................... yes
          Multi-touch support .................... yes
          Qt Positioning:
          Gypsy GPS Daemon ....................... no
          WinRT Geolocation API .................. no
          Qt Location:
          Geoservice plugins:
          OpenStreetMap ........................ yes
          HERE ................................. yes
          Esri ................................. yes
          Mapbox ............................... yes
          MapboxGL ............................. no
          Itemsoverlay ......................... yes
          Qt Multimedia:
          ALSA ................................... no
          GStreamer 1.0 .......................... no
          GStreamer 0.10 ......................... no
          Video for Linux ........................ no
          OpenAL ................................. no
          PulseAudio ............................. no
          Resource Policy (libresourceqt5) ....... no
          Windows Audio Services ................. yes
          DirectShow ............................. yes
          Windows Media Foundation ............... yes
          Media player backend ................... DirectShow
          Qt WebEngine:
          Embedded build ......................... no
          Pepper Plugins ......................... yes
          Printing and PDF ....................... yes
          Proprietary Codecs ..................... no
          Spellchecker ........................... yes
          WebRTC ................................. yes
          Using system ninja ..................... no

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Again, what version of OpenSSL are you using ? Because the 1.1 version broke API and ABI compatibility so if you want to use it you have to build Qt 5.10. Otherwise get the latest 1.0 version.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            J 1 Reply Last reply
            0
            • SGaistS SGaist

              Again, what version of OpenSSL are you using ? Because the 1.1 version broke API and ABI compatibility so if you want to use it you have to build Qt 5.10. Otherwise get the latest 1.0 version.

              J Offline
              J Offline
              jack9603301
              wrote on last edited by
              #6

              @SGaist Do you have QT 5.10 now? Like the latest is QT5.9.2, I'm using the latest OPENSSL 1.1.0g, using OPENSSL 1.0.2m should be able to? I'll try it

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                5.10 Beta 4 was just released.

                Like I wrote before: Qt lower than 5.10 work only with OpenSSL 1.0.X

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                J 1 Reply Last reply
                2
                • SGaistS SGaist

                  5.10 Beta 4 was just released.

                  Like I wrote before: Qt lower than 5.10 work only with OpenSSL 1.0.X

                  J Offline
                  J Offline
                  jack9603301
                  wrote on last edited by
                  #8

                  @SGaist Oh, to use the following things is a pre release version, the official version of the QT 5.9.2 option, but now has encountered new problems, encountered the following error at compile time:
                  Renderer.obj: external symbol "error public: static struct LNK2001: cannot resolve QMetaObject const Qt3DCore:: Debug:: AspectCommandDebugger:: staticMetaObject (staticMetaObject@AspectCommandDebugger@Debug@Qt3DCore@@2UQMetaObject@@B?)
                  ....\lib\Qt53DRenderd.dll: fatal error LNK1120: 1 external commands that cannot be resolved

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    Just to be on the safe side, did you do a full clean re-build ?

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    J 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      Just to be on the safe side, did you do a full clean re-build ?

                      J Offline
                      J Offline
                      jack9603301
                      wrote on last edited by
                      #10

                      @SGaist said in Qt failed to compile MSVC2017 X86 platform:

                      Just to be on the safe side, did you do a full clean re-build ?

                      Yes, I don't know why this happens when I open the -qt3d-profile-jobs. In the latest compilation operation, I don't want to open this option

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

                        What do you mean by "open this option" ?

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        J 3 Replies Last reply
                        0
                        • SGaistS SGaist

                          What do you mean by "open this option" ?

                          J Offline
                          J Offline
                          jack9603301
                          wrote on last edited by
                          #12
                          This post is deleted!
                          1 Reply Last reply
                          0
                          • SGaistS SGaist

                            What do you mean by "open this option" ?

                            J Offline
                            J Offline
                            jack9603301
                            wrote on last edited by
                            #13
                            This post is deleted!
                            1 Reply Last reply
                            0
                            • SGaistS SGaist

                              What do you mean by "open this option" ?

                              J Offline
                              J Offline
                              jack9603301
                              wrote on last edited by
                              #14

                              @SGaist said in Qt failed to compile MSVC2017 X86 platform:

                              What do you mean by "open this option" ?

                              The configure script executed at compile time adds -qt3d-profile-jobs and -qt3d-profile-gl parameters to compile, but makes errors

                              1 Reply Last reply
                              0
                              • SGaistS Offline
                                SGaistS Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on last edited by
                                #15

                                AFAIK, you should be able to disable both through options.

                                Interested in AI ? www.idiap.ch
                                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                J 1 Reply Last reply
                                0
                                • SGaistS SGaist

                                  AFAIK, you should be able to disable both through options.

                                  J Offline
                                  J Offline
                                  jack9603301
                                  wrote on last edited by
                                  #16

                                  @SGaist said in Qt failed to compile MSVC2017 X86 platform:

                                  AFAIK, you should be able to disable both through options.

                                  Yes, I'm not using it now

                                  1 Reply Last reply
                                  0
                                  • SGaistS Offline
                                    SGaistS Offline
                                    SGaist
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #17

                                    So the compilation goes further ?

                                    Interested in AI ? www.idiap.ch
                                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                    J 2 Replies Last reply
                                    0
                                    • SGaistS SGaist

                                      So the compilation goes further ?

                                      J Offline
                                      J Offline
                                      jack9603301
                                      wrote on last edited by
                                      #18

                                      @SGaist said in Qt failed to compile MSVC2017 X86 platform:

                                      So the compilation goes further ?

                                      Yes, the compilation is underway

                                      1 Reply Last reply
                                      0
                                      • SGaistS SGaist

                                        So the compilation goes further ?

                                        J Offline
                                        J Offline
                                        jack9603301
                                        wrote on last edited by
                                        #19

                                        @SGaist Why did I compile QT in qtwebengine chromium code problems caused by errors, do not know how you solve it? Do you need transcoding every time? The operating system I use is windows

                                        1 Reply Last reply
                                        0
                                        • SGaistS Offline
                                          SGaistS Offline
                                          SGaist
                                          Lifetime Qt Champion
                                          wrote on last edited by
                                          #20

                                          @jack9603301 said in Qt failed to compile MSVC2017 X86 platform:

                                          @SGaist Why did I compile QT in qtwebengine chromium code problems caused by errors, do not know how you solve it? Do you need transcoding every time? The operating system I use is windows

                                          Sorry, I don't understand what you wrote here.

                                          Interested in AI ? www.idiap.ch
                                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                          J 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