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

Failed to build tst_qaccessibility during a static build

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.0.2
    • Fix Version/s: None
    • Labels:
    • Environment:
      Windows 7 64-bit
      Visual Studio 2012 Update 2 (Compiling for x86[32-bit]))
      WinOpenSSL 1.0.1e
      ActivePerl-5.16.3.1603-MSWin32-x64-296746
      python-3.3.1.amd64
    • Commits:
      3f431e279aab16465496cc0de03a1af874c1ce65
    • Story Points:
      10

      Description

      The test tst_qaccessibility failed to build during the building of Qt described below. Step 9 was added to allow the test to build correctly. Several of the build steps are in place to enable using the Visual C++ 2012 110_xp toolchain (to provide compatibility with Windows XP). Step 8 may be a fix for a bug not yet documented.

      Qt Build Steps:
      1. Extract main source archive
      2. Rename folder and place in desired location
      3. Install perl and python
      4. Create QTDIR environment variable
      5.
      In <QTDIR>/qtbase/mkspecs/win32-msvc2012/qmake.conf change the following lines:
      A. QMAKE_CFLAGS = nologo -Zm200 -Zc:wchar_t
      to
      QMAKE_CFLAGS = nologo -Zm200 -Zc:wchar_t -D_USING_V110_SDK71_
      B. QMAKE_LFLAGS_CONSOLE = /SUBSYSTEM:CONSOLE
      to
      QMAKE_LFLAGS_CONSOLE = /SUBSYSTEM:CONSOLE,\"5.01\"
      C. QMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:WINDOWS
      to
      QMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:WINDOWS,\"5.01\"
      6. Edit the folling environment variables (in the command window):
      set INCLUDE=%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.1A\Include;%INCLUDE%
      set PATH=%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.1A\Bin;%PATH%
      set CL=/D_USING_V110_SDK71_;%CL%

      set LIB=%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.1A\Lib;%LIB%
      set LINK=/SUBSYSTEM:CONSOLE,5.01 %LINK%
      set PATH=%QTDIR%\qtbase\bin;%QTDIR%\qtrepotools\bin;%QTDIR%\gnuwin32\bin;%PATH%
      set QMAKESPEC=win32-msvc2012

      7. Edit the following environment variables if using OpenSSL
      set INCLUDE=%OPENSSLXXDIR%\include;%INCLUDE%
      set LIB=%OPENSSLXXDIR%\lib\VC\static;%LIB%

      8. Edit the file <QTDIR>/qtbase/mkspecs/features/qt.prf
      IMPORT_CPP = $$OUT_PWD/$$lower($$basename(TARGET))_plugin_import.cpp
      to
      IMPORT_CPP = $$OUT_PWD/../$$lower($$basename(TARGET))_plugin_import.cpp

      9. Add the line: SOURCES += $${MIDL_GENERATED}/dlldata.c
      right below: include(../../../../src/3rdparty/iaccessible2/iaccessible2.pri)
      in <QTDIR>/qtbase/tests/auto/other/qaccessibility/qaccessibility.pro

      10. Configure Qt
      configure -developer-build -confirm-license -debug-and-release -ltcg -mp -opengl desktop -skip qtwebkit -static -openssl OPENSSL_LIBS="-llibeay32MD -lssleay32MD"

      11. Run nmake

        Attachments

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

          Activity

            People

            Assignee:
            frederik Frederik Gladhorn
            Reporter:
            sandytf Sanford Freedman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes