qtmultimedia cross compile can't find gstream



  • Hi,

    Currently i installed qt 5.11 without x11 so i'm using opengl to render the ui. But now i want to load video using qtmultimedia but i got this error below:

    defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer
    

    When i build qt multimedia i gstreamer is not found

    ALSA ................................... no
    GStreamer 1.0 .......................... no
    GStreamer 0.10 ......................... no
    Video for Linux ........................ yes
    OpenAL ................................. no
    PulseAudio ............................. no
    Resource Policy (libresourceqt5) ....... no
    DirectShow ............................. no
    Windows Media Foundation ............... no
    

    I already install gstream depedencies needed from target and copy all the depedencies to sysroot lib and share.

    What i missed? if you need more info just tell me. Thank you


  • Qt Champions 2018

    @getgo said in qtmultimedia cross compile can't find gstream:

    sysroot lib and share

    What about header files? They are needed as well.
    Also, you can see what exactly is missing if you add -v parameter to configure and check the output.



  • check regarding -dev package for gstreamer. and dont forget all the plugins



  • When i see config.log in qtmultimedia folder i got

    Command line: 
    loaded result for library config.qtmultimedia_multimedia.libraries.alsa
    Trying source 0 (type inline) of library alsa ...
    + cd /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/alsa && PKG_CONFIG_SYSROOT_DIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot PKG_CONFIG_LIBDIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/share/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/armv8-rpi3-linux-gnueabihf/pkgconfig /Users/bles/Work/GetGO/app/qt5/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" -early "CONFIG += cross_compile" 'LIBS += -lasound' /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/alsa
    > Info: creating stash file /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/.qmake.stash
    + cd /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/alsa && MAKEFLAGS= make
    > /Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/bin/armv8-rpi3-linux-gnueabihf-g++ -c -march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard --sysroot=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot -O2 -w -fPIC  -I. -I/Users/bles/Work/GetGO/app/qt5/mkspecs/devices/linux-rasp-pi3-g++ -o alsatest.o alsatest.cpp
    > alsatest.cpp:29:10: fatal error: alsa/asoundlib.h: No such file or directory
    >  #include <alsa/asoundlib.h>
    >           ^~~~~~~~~~~~~~~~~~
    > compilation terminated.
    > make: *** [alsatest.o] Error 1
     => source failed verification.
    test config.qtmultimedia_multimedia.libraries.alsa FAILED
    loaded result for config test config.qtmultimedia_multimedia.tests.gpu_vivante
    + cd /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/gpu_vivante && PKG_CONFIG_SYSROOT_DIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot PKG_CONFIG_LIBDIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/share/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/armv8-rpi3-linux-gnueabihf/pkgconfig /Users/bles/Work/GetGO/app/qt5/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" -early "CONFIG += cross_compile" /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/gpu_vivante
    + cd /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/gpu_vivante && MAKEFLAGS= make
    > /Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/bin/armv8-rpi3-linux-gnueabihf-g++ -c -march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard --sysroot=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot -O2 -w -fPIC  -I. -I/Users/bles/Work/GetGO/app/qt5/mkspecs/devices/linux-rasp-pi3-g++ -o main.o main.cpp
    > main.cpp:29:10: fatal error: GLES2/gl2.h: No such file or directory
    >  #include <GLES2/gl2.h>
    >           ^~~~~~~~~~~~~
    > compilation terminated.
    > make: *** [main.o] Error 1
    test config.qtmultimedia_multimedia.tests.gpu_vivante FAILED
    loaded result for library config.qtmultimedia_multimedia.libraries.gstreamer_1_0
    Trying source 0 (type pkgConfig) of library gstreamer_1_0 ...
    + PKG_CONFIG_SYSROOT_DIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot PKG_CONFIG_LIBDIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/share/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/armv8-rpi3-linux-gnueabihf/pkgconfig /usr/local/bin/pkg-config --exists --silence-errors gstreamer-1.0 gstreamer-base-1.0 gstreamer-audio-1.0 gstreamer-video-1.0 gstreamer-pbutils-1.0
    pkg-config did not find package.
      => source produced no result.
    test config.qtmultimedia_multimedia.libraries.gstreamer_1_0 FAILED
    loaded result for library config.qtmultimedia_multimedia.libraries.gstreamer_0_10
    Trying source 0 (type pkgConfig) of library gstreamer_0_10 ...
    + PKG_CONFIG_SYSROOT_DIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot PKG_CONFIG_LIBDIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/share/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/armv8-rpi3-linux-gnueabihf/pkgconfig /usr/local/bin/pkg-config --exists --silence-errors gstreamer-0.10 gstreamer-base-0.10 gstreamer-audio-0.10 gstreamer-video-0.10 gstreamer-pbutils-0.10 gstreamer-interfaces-0.10
    pkg-config did not find package.
      => source produced no result.
    test config.qtmultimedia_multimedia.libraries.gstreamer_0_10 FAILED
    loaded result for config test config.qtmultimedia_multimedia.tests.linux_v4l
    + cd /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/linux_v4l && PKG_CONFIG_SYSROOT_DIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot PKG_CONFIG_LIBDIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/share/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/armv8-rpi3-linux-gnueabihf/pkgconfig /Users/bles/Work/GetGO/app/qt5/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" -early "CONFIG += cross_compile" /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/linux_v4l
    + cd /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/linux_v4l && MAKEFLAGS= make
    > /Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/bin/armv8-rpi3-linux-gnueabihf-g++ -c -march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard --sysroot=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot -O2 -w -fPIC  -I. -I/Users/bles/Work/GetGO/app/qt5/mkspecs/devices/linux-rasp-pi3-g++ -o main.o main.cpp
    > /Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/bin/armv8-rpi3-linux-gnueabihf-g++ -mfloat-abi=hard --sysroot=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot -Wl,-O1 -Wl,-rpath-link,/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/opt/vc/lib -Wl,-rpath-link,/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/armv8-rpi3-linux-gnueabihf -Wl,-rpath-link,/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/lib/armv8-rpi3-linux-gnueabihf -o linux_v4l main.o    
    test config.qtmultimedia_multimedia.tests.linux_v4l succeeded
    loaded result for library config.qtmultimedia_multimedia.libraries.openal
    Trying source 0 (type pkgConfig) of library openal ...
    + PKG_CONFIG_SYSROOT_DIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot PKG_CONFIG_LIBDIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/share/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/armv8-rpi3-linux-gnueabihf/pkgconfig /usr/local/bin/pkg-config --exists --silence-errors openal
    pkg-config did not find package.
      => source produced no result.
    Trying source 1 (type inline) of library openal ...
      => source failed condition 'config.win32'.
    Trying source 2 (type inline) of library openal ...
      => source failed condition 'config.darwin'.
    Trying source 3 (type inline) of library openal ...
    + cd /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/openal && PKG_CONFIG_SYSROOT_DIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot PKG_CONFIG_LIBDIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/share/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/armv8-rpi3-linux-gnueabihf/pkgconfig /Users/bles/Work/GetGO/app/qt5/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" -early "CONFIG += cross_compile" 'LIBS += -lopenal' /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/openal
    + cd /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/openal && MAKEFLAGS= make
    > /Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/bin/armv8-rpi3-linux-gnueabihf-g++ -c -march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard --sysroot=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot -O2 -w -fPIC  -I. -I/Users/bles/Work/GetGO/app/qt5/mkspecs/devices/linux-rasp-pi3-g++ -o main.o main.cpp
    > main.cpp:32:10: fatal error: AL/al.h: No such file or directory
    >  #include <AL/al.h>
    >           ^~~~~~~~~
    > compilation terminated.
    > make: *** [main.o] Error 1
     => source failed verification.
    test config.qtmultimedia_multimedia.libraries.openal FAILED
    loaded result for library config.qtmultimedia_multimedia.libraries.pulseaudio
    Trying source 0 (type pkgConfig) of library pulseaudio ...
    + PKG_CONFIG_SYSROOT_DIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot PKG_CONFIG_LIBDIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/share/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/armv8-rpi3-linux-gnueabihf/pkgconfig /usr/local/bin/pkg-config --exists --silence-errors libpulse '>=' 0.9.10 libpulse-mainloop-glib
    pkg-config did not find package.
      => source produced no result.
    test config.qtmultimedia_multimedia.libraries.pulseaudio FAILED
    loaded result for library config.qtmultimedia_multimedia.libraries.libresourceqt5
    Trying source 0 (type pkgConfig) of library libresourceqt5 ...
    + PKG_CONFIG_SYSROOT_DIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot PKG_CONFIG_LIBDIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/share/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/armv8-rpi3-linux-gnueabihf/pkgconfig /usr/local/bin/pkg-config --exists --silence-errors libresourceqt5
    pkg-config did not find package.
      => source produced no result.
    test config.qtmultimedia_multimedia.libraries.libresourceqt5 FAILED
    
    

    I think it's the header file, where i can get that?


  • Qt Champions 2018

    @getgo Looks like Alsa dev package is missing.



  • I think i already install it by looking at the package installed

    dpkg -l |grep stream
    
    ii  gir1.2-gstreamer-1.0:armhf             1.14.4-1                              armhf        GObject introspection data for the GStreamer library
    ii  gstreamer1.0-alsa:armhf                1.14.4-2                              armhf        GStreamer plugin for ALSA
    ii  gstreamer1.0-gl:armhf                  1.14.4-2                              armhf        GStreamer plugins for GL
    ii  gstreamer1.0-omx                       1.14.4-1+rpt1                         armhf        GStreamer OpenMAX plugins
    ii  gstreamer1.0-omx-rpi                   1.14.4-1+rpt1                         armhf        OpenMax plugins for GStreamer
    ii  gstreamer1.0-omx-rpi-config            1.14.4-1+rpt1                         armhf        OpenMax plugins for GStreamer
    ii  gstreamer1.0-plugins-bad:armhf         1.14.4-1+b1                           armhf        GStreamer plugins from the "bad" set
    ii  gstreamer1.0-plugins-base:armhf        1.14.4-2                              armhf        GStreamer plugins from the "base" set
    ii  gstreamer1.0-plugins-good:armhf        1.14.4-1+rpt1                         armhf        GStreamer plugins from the "good" set
    ii  gstreamer1.0-x:armhf                   1.14.4-2                              armhf        GStreamer plugins for X11 and Pango
    ii  libboost-iostreams1.58.0:armhf         1.58.0+dfsg-5.1+rpi1+b4               armhf        Boost.Iostreams Library
    ii  libdca0:armhf                          0.0.6-1                               armhf        decoding library for DTS Coherent Acoustics streams
    ii  libgstreamer-gl1.0-0:armhf             1.14.4-2                              armhf        GStreamer GL libraries
    ii  libgstreamer-plugins-bad1.0-0:armhf    1.14.4-1+b1                           armhf        GStreamer libraries from the "bad" set
    ii  libgstreamer-plugins-base1.0-0:armhf   1.14.4-2                              armhf        GStreamer libraries from the "base" set
    ii  libgstreamer-plugins-base1.0-dev:armhf 1.14.4-2                              armhf        GStreamer development files for libraries from the "base" set
    rc  libgstreamer0.10-0:armhf               0.10.36-1.5                           armhf        Core GStreamer libraries and elements
    ii  libgstreamer1.0-0:armhf                1.14.4-1                              armhf        Core GStreamer libraries and elements
    ii  libgstreamer1.0-dev:armhf              1.14.4-1                              armhf        GStreamer core development files
    ii  libmms0:armhf                          0.6.4-3                               armhf        MMS stream protocol library - shared library
    ii  libogg0:armhf                          1.3.2-1                               armhf        Ogg bitstream library
    ii  librtmp1:armhf                         2.4+20151223.gitfa8646d.1-2           armhf        toolkit for RTMP streams (shared library)
    ii  libshout3:armhf                        2.4.1-2                               armhf        MP3/Ogg Vorbis broadcast streaming library
    ii  libx265-165:armhf                      2.9-4                                 armhf        H.265/HEVC video stream encoder (shared library)
    ii  sed                                    4.7-1                                 armhf        GNU stream editor for filtering/transforming text
    

    Is it right?

    And when i see the sysroot host folder, alsa folder already there.



  • I think now qmake already found alsadev, i just directly copy alsa folder from host to mount sysroot. But can't find ** lasound**

    Command line: 
    looking for library alsa
    Trying source 0 (type inline) of library alsa ...
    + cd /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/alsa && PKG_CONFIG_SYSROOT_DIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot PKG_CONFIG_LIBDIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/share/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/armv8-rpi3-linux-gnueabihf/pkgconfig /Users/bles/Work/GetGO/app/qt5/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" -early "CONFIG += cross_compile" 'LIBS += -lasound' /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/alsa
    > Info: creating stash file /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/.qmake.stash
    + cd /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/alsa && MAKEFLAGS= make
    > /Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/bin/armv8-rpi3-linux-gnueabihf-g++ -c -march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard --sysroot=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot -O2 -w -fPIC  -I. -I/Users/bles/Work/GetGO/app/qt5/mkspecs/devices/linux-rasp-pi3-g++ -o alsatest.o alsatest.cpp
    > /Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/bin/armv8-rpi3-linux-gnueabihf-g++ -mfloat-abi=hard --sysroot=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot -Wl,-O1 -Wl,-rpath-link,/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/opt/vc/lib -Wl,-rpath-link,/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/armv8-rpi3-linux-gnueabihf -Wl,-rpath-link,/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/lib/armv8-rpi3-linux-gnueabihf -o alsa alsatest.o   -lasound 
    > /Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/bin/../lib/gcc/armv8-rpi3-linux-gnueabihf/8.1.0/../../../../armv8-rpi3-linux-gnueabihf/bin/ld.bfd: cannot find -lasound
    > collect2: error: ld returned 1 exit status
    > make: *** [alsa] Error 1
     => source failed verification.
    test config.qtmultimedia_multimedia.libraries.alsa FAILED
    executing config test gpu_vivante
    + cd /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/gpu_vivante && PKG_CONFIG_SYSROOT_DIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot PKG_CONFIG_LIBDIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/share/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/armv8-rpi3-linux-gnueabihf/pkgconfig /Users/bles/Work/GetGO/app/qt5/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" -early "CONFIG += cross_compile" /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/gpu_vivante
    + cd /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/gpu_vivante && MAKEFLAGS= make
    > /Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/bin/armv8-rpi3-linux-gnueabihf-g++ -c -march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard --sysroot=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot -O2 -w -fPIC  -I. -I/Users/bles/Work/GetGO/app/qt5/mkspecs/devices/linux-rasp-pi3-g++ -o main.o main.cpp
    > main.cpp:29:10: fatal error: GLES2/gl2.h: No such file or directory
    >  #include <GLES2/gl2.h>
    >           ^~~~~~~~~~~~~
    > compilation terminated.
    > make: *** [main.o] Error 1
    test config.qtmultimedia_multimedia.tests.gpu_vivante FAILED
    looking for library gstreamer_1_0
    Trying source 0 (type pkgConfig) of library gstreamer_1_0 ...
    + PKG_CONFIG_SYSROOT_DIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot PKG_CONFIG_LIBDIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/share/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/armv8-rpi3-linux-gnueabihf/pkgconfig /usr/local/bin/pkg-config --exists --silence-errors gstreamer-1.0 gstreamer-base-1.0 gstreamer-audio-1.0 gstreamer-video-1.0 gstreamer-pbutils-1.0
    pkg-config did not find package.
      => source produced no result.
    test config.qtmultimedia_multimedia.libraries.gstreamer_1_0 FAILED
    looking for library gstreamer_0_10
    Trying source 0 (type pkgConfig) of library gstreamer_0_10 ...
    + PKG_CONFIG_SYSROOT_DIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot PKG_CONFIG_LIBDIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/share/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/armv8-rpi3-linux-gnueabihf/pkgconfig /usr/local/bin/pkg-config --exists --silence-errors gstreamer-0.10 gstreamer-base-0.10 gstreamer-audio-0.10 gstreamer-video-0.10 gstreamer-pbutils-0.10 gstreamer-interfaces-0.10
    pkg-config did not find package.
      => source produced no result.
    test config.qtmultimedia_multimedia.libraries.gstreamer_0_10 FAILED
    executing config test linux_v4l
    + cd /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/linux_v4l && PKG_CONFIG_SYSROOT_DIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot PKG_CONFIG_LIBDIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/share/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/armv8-rpi3-linux-gnueabihf/pkgconfig /Users/bles/Work/GetGO/app/qt5/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" -early "CONFIG += cross_compile" /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/linux_v4l
    + cd /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/linux_v4l && MAKEFLAGS= make
    > /Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/bin/armv8-rpi3-linux-gnueabihf-g++ -c -march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard --sysroot=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot -O2 -w -fPIC  -I. -I/Users/bles/Work/GetGO/app/qt5/mkspecs/devices/linux-rasp-pi3-g++ -o main.o main.cpp
    > /Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/bin/armv8-rpi3-linux-gnueabihf-g++ -mfloat-abi=hard --sysroot=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot -Wl,-O1 -Wl,-rpath-link,/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/opt/vc/lib -Wl,-rpath-link,/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/armv8-rpi3-linux-gnueabihf -Wl,-rpath-link,/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/lib/armv8-rpi3-linux-gnueabihf -o linux_v4l main.o    
    test config.qtmultimedia_multimedia.tests.linux_v4l succeeded
    looking for library openal
    Trying source 0 (type pkgConfig) of library openal ...
    + PKG_CONFIG_SYSROOT_DIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot PKG_CONFIG_LIBDIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/share/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/armv8-rpi3-linux-gnueabihf/pkgconfig /usr/local/bin/pkg-config --exists --silence-errors openal
    pkg-config did not find package.
      => source produced no result.
    Trying source 1 (type inline) of library openal ...
      => source failed condition 'config.win32'.
    Trying source 2 (type inline) of library openal ...
      => source failed condition 'config.darwin'.
    Trying source 3 (type inline) of library openal ...
    + cd /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/openal && PKG_CONFIG_SYSROOT_DIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot PKG_CONFIG_LIBDIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/share/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/armv8-rpi3-linux-gnueabihf/pkgconfig /Users/bles/Work/GetGO/app/qt5/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" -early "CONFIG += cross_compile" 'LIBS += -lopenal' /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/openal
    + cd /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/openal && MAKEFLAGS= make
    > /Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/bin/armv8-rpi3-linux-gnueabihf-g++ -c -march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard --sysroot=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot -O2 -w -fPIC  -I. -I/Users/bles/Work/GetGO/app/qt5/mkspecs/devices/linux-rasp-pi3-g++ -o main.o main.cpp
    > main.cpp:32:10: fatal error: AL/al.h: No such file or directory
    >  #include <AL/al.h>
    >           ^~~~~~~~~
    > compilation terminated.
    > make: *** [main.o] Error 1
     => source failed verification.
    test config.qtmultimedia_multimedia.libraries.openal FAILED
    looking for library pulseaudio
    Trying source 0 (type pkgConfig) of library pulseaudio ...
    + PKG_CONFIG_SYSROOT_DIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot PKG_CONFIG_LIBDIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/share/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/armv8-rpi3-linux-gnueabihf/pkgconfig /usr/local/bin/pkg-config --exists --silence-errors libpulse '>=' 0.9.10 libpulse-mainloop-glib
    pkg-config did not find package.
      => source produced no result.
    test config.qtmultimedia_multimedia.libraries.pulseaudio FAILED
    looking for library libresourceqt5
    Trying source 0 (type pkgConfig) of library libresourceqt5 ...
    + PKG_CONFIG_SYSROOT_DIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot PKG_CONFIG_LIBDIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/share/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/armv8-rpi3-linux-gnueabihf/pkgconfig /usr/local/bin/pkg-config --exists --silence-errors libresourceqt5
    pkg-config did not find package.
      => source produced no result.
    test config.qtmultimedia_multimedia.libraries.libresourceqt5 FAILED
    
    

  • Qt Champions 2018

    @getgo said in qtmultimedia cross compile can't find gstream:

    cannot find -lasound

    libasound2 and libasound2-dev are needed
    In such situations you can actually use google to search for the error to see what needed.
    And in my previous post I actually meant Alsa itself, not its integration in gstreamer (not gstreamer1.0-alsa).



  • Yes i know what's the problem and how it should be solved, but i think i already installed all the depedencies and rsync to sysroot

    sudo apt-get install gstreamer1.0-alsa libasound2-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-plugins-good gstreamer1.0-plugins-bad libraspberrypi-dev libpulse-dev alsa-base gstreamer1.0-omx libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libasound2
    
    alsa-base is already the newest version (1.0.27+1).
    gstreamer1.0-alsa is already the newest version (1.14.4-2).
    gstreamer1.0-plugins-bad is already the newest version (1.14.4-1+b1).
    libgstreamer-plugins-base1.0-dev is already the newest version (1.14.4-2).
    libgstreamer1.0-dev is already the newest version (1.14.4-1).
    libpulse-dev is already the newest version (12.2-4+deb10u1).
    gstreamer1.0-omx is already the newest version (1.14.4-1+rpt1).
    gstreamer1.0-plugins-good is already the newest version (1.14.4-1+rpt1).
    libasound2 is already the newest version (1.1.8-1+rpt1).
    libasound2-dev is already the newest version (1.1.8-1+rpt1).
    libraspberrypi-dev is already the newest version (1.20190819-1).
    0 upgraded, 0 newly installed, 0 to remove and 125 not upgraded.
    

    for alsa

    ii  alsa-base                              1.0.27+1                              all          dummy package to ease purging of obsolete conffiles
    ii  alsa-utils                             1.1.8-2                               armhf        Utilities for configuring and using ALSA
    ii  gstreamer1.0-alsa:armhf                1.14.4-2                              armhf        GStreamer plugin for ALSA
    

    The alsa depedencies shared object supposed to be in usr/lib folder right? Because i can't find it



  • I got the alsa shared library now the result like below :

    Command line: 
    looking for library alsa
    Trying source 0 (type inline) of library alsa ...
    + cd /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/alsa && PKG_CONFIG_SYSROOT_DIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot PKG_CONFIG_LIBDIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/share/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/armv8-rpi3-linux-gnueabihf/pkgconfig /Users/bles/Work/GetGO/app/qt5/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" -early "CONFIG += cross_compile" 'LIBS += -lasound' /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/alsa
    > Info: creating stash file /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/.qmake.stash
    + cd /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/alsa && MAKEFLAGS= make
    > /Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/bin/armv8-rpi3-linux-gnueabihf-g++ -c -march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard --sysroot=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot -O2 -w -fPIC  -I. -I/Users/bles/Work/GetGO/app/qt5/mkspecs/devices/linux-rasp-pi3-g++ -o alsatest.o alsatest.cpp
    > /Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/bin/armv8-rpi3-linux-gnueabihf-g++ -mfloat-abi=hard --sysroot=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot -Wl,-O1 -Wl,-rpath-link,/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/opt/vc/lib -Wl,-rpath-link,/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/armv8-rpi3-linux-gnueabihf -Wl,-rpath-link,/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/lib/armv8-rpi3-linux-gnueabihf -o alsa alsatest.o   -lasound 
    > /Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/libasound.so: undefined reference to `fcntl@GLIBC_2.28'
    > collect2: error: ld returned 1 exit status
    > make: *** [alsa] Error 1
     => source failed verification.
    test config.qtmultimedia_multimedia.libraries.alsa FAILED
    executing config test gpu_vivante
    + cd /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/gpu_vivante && PKG_CONFIG_SYSROOT_DIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot PKG_CONFIG_LIBDIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/share/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/armv8-rpi3-linux-gnueabihf/pkgconfig /Users/bles/Work/GetGO/app/qt5/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" -early "CONFIG += cross_compile" /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/gpu_vivante
    + cd /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/gpu_vivante && MAKEFLAGS= make
    > /Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/bin/armv8-rpi3-linux-gnueabihf-g++ -c -march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard --sysroot=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot -O2 -w -fPIC  -I. -I/Users/bles/Work/GetGO/app/qt5/mkspecs/devices/linux-rasp-pi3-g++ -o main.o main.cpp
    > main.cpp:29:10: fatal error: GLES2/gl2.h: No such file or directory
    >  #include <GLES2/gl2.h>
    >           ^~~~~~~~~~~~~
    > compilation terminated.
    > make: *** [main.o] Error 1
    test config.qtmultimedia_multimedia.tests.gpu_vivante FAILED
    looking for library gstreamer_1_0
    Trying source 0 (type pkgConfig) of library gstreamer_1_0 ...
    + PKG_CONFIG_SYSROOT_DIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot PKG_CONFIG_LIBDIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/share/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/armv8-rpi3-linux-gnueabihf/pkgconfig /usr/local/bin/pkg-config --exists --silence-errors gstreamer-1.0 gstreamer-base-1.0 gstreamer-audio-1.0 gstreamer-video-1.0 gstreamer-pbutils-1.0
    pkg-config did not find package.
      => source produced no result.
    test config.qtmultimedia_multimedia.libraries.gstreamer_1_0 FAILED
    looking for library gstreamer_0_10
    Trying source 0 (type pkgConfig) of library gstreamer_0_10 ...
    + PKG_CONFIG_SYSROOT_DIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot PKG_CONFIG_LIBDIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/share/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/armv8-rpi3-linux-gnueabihf/pkgconfig /usr/local/bin/pkg-config --exists --silence-errors gstreamer-0.10 gstreamer-base-0.10 gstreamer-audio-0.10 gstreamer-video-0.10 gstreamer-pbutils-0.10 gstreamer-interfaces-0.10
    pkg-config did not find package.
      => source produced no result.
    test config.qtmultimedia_multimedia.libraries.gstreamer_0_10 FAILED
    executing config test linux_v4l
    + cd /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/linux_v4l && PKG_CONFIG_SYSROOT_DIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot PKG_CONFIG_LIBDIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/share/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/armv8-rpi3-linux-gnueabihf/pkgconfig /Users/bles/Work/GetGO/app/qt5/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" -early "CONFIG += cross_compile" /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/linux_v4l
    + cd /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/linux_v4l && MAKEFLAGS= make
    > /Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/bin/armv8-rpi3-linux-gnueabihf-g++ -c -march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard --sysroot=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot -O2 -w -fPIC  -I. -I/Users/bles/Work/GetGO/app/qt5/mkspecs/devices/linux-rasp-pi3-g++ -o main.o main.cpp
    > /Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/bin/armv8-rpi3-linux-gnueabihf-g++ -mfloat-abi=hard --sysroot=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot -Wl,-O1 -Wl,-rpath-link,/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/opt/vc/lib -Wl,-rpath-link,/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/armv8-rpi3-linux-gnueabihf -Wl,-rpath-link,/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/lib/armv8-rpi3-linux-gnueabihf -o linux_v4l main.o    
    test config.qtmultimedia_multimedia.tests.linux_v4l succeeded
    looking for library openal
    Trying source 0 (type pkgConfig) of library openal ...
    + PKG_CONFIG_SYSROOT_DIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot PKG_CONFIG_LIBDIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/share/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/armv8-rpi3-linux-gnueabihf/pkgconfig /usr/local/bin/pkg-config --exists --silence-errors openal
    pkg-config did not find package.
      => source produced no result.
    Trying source 1 (type inline) of library openal ...
      => source failed condition 'config.win32'.
    Trying source 2 (type inline) of library openal ...
      => source failed condition 'config.darwin'.
    Trying source 3 (type inline) of library openal ...
    + cd /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/openal && PKG_CONFIG_SYSROOT_DIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot PKG_CONFIG_LIBDIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/share/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/armv8-rpi3-linux-gnueabihf/pkgconfig /Users/bles/Work/GetGO/app/qt5/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" -early "CONFIG += cross_compile" 'LIBS += -lopenal' /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/openal
    + cd /Users/bles/Work/GetGO/qtbase/qtmultimedia/config.tests/openal && MAKEFLAGS= make
    > /Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/bin/armv8-rpi3-linux-gnueabihf-g++ -c -march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard --sysroot=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot -O2 -w -fPIC  -I. -I/Users/bles/Work/GetGO/app/qt5/mkspecs/devices/linux-rasp-pi3-g++ -o main.o main.cpp
    > main.cpp:32:10: fatal error: AL/al.h: No such file or directory
    >  #include <AL/al.h>
    >           ^~~~~~~~~
    > compilation terminated.
    > make: *** [main.o] Error 1
     => source failed verification.
    test config.qtmultimedia_multimedia.libraries.openal FAILED
    looking for library pulseaudio
    Trying source 0 (type pkgConfig) of library pulseaudio ...
    + PKG_CONFIG_SYSROOT_DIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot PKG_CONFIG_LIBDIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/share/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/armv8-rpi3-linux-gnueabihf/pkgconfig /usr/local/bin/pkg-config --exists --silence-errors libpulse '>=' 0.9.10 libpulse-mainloop-glib
    pkg-config did not find package.
      => source produced no result.
    test config.qtmultimedia_multimedia.libraries.pulseaudio FAILED
    looking for library libresourceqt5
    Trying source 0 (type pkgConfig) of library libresourceqt5 ...
    + PKG_CONFIG_SYSROOT_DIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot PKG_CONFIG_LIBDIR=/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/share/pkgconfig:/Volumes/xtool-build-env/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr/lib/armv8-rpi3-linux-gnueabihf/pkgconfig /usr/local/bin/pkg-config --exists --silence-errors libresourceqt5
    pkg-config did not find package.
      => source produced no result.
    test config.qtmultimedia_multimedia.libraries.libresourceqt5 FAILED
    
    


  • @getgo said in qtmultimedia cross compile can't find gstream:

    i just directly copy alsa folder from host to mount sysroot

    Sorry if I'm wrong, but it looks like you should do the other way around when cross-compiling.
    I mean, you install the support libraries and headers in your TARGET device, and then you rsync to your sysroot folder in HOST machine. That way you'll be using the proper objetcs for your target architecture.


Log in to reply