Qt5.3.0 configuration problem: gstreamer can't be enabled
-
Hi all:
I'm working on build Qt projects on an arm board (imx6), I'm a beginner both on ARM embedded and Qt, and I met some problems here.
Now my goal is to run QMediaPlayer or QSound in my program, just to make audio output for wav files.
And when I tried to build cross compiler on my PC (ubuntu 12.04), I can't get either alsa or gstreamer enabled.My building step is as the following link:
http://www.udoo.org/ProjectsAndTutorials/how-to-build-qt5-for-udoo/?portfolioID=1394the file system I download for my ARM is Ubuntu 12.04 v4.0 on this page:
http://www.udoo.org/downloads/#tab2
After downloading, I extracted it in my PC.When I run ./configure and make, gstreamer and alsa were not enabled.
And when I tried add -gstreamer in my ./configure command, there's an error and the error reads:-gstreamer: invalid command-line switch
If I deleted that option, after configuration, I can't find gstreamer information,
So did 5.3.0 omit that option?The multimedia modules just drive me crazy these days.
Sorry for posting so many questions here.
And thanks for all your help. -
This is the configure summary I got after configuration:
alsa disabled and there's no configure options for gstreamer:
@
Qt modules and options:
Qt D-Bus ............... no
Qt Concurrent .......... yes
Qt GUI ................. yes
Qt Widgets ............. yes
Large File ............. no
QML debugging .......... yes
Use system proxies ..... noSupport enabled for:
Accessibility .......... yes
ALSA ................... no
CUPS ................... no
Evdev .................. yes
FontConfig ............. no
FreeType ............... yes (bundled copy)
Glib ................... no
GTK theme .............. no
HarfBuzz ............... no
Iconv .................. yes
ICU .................... no
Image formats:
GIF .................. yes (plugin, using bundled copy)
JPEG ................. yes (plugin, using bundled copy)
PNG .................. yes (in QtGui, using bundled copy)
journald ............... no
mtdev .................. no
Networking:
getaddrinfo .......... yes
getifaddrs ........... yes
IPv6 ifname .......... yes
OpenSSL .............. no
NIS .................... no
OpenGL / OpenVG:
EGL .................. yes
OpenGL ............... yes (OpenGL ES 2.x)
OpenVG ............... yes-auto
PCRE ................... yes (bundled copy)
pkg-config ............. yes
PulseAudio ............. no
QPA backends:
DirectFB ............. no
EGLFS ................ yes
KMS .................. no
LinuxFB .............. yes
XCB .................. no
Session management ..... yes
SQL drivers:
DB2 .................. no
InterBase ............ no
MySQL ................ no
OCI .................. no
ODBC ................. no
PostgreSQL ........... no
SQLite 2 ............. no
SQLite ............... yes (plugin, using bundled copy)
TDS .................. no
udev ................... no
xkbcommon .............. no
zlib ................... yes (bundled copy)
@
So how can I enable the alsa and gstreamer?
Or how can I use Qt modules to make audio output (wav files) under this configure?Thanks a lot.
-
Did you find any solution?
I'd also like to compile gstreamer1.0 but don't know either how to enable it in ./configure.
Which libraries do i need? -
Qt Multimedia framework does not support gstreamer1.0 yet.
You can try to use "Qt-Gstreamer":http://gstreamer.freedesktop.org/modules/qt-gstreamer.html project. -
bq. >Qt Multimedia framework does not support gstreamer1.0 yet.
Ok, good to know.
bq. You can try to use Qt-Gstreamer [gstreamer.freedesktop.org] project.
Does it offer hardware acceleration on the RPI?
Actually all i need from the qtmultimedia module is to show videos (kind of a screensafer, no sound). But i definitely want to have the hardware acceleration.
Any other ideas about how to accomplish this on the RPI? I am using Qt5.3 QML to display images already.Ben
-
[quote author="ben80" date="1411366455"]
Does it offer hardware acceleration on the RPI?
[/quote]
It offers whatever gstreamer offers. Qt-Gstreamer is a Qt/C++ layer on top of gstreamer.[quote author="ben80" date="1411366455"]
Any other ideas about how to accomplish this on the RPI?
[/quote]
It depends on what kind of video you need to display. For example you can use "QMovie":http://qt-project.org/doc/qt-5/QMovie.html#details to show "animated images":http://qt-project.org/doc/qt-5/qtwidgets-widgets-movie-example.html.