Unsolved Crosscompile QtMultimedia for Raspberry Pi
-
I meant that as a test to ensure that you could build the module. So then we can concentrate on why ALSA is not found properly at compile time.
-
@SGaist after googling a lot .. my conclusion is that there is some sort of problem in QtMultimedia relating to gStreamer version - a fight between old one 0.1 and new one 1.0...
"No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2, parsed=(boolean)true'."
this appeared on my Pi as a program error...
by the way, I've also realised that compiling QtMultimedia just with
~/raspi/qtmultimedia$ ~/raspi/qt5/bin/qmake -r
is working but when I'm trying to specify the GST version with
GST_VERSION=1.0
it can not find ALSA....
witch, to be honest, is strange for me... that means 2 things:- without gst version is compiling using gstreamer 0.1 witch acourding to this
Qt Multimedia: ALSA ................................... yes GStreamer 1.0 .......................... yes GStreamer 0.10 ......................... no Video for Linux ........................ yes OpenAL ................................. no PulseAudio ............................. yes Resource Policy (libresourceqt5) ....... no Windows Audio Services ................. no DirectShow ............................. no Windows Media Foundation ............... no
is not even available - but I can see that the compile finish without any error
- is using the new GStreamer 1.0 which is also found by the configure.. but.. why is finding ALSA now? Where is ALSA??
..... Realy strange... at least for me...
-
You have both version of GStreamer installed on your sysroot ?
-
@SGaist As you can see form configure (I think that configure is looking into sysroot if I'm not wrong) It says only 1.0..
-
@SGaist
after a lot more digging here is what I've just found out- delete the libraries containing the unwanted elements (like /usr/lib/arm-linux-gnueabihf/gstreamer-1.0/libgstomx.so)
- delete the cache ~/.cache/gstreamer-1.0/registry.arm.bin
- re-run the application
all are useless - at least in my case.
- adapt QtMultimedia source code, see and re-compile, cf. http://code.qt.io/cgit/qt/qtmultimedia.git/tree/src/plugins/gstreamer/mediaplayer/qgstreamerplayersession.cpp?id=eedba02427aa4750011f010319bf34959ecbd3e1&h=5.10.0#n168
and changed from "autoaudiosink" to "alsasink"
is giving this now:~/raspi/qt5/bin/qmake -r Cannot read /home/andrei/raspi/qtmultimedia/mkspecs/modules-inst/qt_lib_multimedia.pri: No such file or directory Cannot read /home/andrei/raspi/qtmultimedia/mkspecs/modules-inst/qt_lib_multimedia_private.pri: No such file or directory Cannot read /home/andrei/raspi/qtmultimedia/mkspecs/modules-inst/qt_lib_multimediagsttools_private.pri: No such file or directory Cannot read /home/andrei/raspi/qtmultimedia/mkspecs/modules-inst/qt_lib_multimediawidgets.pri: No such file or directory Cannot read /home/andrei/raspi/qtmultimedia/mkspecs/modules-inst/qt_lib_multimediawidgets_private.pri: No such file or directory Cannot read /home/andrei/raspi/qtmultimedia/mkspecs/modules-inst/qt_plugin_gstaudiodecoder.pri: No such file or directory Cannot read /home/andrei/raspi/qtmultimedia/mkspecs/modules-inst/qt_plugin_gstcamerabin.pri: No such file or directory Cannot read /home/andrei/raspi/qtmultimedia/mkspecs/modules-inst/qt_plugin_gstmediacapture.pri: No such file or directory Cannot read /home/andrei/raspi/qtmultimedia/mkspecs/modules-inst/qt_plugin_gstmediaplayer.pri: No such file or directory Cannot read /home/andrei/raspi/qtmultimedia/mkspecs/modules-inst/qt_plugin_mockserviceplugin1.pri: No such file or directory Cannot read /home/andrei/raspi/qtmultimedia/mkspecs/modules-inst/qt_plugin_mockserviceplugin2.pri: No such file or directory Cannot read /home/andrei/raspi/qtmultimedia/mkspecs/modules-inst/qt_plugin_mockserviceplugin3.pri: No such file or directory Cannot read /home/andrei/raspi/qtmultimedia/mkspecs/modules-inst/qt_plugin_mockserviceplugin4.pri: No such file or directory Cannot read /home/andrei/raspi/qtmultimedia/mkspecs/modules-inst/qt_plugin_mockserviceplugin5.pri: No such file or directory Cannot read /home/andrei/raspi/qtmultimedia/mkspecs/modules-inst/qt_plugin_qtaudio_alsa.pri: No such file or directory Cannot read /home/andrei/raspi/qtmultimedia/mkspecs/modules-inst/qt_plugin_qtmedia_pulse.pri: No such file or directory Cannot read /home/andrei/raspi/qtmultimedia/mkspecs/modules-inst/qt_plugin_qtmultimedia_m3u.pri: No such file or directory Running configuration tests... Done running configuration tests. Configure summary: Qt Multimedia: ALSA ................................... yes GStreamer 1.0 .......................... yes GStreamer 0.10 ......................... no Video for Linux ........................ yes OpenAL ................................. no PulseAudio ............................. yes Resource Policy (libresourceqt5) ....... no Windows Audio Services ................. no DirectShow ............................. no Windows Media Foundation ............... no Note: Dropped compiler flags '-pthread' when detecting library 'gstreamer'. Note: Dropped compiler flags '-pthread' when detecting library 'gstreamer_app'. Qt is now configured for building. Just run 'make'. Once everything is built, Qt is installed. You should NOT run 'make install'. Note that this build cannot be deployed to other machines or devices. Prior to reconfiguration, make sure you remove any leftovers from the previous build. Reading /home/andrei/.local/share/Trash/files/qtmultimedia (1)/src/src.pro Reading /home/andrei/.local/share/Trash/files/qtmultimedia (1)/src/multimedia/multimedia.pro Reading /home/andrei/.local/share/Trash/files/qtmultimedia (1)/src/multimediawidgets/multimediawidgets.pro Reading /home/andrei/.local/share/Trash/files/qtmultimedia (1)/src/gsttools/gsttools.pro Project ERROR: Could not find feature alsa.
So.. where is Alsa??? where I can find it? how can I put it there??
-
Is this on your desktop machine or on your Pi ?
-
@SGaist this is when I try to crosscompile QtMultimedia after modifying that line there - when running
~/raspi/qt5/bin/qmake -r
-
Take a look at the tests to see what failed exactly.
-
@SGaist where is that... as you can see here
Configure summary: Qt Multimedia: ALSA ................................... yes GStreamer 1.0 .......................... yes GStreamer 0.10 ......................... no Video for Linux ........................ yes OpenAL ................................. no PulseAudio ............................. yes Resource Policy (libresourceqt5) ....... no Windows Audio Services ................. no DirectShow ............................. no Windows Media Foundation ............... no
the GStreamer 1 and ALSA did pas the test...and aftre that alsa is failing why???
-
Read the
config.log
file -
until I find a proper way of doing it for Raspberry Pi.. here you have a workaround this problem - delete the libgtsomx.so I had to delete also the libgstomx-rpi.so then delete the cache.
but this is just a workaround and making it to work.. I do not know if that is the proper way of doing it... -
@SGaist said in Crosscompile QtMultimedia for Raspberry Pi:
Read the
config.log
fileSorry but no config file found inside the qtmultimedia folder
-
You don't have anything like that in the build folder ?
-
@SGaist OK... now I have a BIG question... where is that??
-
The build folder ? The folder in which you called qmake to build the QtMultimedia module.