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

FTBFS qtmultimedia alsa plugin

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • 5.13.0
    • Multimedia
    • None
    • ubuntu gcc clang
    • Linux/X11

    Description

      When, building qt with qtmultimedia enabled and arguments "ALSA_PREFIX=/home/conan/.conan/data/libalsa/1.1.5/conan/stable/package/922374516f922ec3d5391bf77f46406d2a662f10" "ALSA_LIBS=-lasound -ldl -lm -lrt -lpthread" , the compilation errors with 

      cd alsa/ && ( test -e Makefile || /home/conan/.conan/data/qt/5.13.0/bincrafters/testing/build/dbece615aed4fed49f996ed5d9cdc90120a01171/qtbase/bin/qmake -o Makefile /home/conan/.conan/data/qt/5.13.0/bincrafters/testing/source/qt5/qtmultimedia/src/plugins/alsa/alsa.pro ) && make -f Makefile 
      make[4]: Entering directory `/home/conan/.conan/data/qt/5.13.0/bincrafters/testing/build/dbece615aed4fed49f996ed5d9cdc90120a01171/qtmultimedia/src/plugins/alsa'
      compiling /home/conan/.conan/data/qt/5.13.0/bincrafters/testing/source/qt5/qtmultimedia/src/plugins/alsa/qalsaplugin.cpp
      In file included from /home/conan/.conan/data/qt/5.13.0/bincrafters/testing/source/qt5/qtmultimedia/src/plugins/alsa/qalsaplugin.cpp:41:0:
      /home/conan/.conan/data/qt/5.13.0/bincrafters/testing/source/qt5/qtmultimedia/src/plugins/alsa/qalsaaudiodeviceinfo.h:55:28: fatal error: alsa/asoundlib.h: No such file or directory
       #include <alsa/asoundlib.h>
                                  ^
      compilation terminated.
      

      this is surprising because configuration test passes:

      looking for library alsa
      Trying source 0 (type inline) of library alsa ...
      + cd /home/conan/.conan/data/qt/5.13.0/bincrafters/testing/build/dbece615aed4fed49f996ed5d9cdc90120a01171/config.tests/alsa && /home/conan/.conan/data/qt/5.13.0/bincrafters/testing/build/dbece615aed4fed49f996ed5d9cdc90120a01171/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" 'DEFINES += PCRE2_STATIC U_STATIC_IMPLEMENTATION AL_LIBTYPE_STATIC' QMAKE_CC=/usr/bin/gcc QMAKE_LINK_C=/usr/bin/gcc QMAKE_LINK_C_SHLIB=/usr/bin/gcc QMAKE_CXX=/usr/bin/g++ QMAKE_LINK=/usr/bin/g++ QMAKE_LINK_SHLIB=/usr/bin/g++ 'QMAKE_USE += alsa' 'QMAKE_LIBS_ALSA = /home/conan/.conan/data/libalsa/1.1.5/conan/stable/package/922374516f922ec3d5391bf77f46406d2a662f10/lib/libasound.a /usr/lib/i386-linux-gnu/libdl.so /usr/lib/i386-linux-gnu/libm.so /usr/lib/i386-linux-gnu/librt.so /usr/lib/i386-linux-gnu/libpthread.so' 'QMAKE_INCDIR_ALSA = /home/conan/.conan/data/libalsa/1.1.5/conan/stable/package/922374516f922ec3d5391bf77f46406d2a662f10/include' /home/conan/.conan/data/qt/5.13.0/bincrafters/testing/source/qt5/qtmultimedia/config.tests/alsa
      + cd /home/conan/.conan/data/qt/5.13.0/bincrafters/testing/build/dbece615aed4fed49f996ed5d9cdc90120a01171/config.tests/alsa && MAKEFLAGS= /usr/bin/make
      > /usr/bin/g++ -c -m32 -pipe -g -std=gnu++11 -w -fPIC -DPCRE2_STATIC -DU_STATIC_IMPLEMENTATION -DAL_LIBTYPE_STATIC -I/home/conan/.conan/data/qt/5.13.0/bincrafters/testing/source/qt5/qtmultimedia/config.tests/alsa -I. -I/home/conan/.conan/data/libalsa/1.1.5/conan/stable/package/922374516f922ec3d5391bf77f46406d2a662f10/include -I/home/conan/.conan/data/qt/5.13.0/bincrafters/testing/source/qt5/qtbase/mkspecs/linux-g++-32 -o alsatest.o /home/conan/.conan/data/qt/5.13.0/bincrafters/testing/source/qt5/qtmultimedia/config.tests/alsa/alsatest.cpp
      > /usr/bin/g++ -m32 -o alsa alsatest.o   /home/conan/.conan/data/libalsa/1.1.5/conan/stable/package/922374516f922ec3d5391bf77f46406d2a662f10/lib/libasound.a /usr/lib/i386-linux-gnu/libdl.so /usr/lib/i386-linux-gnu/libm.so /usr/lib/i386-linux-gnu/librt.so /usr/lib/i386-linux-gnu/libpthread.so   
       => source accepted.
      test config.qtmultimedia_multimedia.libraries.alsa succeeded
      

      and it successfully includes the very same header file https://code.qt.io/cgit/qt/qtmultimedia.git/tree/config.tests/alsa/alsatest.cpp#n29

      Attachments

        Issue Links

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

          Activity

            People

              valentyn.doroshchuk Valentyn Doroshchuk
              ericlemanissier Eric Lemanissier
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes