Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-73466

configure fails to find libraries with MinGW

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.12.2, 5.14.0 Alpha
    • 5.12.1
    • Build System
    • None
    • Windows
    • fd88c152db0949e47613858a914a6ae4a825781d (qt/qtbase/5.12)

    Description

      When trying to build Qt 5.12.1, configure fails to find openssl, opengl and odbc libraries:
       

      ERROR: Feature 'openssl-runtime' was enabled, but the pre-condition '!features.securetransport && libs.openssl_headers' failed.
      ERROR: Feature 'opengl-desktop' was enabled, but the pre-condition '(config.win32 && !config.winrt && !features.opengles2 && (config.msvc || libs.opengl))
                                || (!config.watchos && !config.win32 && !config.wasm && libs.opengl)' failed.
      ERROR: The OpenGL functionality tests failed!
      You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL[_ES2],
      QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform.
      ERROR: Feature 'sql-odbc' was enabled, but the pre-condition 'features.datestring && libs.odbc' failed
       

      I pass these arguments to configure: -opengl desktop -openssl --sql-odbc=yes

      config.log has the following:

      looking for library openssl_headers
      Trying source 0 (type inline) of library openssl_headers ...
      None of [libcrypt32.dll.a libcrypt32.a crypt32.dll.a crypt32.a crypt32.lib] found in [C:\\Users\\appveyor\\.conan\\data\\OpenSSL\\1.1.1a\\conan\\stable\\package\\7f45ccb031deceaad4de735d757050d71cabfae4\\lib] and global paths.
      None of [libws2_32.dll.a libws2_32.a ws2_32.dll.a ws2_32.a ws2_32.lib] found in [C:\\Users\\appveyor\\.conan\\data\\OpenSSL\\1.1.1a\\conan\\stable\\package\\7f45ccb031deceaad4de735d757050d71cabfae4\\lib] and global paths.
        => source produced no result.
      test config.qtbase_network.libraries.openssl_headers FAILED
      
      looking for library opengl
      Trying source 0 (type pkgConfig) of library opengl ...
      pkg-config use disabled globally.
        => source produced no result.
      Trying source 1 (type makeSpec) of library opengl ...
      None of [libglu32.dll.a libglu32.a glu32.dll.a glu32.a glu32.lib] found in [] and global paths.
      None of [libopengl32.dll.a libopengl32.a opengl32.dll.a opengl32.a opengl32.lib] found in [] and global paths.
      None of [libgdi32.dll.a libgdi32.a gdi32.dll.a gdi32.a gdi32.lib] found in [] and global paths.
      None of [libuser32.dll.a libuser32.a user32.dll.a user32.a user32.lib] found in [] and global paths.
        => source produced no result.
      test config.qtbase_gui.libraries.opengl FAILED
      
      looking for library odbc
      Trying source 0 (type inline) of library odbc ...
      None of [libodbc32.dll.a libodbc32.a odbc32.dll.a odbc32.a odbc32.lib] found in [] and global paths.
      None of [libodbccp32.dll.a libodbccp32.a odbccp32.dll.a odbccp32.a odbccp32.lib] found in [] and global paths.
        => source produced no result.
      Trying source 1 (type inline) of library odbc ...
        => source failed condition 'config.darwin'.
      Trying source 2 (type inline) of library odbc ...
        => source failed condition '!config.win32 && !config.darwin'.
      test config.qtbase_sqldrivers.libraries.odbc FAILED
      
      Global lib dirs: [] [C /Users/appveyor/.conan/data/mingw_installer/1.0/conan/stable/package/424f435800f2c18b7ebdc5aaf0a0b870624bfdb6/lib/gcc/i686-w64-mingw32/4.9.4/;C /Users/appveyor/.conan/data/mingw_installer/1.0/conan/stable/package/424f435800f2c18b7ebdc5aaf0a0b870624bfdb6/lib/gcc/;C /Users/appveyor/.conan/data/mingw_installer/1.0/conan/stable/package/424f435800f2c18b7ebdc5aaf0a0b870624bfdb6/i686-w64-mingw32/lib/;C /Users/appveyor/.conan/data/mingw_installer/1.0/conan/stable/package/424f435800f2c18b7ebdc5aaf0a0b870624bfdb6/lib/;C /Users/appveyor/.conan/data/mingw_installer/1.0/conan/stable/package/424f435800f2c18b7ebdc5aaf0a0b870624bfdb6/lib]
      

      opengl and odbc libraries are provided by mingw itself, in the folder "C /Users/appveyor/.conan/data/mingw_installer/1.0/conan/stable/package/424f435800f2c18b7ebdc5aaf0a0b870624bfdb6/i686-w64-mingw32/lib" which is listed above, so it seem be part of QMAKE_DEFAULT_LIBDIRS

      The same command was working fine with Qt 5.12.0

      EDIT: How did I not notice this:

      Global lib dirs: [] [C /Users/Eric/.conan/data/mingw_installer/1.0/conan/stable/package/4092e626da5994c377b98cc1cf6d9589978ec87d/lib/gcc/x86_64-w64-mingw32/6.4.0/;C /Users/Eric/.conan/data/mingw_installer/1.0/conan/stable/package/4092e626da5994c377b98cc1cf6d9589978ec87d/lib/gcc/;C /Users/Eric/.conan/data/mingw_installer/1.0/conan/stable/package/4092e626da5994c377b98cc1cf6d9589978ec87d/x86_64-w64-mingw32/lib/;C /Users/Eric/.conan/data/mingw_installer/1.0/conan/stable/package/4092e626da5994c377b98cc1cf6d9589978ec87d/lib/;C /Users/Eric/.conan/data/mingw_installer/1.0/conan/stable/package/4092e626da5994c377b98cc1cf6d9589978ec87d/lib]

      There is an error in this variable, all "c:/" were replaced by "c /". This is most probably the reason why libraries are not found

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtbuildsystem Qt Build System Team
            ericlemanissier Eric Lemanissier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes