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

Unable to build QtGui when PNG support is disabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.2.0 Beta1
    • 5.1.1
    • Image formats
    • None
    • Debian GNU/Linux 7.1 (wheezy)
      gcc version 4.7.2 (Debian 4.7.2-5)
    • bc92ca1860c575863466e5eeef6b253690515824

    Description

      I am trying to build qtbase with these options:

      ./configure -v --opensource --confirm-license -no-libpng

      Build terminates with this error:

      make[2]: Entering directory `/home/fatih/git/qtbase/src/gui'
      g++ -c -include .pch/release-shared/Qt5Gui -pipe -O2 -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_LIBUDEV -DQT_NO_XKB -DQT_NO_USING_NAMESPACE -DQT_BUILD_GUI_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_IMAGEFORMAT_PNG -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_CORE_LIB -I../../mkspecs/linux-g++ -I. -I../../include -I../../include/QtGui -I../../include/QtGui/5.1.2 -I../../include/QtGui/5.1.2/QtGui -I../../include/QtCore -I../../include/QtCore/5.1.2 -I../../include/QtCore/5.1.2/QtCore -I.moc/release-shared -o .obj/release-shared/qplatformtheme.o kernel/qplatformtheme.cpp
      kernel/qplatformtheme.cpp:51:27: fatal error: qiconloader_p.h: No such file or directory
      compilation terminated.
      

      At first, I thought PNG support might be mandatory; but it can be built with this change:

      diff --git a/src/gui/kernel/qplatformtheme.cpp b/src/gui/kernel/qplatformtheme.cpp
      index 02b69bc..e81c171 100644
      --- a/src/gui/kernel/qplatformtheme.cpp
      +++ b/src/gui/kernel/qplatformtheme.cpp
      @@ -48,7 +48,7 @@
       #include <QtCore/qfileinfo.h>
       #include <qpalette.h>
       #include <qtextformat.h>
      -#include <qiconloader_p.h>
      +#include <private/qiconloader_p.h>
       
       QT_BEGIN_NAMESPACE
       
      

      Attachments

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

        Activity

          People

            buddenha Oswald Buddenhagen
            fatih Fatih Aşıcı
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes