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

Qt Embedded Linux build fails in src/corelib/kernel/kernel.pri when checking contains(QT_CONFIG, glib)

    XMLWordPrintable

Details

    • Task
    • Resolution: Invalid
    • Not Evaluated
    • 4.7.1
    • None
    • Build tools: qmake
    • None
    • Embedded ARM Linux / gcc 4.2 / Qt 4.6

    Description

      When trying to configure Qt I am making the following call:
      ./configure -confirm-license -opensource -release -xplatform qws/linux-armv7-g++ -little-endian -phonon -webkit -openssl -qt-freetype -embedded arm -nomake tools -nomake examples -nomake demos -nomake docs -no-qt3support -exceptions -prefix /usr/local/Trolltech/Qt-embedded-4.6.2-armel -v -glib -no-fast -I /i/arm/crosslibs/usr/include/glib-2.0 -I /i/arm/crosslibs/usr/include -I /i/arm/crosslibs/usr/lib/glib-2.0/include -I /i/arm/crosslibs/usr/include/gstreamer-0.10 -I /i/arm/crosslibs/usr/include/gstreamer-0.10/gst -I /i/arm/crosslibs/usr/include/libxml2 -I /i/arm/crosslibs/usr/include/dbus-1.0 -I /i/arm/crosslibs/usr/lib/dbus-1.0/include -L /i/arm/crosslibs/usr/lib -L /i/arm/crosslibs/lib -lglib-2.0 -lgthread-2.0 -lgobject-2.0 -lgmodule-2.0 -lpcre -lselinux -lgstreamer-0.10 -lxml2 -lz -ldbus-1 -lrt -lXext -lX11 -lXau -lxcb -lXdmcp

      Wading through the output of the configure I can see that Glib support is found to be "yes" and I took a step further to discover that the QT_CONFIG variable contains the following:
      minimal-config small-config medium-config large-config full-config phonon phonon-backend accessibility embedded reduce_exports ipv6 clock-gettime clock-monotonic mremap getaddrinfo ipv6ifname getifaddrs inotify system-jpeg system-png png freetype system-zlib nis glib gstreamer dbus openssl xmlpatterns multimedia audio-backend svg webkit script scripttools release

      Later in the configure script there are calls made to qmake to make all of the various Makefiles based on what is contained in the "pro" files and the "pri" files that they include. The problem that is occuring is in the "src/corelib/kernel/kernel.pri" file. There is a check for "contains(QT_CONFIG, glib)" which if it passes would include "qeventdispatcher_glib.cpp" in the sources to build. However, even though it can be seen that "glib" appears in the QT_CONFIG variable in the configure script this check fails and "qeventdispatcher_glib.cpp" is not included in the sources and the build fails as such: http://pastebin.com/S06nefcp.

      Attachments

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

        Activity

          People

            tcooksey Tom Cooksey
            cattell Matthew Cattell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified

                Gerrit Reviews

                  There are no open Gerrit changes