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

static openssl needs -lgdi32 on windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Fixed
    • Affects Version/s: 5.1.0
    • Fix Version/s: 5.12.2
    • Component/s: Build System
    • Labels:
      None
    • Environment:
      Windows 7, MsDev 2010

      Description

      The following configure/nmake:

      configure -static -openssl-linked -opengl desktop -no-angle -prefix %CD%\qtbase -platform win32-msvc2010 -no-icu -no-incredibuild-xge
       -debug-and-release -accessibility -fontconfig -compile-examples -nomake examples -nomake demos -skip qttranslations -skip qtwebkit -
      skip qtserialport -skip qtwebkit-examples 
      

      Fails like this:

              link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:CONSOLE "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Wind
      ows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /MANIFEST /MANIFESTF
      ILE:c:\qt-everywhere-commercial-src-5.1.0-staticssl\qtbase\bin\xmlpatterns.exe.embed.manifest /OUT:c:\qt-everywhere-commercial-src-5.
      1.0-staticssl\qtbase\bin\xmlpatterns.exe @C:\Users\HynesG\AppData\Local\Temp\nmC11C.tmp
         Creating library c:\qt-everywhere-commercial-src-5.1.0-staticssl\qtbase\bin\xmlpatterns.lib and object c:\qt-everywhere-commercial
      -src-5.1.0-staticssl\qtbase\bin\xmlpatterns.exp
      libeay32.lib(rand_win.obj) : error LNK2019: unresolved external symbol __imp__DeleteDC@4 referenced in function _readscreen
      libeay32.lib(rand_win.obj) : error LNK2019: unresolved external symbol __imp__DeleteObject@4 referenced in function _readscreen
      libeay32.lib(rand_win.obj) : error LNK2019: unresolved external symbol __imp__GetBitmapBits@12 referenced in function _readscreen
      libeay32.lib(rand_win.obj) : error LNK2019: unresolved external symbol __imp__BitBlt@36 referenced in function _readscreen
      libeay32.lib(rand_win.obj) : error LNK2019: unresolved external symbol __imp__GetObjectA@12 referenced in function _readscreen
      libeay32.lib(rand_win.obj) : error LNK2019: unresolved external symbol __imp__SelectObject@8 referenced in function _readscreen
      libeay32.lib(rand_win.obj) : error LNK2019: unresolved external symbol __imp__CreateCompatibleBitmap@12 referenced in function _readscreen
      libeay32.lib(rand_win.obj) : error LNK2019: unresolved external symbol __imp__GetDeviceCaps@8 referenced in function _readscreen
      libeay32.lib(rand_win.obj) : error LNK2019: unresolved external symbol __imp__CreateCompatibleDC@4 referenced in function _readscreen
      libeay32.lib(rand_win.obj) : error LNK2019: unresolved external symbol __imp__CreateDCA@16 referenced in function _readscreen
      c:\qt-everywhere-commercial-src-5.1.0-staticssl\qtbase\bin\xmlpatterns.exe : fatal error LNK1120: 10 unresolved externals
      NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\link.EXE"' : return code '0x460'
      Stop.
      NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe"' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2'
      Stop.
      
      c:\qt-everywhere-commercial-src-5.1.0-staticssl>
      

      Looks like the windows support libraries are missing from the link commands...

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              qtbuildsystem Qt Build System Team
              Reporter:
              jokeman Gary Hynes
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes