Quantcast
Channel: Qt DevNet forums: QtonPi
Viewing all articles
Browse latest Browse all 92

Problems getting QAuidioOutput working on Pi

$
0
0
Hi, first I apologize for the massive post…, I’m dividing it in 2 parts, I hope I don’t break rules with that… I just think it’s best to be as detailed as possible. I intend to start developing on Qt 5 on a RPi, I was interested in producing audio at a low level programatically, so for my first experiments I was trying out QAudioOutput, as documented on QAudioOutput reference [qt-project.org] but I was not able to get any audio out. So I went out to google and tried to understand my options or possible mistakes. I compiled QT for the Pi on a Ubuntu 12.04 virtualbox machine. After following a number of blog posts/tutorials like (this [jeffskinnerbox.wordpress.com] and this [thebugfreeblog.blogspot.com] ) I’m still stuck. Some note worthy things I’ve tried: I first noticed I had not included the multimedia module so I compiled it with the following configuration: ./configure -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=~/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /mnt/rasp-pi-rootfs -opensource -confirm-license -optimized-qmake -reduce-relocations -reduce-exports -release -make libs -prefix /usr/local/qt5pi -make tools -no-pch -nomake tests -nomake examples But when running configure I was always getting Alsa support ........... no (I must hereby confide that I’m quite a noob in regards to qmake, make and all the compilation process, so I might just be doing something fundamentally wrong without knowing) Anyways to fix the alsa support I: - Tried changeing QT_SOURCE_HOME/qtbase/mkspecs/qconfig.pri adding alsa to the QT_CONFIG but it would just result in the same. Alsa support ........... yes - Then changed QT_SOURCE_HOME/qtbase/configure at line 869 from: CFG_ALSA=auto to CFG_ALSA=yes And this worked, producing something like: Building on:   linux-g++ Building for:  devices/linux-rasp-pi-g++ Architecture:  arm, features: Host architecture: unknown, features: Platform notes:               - Also available for Linux: linux-kcc linux-icc linux-cxx         Build ..................  libs Configuration ..........  cross_compile qpa largefile neon pcre  minimal-config small-config medium-config large-config full-config evdev linuxfb c++11 accessibility egl eglfs opengl opengles2 shared qpa reduce_exports reduce_relocations clock-gettime clock-monotonic mremap getaddrinfo ipv6ifname getifaddrs inotify png freetype system-zlib nis iconv rpath alsa concurrent audio-backend v8 release Debug .................. no C++11 support .......... yes pkg-config ............. yes Qt D-Bus module ........ no Qt Concurrent code ..... yes Qt GUI module .......... yes Qt Widgets module ...... yes JavaScriptCore JIT ..... To be decided by JavaScriptCore QML debugging .......... yes PCH support ............ no iWMMXt support ......... no NEON support ........... yes IPv6 ifname support .... yes getaddrinfo support .... yes getifaddrs support ..... yes Accessibility .......... yes NIS support ............ yes CUPS support ........... no Iconv support .......... yes Glib support ........... no GStreamer support ...... no PulseAudio support ..... no Large File support ..... yes GIF support ............ plugin JPEG support ........... plugin (qt) PNG support ............ yes (qt) zlib support ........... system Session management ..... auto libudev support ........ no Use system proxies ..... no OpenGL support ......... yes (OpenGL ES 2.x) OpenVG support ......... no XShape support ......... auto XVideo support ......... auto XSync support .......... auto Xinerama support ....... runtime Xcursor support ........ runtime Xfixes support ......... runtime Xrandr support ......... runtime Xi support ............. runtime Xi2 support ............ auto MIT-SHM support ........ auto FontConfig support ..... no XKB Support ............ auto GTK theme support ...... no SQLite support ......... plugin (qt) OpenSSL support ........ no Alsa support ........... yes libICU support ......... no PCRE support ........... qt Xcb support ............ no Xrender support ........ no EGLFS support .......... yes DirectFB support ....... no LinuxFB support ........ yes KMS support ............ no …continued in the subsequent reply…

Viewing all articles
Browse latest Browse all 92

Trending Articles