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

Qt for Embedded Linux unable to compile Phonon without using pkg-config

    XMLWordPrintable

Details

    Description

      We attempted to cross-compile Qt4 Embedded Linux with phonon support enabled.
      Phonon requires glib, gstreamer and gst-plugins-base to be installed. The
      board support package of the vendor is providing these dependencies but it
      does not support pkg-config. This resulted in the glib test failing to link. It
      didn't attempt to add any libraries (-lglib-2.0 -lgthread-2.0) due the lack of
      pkg-config. The most easy resolution to this problem was to add an else case
      for the lack of pkg-config and attempt to link known defaults.

      These values should be defaulted somewhere though.

      patch to configure:
      Index: qt-embedded-linux-commercial-src-4.5.2/configure

      ===================================================================

      — qt-embedded-linux-commercial-src-4.5.2.orig/configure

      +++ qt-embedded-linux-commercial-src-4.5.2/configure

      @@ -4671,6 +4671,8 @@ if [ "$PLATFORM_X11" = "yes" -o "$PLATFO

      if [ -n "$PKG_CONFIG" ]; then

      QT_CFLAGS_GLIB=`$PKG_CONFIG --cflags glib-2.0 gthread-2.0 2>/dev/null`

      QT_LIBS_GLIB=`$PKG_CONFIG --libs glib-2.0 gthread-2.0 2>/dev/null`

      + else

      + QT_LIBS_GLIB="-lglib-2.0 -lgthread-2.0"

      fi

      if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/glib "Glib" $L_FLAGS $I_FLAGS $l_FLAGS $QT_CFLAGS_GLIB $QT_LIBS_GLIB $X11TESTS_FLAGS ; then

      CFG_GLIB=yes

      @@ -4695,6 +4697,8 @@ if [ "$PLATFORM_X11" = "yes" -o "$PLATFO

      if [ -n "$PKG_CONFIG" ]; then

      QT_CFLAGS_GSTREAMER=`$PKG_CONFIG --cflags gstreamer-0.10 gstreamer-plugins-base-0.10 2>/dev/null`

      QT_LIBS_GSTREAMER=`$PKG_CONFIG --libs gstreamer-0.10 gstreamer-plugins-base-0.10 2>/dev/null`

      + else

      + QT_LIBS_GSTREAMER="-lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lglib-2.0"

      fi

      if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/gstreamer "GStreamer" $L_FLAGS $I_FLAGS $l_FLAGS $QT_CFLAGS_GSTREAMER $QT_LIBS_GSTREAMER $X11TESTS_FLAGS; then

      CFG_GSTREAMER=yes

      Attachments

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

        Activity

          People

            bhughes Bradley T. Hughes (closed Nokia Identity) (Inactive)
            janichol Andy Nichols
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes