QAudio support missing



  • I'm using Qt 4.6.2 on an ARM Cortex-A8 part and I'm trying to get audio support working on the device. I compile the Qt libraries with the following settings:

    @

    Architecture: arm
    Host architecture: i386

    Build ............... libs
    Configuration ....... silent cross_compile release shared dll embedded largefile precompile_header exceptions_off minimal-config small-config medium-config large-config full-config accessibility embedded reduce_exports ipv6 clock-gettime clock-monotonic mremap getaddrinfo ipv6ifname getifaddrs inotify png gif freetype zlib nis alsa multimedia audio-backend svg script scripttools release
    Debug ............... no
    Qt 3 compatibility .. no
    QtDBus module ....... no
    QtConcurrent code.... yes
    QtScript module ..... yes
    QtScriptTools module yes
    QtXmlPatterns module no
    Phonon module ....... no
    Multimedia module ... yes
    SVG module .......... yes
    WebKit module ....... no
    Declarative module .. no
    STL support ......... no
    PCH support ......... yes
    MMX/3DNOW/SSE/SSE2.. no/no/no/no
    iWMMXt support ...... no
    NEON support ........ no
    IPv6 support ........ yes
    IPv6 ifname support . yes
    getaddrinfo support . yes
    getifaddrs support .. yes
    Accessibility ....... yes
    NIS support ......... yes
    CUPS support ........ no
    Iconv support ....... no
    Glib support ........ no
    GStreamer support ... no
    Large File support .. yes
    GIF support ......... yes
    TIFF support ........ plugin (qt)
    JPEG support ........ plugin (qt)
    PNG support ......... yes (qt)
    MNG support ......... plugin (qt)
    zlib support ........ yes
    Session management .. no
    Embedded support .... arm
    Freetype2 support ... auto (yes)
    Graphics (qt) ....... linuxfb multiscreen
    Graphics (plugin) ...
    Decorations (qt) .... styled windows default
    Decorations (plugin)
    Keyboard driver (qt). tty
    Keyboard driver (plugin)
    Mouse driver (qt) ... pc linuxtp linuxinput
    Mouse driver (plugin)
    OpenGL support ...... no
    OpenVG support ...... no
    SQLite support ...... plugin (qt)
    OpenSSL support ..... no
    alsa support ........ yes

    @

    When I add to my application:

    @#include <QtMultimedia/QAudioOutput>

    QAudioOutput audio;@

    or anything related to QAudioOutput, QAudioFormat, etc. I get linking errors saying things like "undefined reference to `QAudioOutput::~QAudioOutput()'"

    I have the compiled QtMultimedia library in the same directory as all of my other libraries (QtGui, QtCore, etc.). I've run readelf on the library and I find references to the QAudio support:

    @arm-none-linux-gnueabi-readelf -s install/lib/libQtMultimedia.so.4.6.2 | grep QAudioOutput
    14: 000252f8 56 OBJECT GLOBAL DEFAULT 18 _ZTV12QAudioOutput
    51: 0000b398 24 FUNC GLOBAL DEFAULT 10 _ZN12QAudioOutput6resumeE
    58: 0001a504 72 FUNC GLOBAL DEFAULT 10 _ZN12QAudioOutput12stateC
    60: 000252e8 16 OBJECT GLOBAL DEFAULT 18 _ZN12QAudioOutput16static
    63: 0000b3b0 24 FUNC GLOBAL DEFAULT 10 _ZNK12QAudioOutput9bytesF
    73: 0001bbdc 15 OBJECT GLOBAL DEFAULT 12 _ZTS12QAudioOutput
    79: 0001a4e0 36 FUNC GLOBAL DEFAULT 10 _ZN12QAudioOutput6notifyE
    101: 0000b630 152 FUNC GLOBAL DEFAULT 10 _ZN12QAudioOutputC2ERK16Q
    121: 0000b488 24 FUNC GLOBAL DEFAULT 10 _ZNK12QAudioOutput5stateE
    135: 0000b368 24 FUNC GLOBAL DEFAULT 10 _ZN12QAudioOutput5resetEv
    158: 0001a5ac 72 FUNC GLOBAL DEFAULT 10 _ZN12QAudioOutput11qt_met
    163: 0000b758 144 FUNC GLOBAL DEFAULT 10 _ZN12QAudioOutputC2ERK12Q
    170: 0000b428 24 FUNC GLOBAL DEFAULT 10 _ZNK12QAudioOutput14notif
    191: 0000b2fc 32 FUNC GLOBAL DEFAULT 10 _ZNK12QAudioOutput6format
    207: 0000b334 28 FUNC GLOBAL DEFAULT 10 _ZN12QAudioOutput5startEv
    209: 0000b440 24 FUNC GLOBAL DEFAULT 10 _ZNK12QAudioOutput14proce
    215: 0000b458 24 FUNC GLOBAL DEFAULT 10 _ZNK12QAudioOutput12elaps
    218: 0000b4f0 80 FUNC GLOBAL DEFAULT 10 _ZN12QAudioOutputD2Ev
    238: 0000b3c8 24 FUNC GLOBAL DEFAULT 10 _ZNK12QAudioOutput10perio
    285: 00025330 12 OBJECT GLOBAL DEFAULT 18 _ZTI12QAudioOutput
    292: 0000b3f8 24 FUNC GLOBAL DEFAULT 10 _ZNK12QAudioOutput10buffe
    307: 0000b350 24 FUNC GLOBAL DEFAULT 10 _ZN12QAudioOutput4stopEv
    311: 0000b410 24 FUNC GLOBAL DEFAULT 10 _ZN12QAudioOutput17setNot
    312: 0000b4a0 80 FUNC GLOBAL DEFAULT 10 _ZN12QAudioOutputD1Ev
    329: 0000b6c8 144 FUNC GLOBAL DEFAULT 10 _ZN12QAudioOutputC1ERK12Q
    339: 0001a4b4 44 FUNC GLOBAL DEFAULT 10 _ZNK12QAudioOutput10metaO
    400: 0000b598 152 FUNC GLOBAL DEFAULT 10 _ZN12QAudioOutputC1ERK16Q
    418: 0001a54c 96 FUNC GLOBAL DEFAULT 10 _ZN12QAudioOutput11qt_met
    432: 0000b31c 24 FUNC GLOBAL DEFAULT 10 _ZN12QAudioOutput5startEP
    438: 0000b3e0 24 FUNC GLOBAL DEFAULT 10 _ZN12QAudioOutput13setBuf
    446: 0000b380 24 FUNC GLOBAL DEFAULT 10 _ZN12QAudioOutput7suspend
    456: 0000b470 24 FUNC GLOBAL DEFAULT 10 _ZNK12QAudioOutput5errorE
    464: 0000b540 88 FUNC GLOBAL DEFAULT 10 _ZN12QAudioOutputD0Ev@

    Is there something else that needs to be configured in the Qt build to enable the QAudio support? Is there another way that I can check the library for support?

    Thanks for any help

    Clif



  • Does your app link to libQtMultimedia? Make sure you have "QT += multimedia" in your *.pro file if using qmake (see "Qt Multimedia docs":http://doc.trolltech.com/4.6/qtmultimedia.html)



  • That was exactly it, thank you


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.