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

linux configure script doesn't handle -no-gtkstyle and needs cups-devel

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.0.0
    • 4.7.0
    • Build System
    • None
    • Linux FC8

    Description

      I run qt-sdk-linux-x86-opensource-2010.05.1.bin, after it type in console
      ./configure -static -release -no-gtkstyle -no-exceptions -opensource -fast -no-accessibility -no-stl -no-opengl -no-phonon -no-dbus -no-multimedia -no-audio-backend -no-webkit -no-script -no-qt3support -no-declarative -nomake examples -nomake demos -no-scripttools -no-opengl -no-sql-sqlite -prefix /usr/local/qt-static-release;make;make install

      After it I got a error :
      g++ -c -include .pch/release-static/QtGui -pipe -fno-exceptions -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -I/usr/include/freetype2 -fPIC -DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_NO_OPENTYPE -DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQT_NO_STYLE_S60 -DQ_INTERNAL_QAPP_SRC -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++ -I. -I../../include/QtCore -I../../include -I../../include/QtGui -I.rcc/release-static -I../3rdparty/xorg -Iimage -I/usr/include/freetype2 -I../3rdparty/harfbuzz/src -Idialogs -I.moc/release-static -I/usr/X11R6/include -I.uic/release-static -o .obj/release-static/qguiplatformplugin.o kernel/qguiplatformplugin.cpp
      In file included from ../../include/QtGui/private/qgtkstyle_p.h:1,
      from kernel/qguiplatformplugin.cpp:63:
      ../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h:69:21: error: gtk/gtk.h: No such file or directory

      why? I hate gtk and have never install it! Okay, go to src/gui/Makefile and type -DQT_NO_STYLE_GTK at the end of DEFINES

      After it I got a error
      g++ -c -include .pch/release-static/QtGui -pipe -fno-exceptions -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -I/usr/include/freetype2 -fPIC -DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_NO_OPENTYPE -DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQT_NO_STYLE_S60 -DQ_INTERNAL_QAPP_SRC -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_STYLE_GTK -I../../mkspecs/linux-g++ -I. -I../../include/QtCore -I../../include -I../../include/QtGui -I.rcc/release-static -I../3rdparty/xorg -Iimage -I/usr/include/freetype2 -I../3rdparty/harfbuzz/src -Idialogs -I.moc/release-static -I/usr/X11R6/include -I.uic/release-static -o .obj/release-static/qpdf.o painting/qpdf.cpp
      In file included from ../../include/QtGui/private/qcups_p.h:1,
      from painting/qpdf.cpp:47:
      ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:61:23: error: cups/cups.h: No such file or directory

      I need cups-devel? Why? I don't have a printer and I don't plan to print anything! okay, I type sudo you install cups-devel
      so I hope you will fix it

      Attachments

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

        Activity

          People

            bachewii Jens
            sluge Igor Sobinov
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes