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. source configure error
Qt 6.11 is out! See what's new in the release blog

source configure error

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 478 Views
  • 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.
  • N Offline
    N Offline
    Navira
    wrote on last edited by Navira
    #1

    Hi, I want build qt from source with linked ssl (-openssl-linked)
    when i use this configure

    configure -prefix "C:\Qt\5.9\fromsource_86_msvc2015_withssl" -debug-and-release -opensource -confirm-license -nomake examples -nomake tests -opengl desktop -no-angle -sql-sqlite -make libs -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -platform win32-msvc2015 -I "C:\Qt\Libraries\openssl\Release\include" -openssl-linked OPENSSL_LIBS_DEBUG="C:\Qt\Libraries\openssl_debug\Debug\lib\ssleay32.lib C:\Qt\Libraries\openssl_debug\Debug\lib\libeay32.lib" OPENSSL_LIBS_RELEASE="C:\Qt\Libraries\openssl\Release\lib\ssleay32.lib C:\Qt\Libraries\openssl\Release\lib\libeay32.lib"
    

    I get multiple linkage errors like this

    moc_qnetworkreply.obj : error LNK2001: unresolved external symbol "public: bool __thiscall QSslCertificate::operator==(class QSslCertificate const &)const " (??8QSslCertificate@@QBE_NABV0@@Z)
    

    Searching I found what I need to use -l Gdi32 -l User32 options now a have this

    configure -prefix "C:\Qt\5.9\fromsource_86_msvc2015_withssl" -debug-and-release -opensource -confirm-license -nomake examples -nomake tests -opengl desktop -no-angle -sql-sqlite -make libs -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -platform win32-msvc2015 -I "C:\Qt\Libraries\openssl\Release\include" -openssl-linked OPENSSL_LIBS_DEBUG="C:\Qt\Libraries\openssl_debug\Debug\lib\ssleay32.lib C:\Qt\Libraries\openssl_debug\Debug\lib\libeay32.lib" OPENSSL_LIBS_RELEASE="C:\Qt\Libraries\openssl\Release\lib\ssleay32.lib C:\Qt\Libraries\openssl\Release\lib\libeay32.lib" -L "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.15063.0\um\x86" -l Gdi32 -l User32
    

    But I get an error when configuring

    qjsondocument.cpp
    qjsonparser.cpp
    qjsonarray.cpp
    qjsonobject.cpp
    qjsonvalue.cpp
            link  /OUT:..\bin\qmake.exe project.obj main.obj ioutils.obj proitems.ob
    j qmakevfs.obj  qmakeglobals.obj qmakeparser.obj qmakeevaluator.obj qmakebuiltin
    s.obj  makefile.obj unixmake.obj unixmake2.obj mingw_make.obj  option.obj winmak
    efile.obj projectgenerator.obj property.obj meta.obj  makefiledeps.obj metamakef
    ile.obj xmloutput.obj  msvc_nmake.obj msvc_vcproj.obj msvc_vcxproj.obj  msvc_obj
    ectmodel.obj msbuild_objectmodel.obj registry.obj qbitarray.obj  qbuffer.obj  qc
    ryptographichash.obj  qfilesystementry.obj  qfilesystemengine.obj  qfilesystemen
    gine_win.obj  qfilesystemiterator_win.obj  qfsfileengine.obj  qfsfileengine_iter
    ator.obj  qarraydata.obj  qbytearray.obj  qvsnprintf.obj  qbytearraymatcher.obj
     qdatetime.obj  qdir.obj  qdiriterator.obj  qfiledevice.obj  qfile.obj  qtempora
    ryfile.obj  qabstractfileengine.obj  qfsfileengine_win.obj  qsystemlibrary.obj
    qfileinfo.obj  qglobal.obj  qhash.obj  qiodevice.obj  qringbuffer.obj  qdebug.ob
    j  qlist.obj  qlinkedlist.obj  qlocale.obj  qlocale_tools.obj  qlocale_win.obj
    qmalloc.obj  qmap.obj  qoperatingsystemversion.obj  qoperatingsystemversion_win.
    obj  qregexp.obj  qtextcodec.obj  qutfcodec.obj  qstring.obj  qstring_compat.obj
      qstringlist.obj  qstringbuilder.obj  qsystemerror.obj  qtextstream.obj  qdatas
    tream.obj  quuid.obj  qsettings.obj  qvariant.obj  qsettings_win.obj  qmetatype.
    obj  qxmlstream.obj  qxmlutils.obj  qnumeric.obj  qlogging.obj  qjson.obj  qjson
    document.obj  qjsonparser.obj  qjsonarray.obj  qjsonobject.obj  qjsonvalue.obj q
    libraryinfo.obj qmake_pch.obj ole32.lib advapi32.lib shell32.lib
    Microsoft (R) Incremental Linker Version 14.00.24215.1
    Copyright (C) Microsoft Corporation.  All rights reserved.
    
    ERROR: Unknown command line option '-l'.
    
    C:\Qt\5.9\Src>
    

    I had tried to make clean, uninstall/install sources, version source 5.9, 5.9.1
    What am I doing wrong?

    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