Qt World Summit: Submit your Presentation

[SOLVED] Variable GST_VERSION is not defined.

  • I am trying to build multimedia package with i386 qmake from qt-opensource-linux-x86-5.5.1.run on Ubuntu 14.04.3 and I get the following error:

    Variable GST_VERSION is not defined.

    libgstreamer packages are installed on Ubuntu, but still getting that error.

  • Lifetime Qt Champion

    Did you install the development packages for GStreamer?

  • yes @jsulm, with command: sudo apt-get install gstreamer*

  • I passed that error with running qmake:

    /usr/local/Qt-5.5.0/bin/qmake GST_VERSION=1.0

    but now I am getting following error:

    qgstreameraudioinputselector.cpp:42:28: fatal error: alsa/asoundlib.h: No such file or directory
    #include <alsa/asoundlib.h>
    compilation terminated.
    make[2]: *** [.obj/qgstreameraudioinputselector.o] Error 1
    make[2]: Leaving directory /home/ubuntu/Qt5.5.1/5.5/Src/qtmultimedia/src/gsttools' make[1]: *** [sub-gsttools-make_first] Error 2 make[1]: Leaving directory/home/ubuntu/Qt5.5.1/5.5/Src/qtmultimedia/src'
    make: *** [sub-src-make_first] Error 2

  • Lifetime Qt Champion

    You need alsa developer package - probably libasound2-dev

  • @Zola said:

    alsa/asoundlib.h: No such file or directory

    Yes @jsulm

    QtMultimedia package depends in this situation on two packages, so solution will be:

    sudo apt-get install gstreamer* libasound2-dev

Log in to reply