Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [SOLVED] Audio Engine module not present in Qt 5.3.2 windows installation

[SOLVED] Audio Engine module not present in Qt 5.3.2 windows installation

Scheduled Pinned Locked Moved QML and Qt Quick
8 Posts 4 Posters 5.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    joufflu
    wrote on last edited by
    #1

    Hello,

    I tried to migrate to Windows 7 a small development done on Mac OS X with a user compiled version of Qt 5.3.1.
    This small application use QtAudioEngine module and I discovered that the module is not present in Qt 5.3.2 Windows installation (the importation of QtAudioEngine module in Qt creator lead to a compilation error).

    The qestions are :

    Is it normal, do I need to compile my own version of Qt in Windows in order to have this module ?
    Maybe QtAudioEngine is not available on Windows 7 ?

    Thanks by advance for your help.
    Best regards

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      AFAIK, there's no such limitation for QtAudioEngine. Are you sure your windows installation is complete ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • J Offline
        J Offline
        joufflu
        wrote on last edited by
        #3

        Hi,

        Thanks for your reply.

        I think so. I kept what is proposed by the installation tool.
        I tried to use the maintenance tool to verify if the installation was not complete but there are neither QtAudioEngine nor QtMultimedia references in the tree.
        It seems that all the needed dll for AudioEngine are well installed, only the qml module is missing (no audioengine folder in <installdir>\5.3\msvc2013\qml...)

        1 Reply Last reply
        0
        • J Offline
          J Offline
          joufflu
          wrote on last edited by
          #4

          Hello,

          After trying to recompile the application from either sources download or git, AudioEngine module (from QtMultimedia imports) compilation (and so installation) is only activated if Openal library is installed. (it seems that this library is provided by default in Mac OS)

          In order to compile AudioEngine on windows (maybe not the cleanest method)

          • Compile Qt form git.

          • Download Openal sdk and dll :
            http://www.openal.org/creative-installers/OpenAL11CoreSDK.zip
            http://www.openal.org/creative-installers/oalinst.zip

          • modify file imports.pro in qt5\qtmultimedia\src\imports ( by removing config_openal in front of SUBDIRS += audioengine)

          • In qt5\qtmultimedia\src\imports\audioengine add the two following lines in audioengine.pro file :

          INCLUDEPATH += <your openal sdk installation include path)
          LIBS += -L<your openal sdk installation library path) -lOpenAL32

          • then generate Makefile by executing in the same directory:
            qmake -makefile -o Makefile audioengine.pro

          +then generate audioengine running nmake.

          bye

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Then, sorry I've mixed it with another part of QtMultimedia.

            However, nice you found out and thanks for sharing !

            Can you also please update thread title prepending [solved] so other forum users may know a solution has been found :)

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • A Offline
              A Offline
              aeropriest
              wrote on last edited by
              #6

              I have been trying to compile Qt on mac for couple of days, managed to compile it for Desktop now compiling for Android I get same problem as you did

              1. Configured using

              ./configure -developer-build -xplatform android-g++ -android-ndk /Users/ashokjaiswal/Development/android-ndk-r9d -android-sdk /Users/ashokjaiswal/Development/android-sdk-macosx -android-toolchain-version 4.8 -android-ndk-host darwin-x86_64 -nomake tests -nomake examples -opensource

              Since OS X comes preinstalled with openAL in /System/Library/Frameworks/OpenAL.framework/ and audioengine.pro already have following

              win32: LIBS += -lOpenAL32
              unix:!mac:!blackberry: LIBS += -lopenal
              blackberry: LIBS += -lOpenAL
              mac: LIBS += -framework OpenAL
              mac: DEFINES += HEADER_OPENAL_PREFIX

              This should have compiled just fine however i had include error for al.h so I added the INCLUDEPATH for system directory folder however after that there are linker problems since it can't find the library (rm-linux-androideabi/bin/ld: error: cannot find -lopenal)

              -anyone know why multimedia libraries not recognising "mac:" in above settings?
              -how do i setup for openal library

              thanks

              1 Reply Last reply
              0
              • A Offline
                A Offline
                aeropriest
                wrote on last edited by
                #7

                I have been trying to compile Qt on mac for couple of days, managed to compile it for Desktop now compiling for Android I get same problem as you did

                1. Configured using

                ./configure -developer-build -xplatform android-g++ -android-ndk /Users/ashokjaiswal/Development/android-ndk-r9d -android-sdk /Users/ashokjaiswal/Development/android-sdk-macosx -android-toolchain-version 4.8 -android-ndk-host darwin-x86_64 -nomake tests -nomake examples -opensource

                Since OS X comes preinstalled with openAL in /System/Library/Frameworks/OpenAL.framework/ and audioengine.pro already have following

                win32: LIBS += -lOpenAL32
                unix:!mac:!blackberry: LIBS += -lopenal
                blackberry: LIBS += -lOpenAL
                mac: LIBS += -framework OpenAL
                mac: DEFINES += HEADER_OPENAL_PREFIX

                This should have compiled just fine however i had include error for al.h so I added the INCLUDEPATH for system directory folder however after that there are linker problems since it can't find the library (rm-linux-androideabi/bin/ld: error: cannot find -lopenal)

                -anyone know why multimedia libraries not recognising "mac:" in above settings?
                -how do i setup for openal library

                thanks

                1 Reply Last reply
                0
                • O Offline
                  O Offline
                  Oxyde
                  wrote on last edited by
                  #8

                  A bit late but since i achieved to do what you want to do, here is my answer.

                  Your OpenAL library won't link because it's a clang compiled library targeting OS X and you are cross-compiling for Android so you need a gcc compiled library for Android. You can find it here : https://github.com/apportable/openal-soft
                  It is very easy to build, the notice is straightforward.
                  Then follow the steps described by 'joufflu', I just added DEFINES += HEADER_OPENAL_PREFIX in audioengine.pro but i'm not sure that's necessary.

                  Do not forget to add the path to your libopenal.so you built previously in your project configuration Build Settings / Build Steps / Build Android APK / Additional Libraries.

                  It worked for me, hope it helps :)

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved