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

qtbase unable to build with system jpeg

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 6.2.0 Alpha
    • 6.0.0 Beta2
    • Build System

    Description

      Error:

      FAILED: src/plugins/imageformats/jpeg/CMakeFiles/QJpegPlugin.dir/qjpeghandler.cpp.obj 
      C:\PROGRA~2\MIB055~1\2019\COMMUN~1\VC\Tools\MSVC\1427~1.291\bin\Hostx64\x64\cl.exe   /TP -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_GUI_LIB -DQT_NO_EXCEPTIONS -DQT_PLUGIN -DQT_QJPEGPLUGIN_LIB -DQT_STATICPLUGIN -DUNICODE -DWIN32 -DWIN64 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -Ddeprecations -Isrc\plugins\imageformats\jpeg\QJpegPlugin_autogen\include -IE:\vcpkg_folders\qt6\buildtrees\qtbase\src\.0.0-beta1-8e7b891830\src\plugins\imageformats\jpeg -Isrc\plugins\imageformats\jpeg -Iinclude -Iinclude\QtCore -IE:\vcpkg_folders\qt6\buildtrees\qtbase\src\.0.0-beta1-8e7b891830\mkspecs\win32-msvc -Isrc\corelib -Iinclude\QtCore\6.0.0 -Iinclude\QtCore\6.0.0\QtCore -Iinclude\QtGui -Isrc\gui -Iinclude\QtGui\6.0.0 -Iinclude\QtGui\6.0.0\QtGui -IE:\vcpkg_folders\qt6\installed\x64-windows-static\include /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP  /D_DEBUG /MTd /Z7   /RTC1 -MTd /W3 /wd4530 /wd4577 -Zc:__cplusplus -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:externConstexpr -Zc:wchar_t -std:c++17 /YuE:/vcpkg_folders/qt6/buildtrees/qtbase/x64-windows-static-dbg/src/plugins/imageformats/jpeg/CMakeFiles/QJpegPlugin.dir/cmake_pch.hxx /FpE:/vcpkg_folders/qt6/buildtrees/qtbase/x64-windows-static-dbg/src/plugins/imageformats/jpeg/CMakeFiles/QJpegPlugin.dir/./cmake_pch.cxx.pch /FIE:/vcpkg_folders/qt6/buildtrees/qtbase/x64-windows-static-dbg/src/plugins/imageformats/jpeg/CMakeFiles/QJpegPlugin.dir/cmake_pch.hxx /showIncludes /Fosrc\plugins\imageformats\jpeg\CMakeFiles\QJpegPlugin.dir\qjpeghandler.cpp.obj /Fdplugins\imageformats\Qt6QJpegPlugind.pdb /FS -c E:\vcpkg_folders\qt6\buildtrees\qtbase\src\.0.0-beta1-8e7b891830\src\plugins\imageformats\jpeg\qjpeghandler.cpp
      E:\vcpkg_folders\qt6\installed\x64-windows-static\include\jpeglib.h(97): error C3646: 'sent_table': unknown override specifier
      E:\vcpkg_folders\qt6\installed\x64-windows-static\include\jpeglib.h(97): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      

      The reason is that jmorecfg.h and jconfig.h between Qt and an externally installed Jpeg does not agree. I added a patch which makes it work for vcpkg and also added the installed jconfig.h and jmorecfg.h which are installed by libjpeg-turbo's cmake build.

      Attachments

        1. jconfig.h
          1 kB
        2. jmorecfg.h
          15 kB
        3. jpeg.patch
          0.8 kB

        Issue Links

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

          Activity

            People

              jbornema Joerg Bornemann
              neumann-a Alexander Neumann
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes