Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. How to set up the FMOD audio library in Qt Creator for Android
Forum Updated to NodeBB v4.3 + New Features

How to set up the FMOD audio library in Qt Creator for Android

Scheduled Pinned Locked Moved Unsolved Game Development
44 Posts 5 Posters 11.5k 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.
  • jsulmJ jsulm

    @8Observer8 If you want to run your app outside of QtCreator you first have to deploy it, so it contains all needed libraries.

    8Observer88 Offline
    8Observer88 Offline
    8Observer8
    wrote on last edited by 8Observer8
    #41

    @jsulm I want to run my app inside of Qt Creator with relative set up path (with using $$PWD instead of "E:/) because I want to distribute my examples with included libs. For example, I can post my examples (ZIPs) on the forums and people can download it and run without set up of FMOD and so on. And without manual copying of fmod.dlll to the Debug folder. For a while the "E:/ method (absolute path) works without manual copying of fmod.dll but the $$PWD method (relative path) requires to copy fmod.dll to the Debug folder. The distribution of EXE is very clear for me. Yes, of course I should distribute fmod.dll, Qt6Core.dll and so on with EXE. My question about distribution of Qt project with libs to run it very quickly in Qt Creator on another computer.

    The $$PWD method (relative path) allows to include all libs to a project. I should works like this - everyone can download the project and run it without downloading requires libs and without manual copying of fmod.dll to the Debug folder:

    eb019c85-e68a-4755-beca-8b693bb71c2b-image.png

    jsulmJ 1 Reply Last reply
    0
    • 8Observer88 8Observer8

      @jsulm I want to run my app inside of Qt Creator with relative set up path (with using $$PWD instead of "E:/) because I want to distribute my examples with included libs. For example, I can post my examples (ZIPs) on the forums and people can download it and run without set up of FMOD and so on. And without manual copying of fmod.dlll to the Debug folder. For a while the "E:/ method (absolute path) works without manual copying of fmod.dll but the $$PWD method (relative path) requires to copy fmod.dll to the Debug folder. The distribution of EXE is very clear for me. Yes, of course I should distribute fmod.dll, Qt6Core.dll and so on with EXE. My question about distribution of Qt project with libs to run it very quickly in Qt Creator on another computer.

      The $$PWD method (relative path) allows to include all libs to a project. I should works like this - everyone can download the project and run it without downloading requires libs and without manual copying of fmod.dll to the Debug folder:

      eb019c85-e68a-4755-beca-8b693bb71c2b-image.png

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #42

      @8Observer8 It looks like the library is part of your project. You could use https://wiki.qt.io/SUBDIRS_-_handling_dependencies project and make your main project depend on the library sub-project. In that case the libs should be copied during the build.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      8Observer88 1 Reply Last reply
      0
      • jsulmJ jsulm

        @8Observer8 It looks like the library is part of your project. You could use https://wiki.qt.io/SUBDIRS_-_handling_dependencies project and make your main project depend on the library sub-project. In that case the libs should be copied during the build.

        8Observer88 Offline
        8Observer88 Offline
        8Observer8
        wrote on last edited by 8Observer8
        #43

        @jsulm said in How to set up the FMOD audio library in Qt Creator for Android:

        It looks like the library is part of your project.

        I don't have a source code of the proprietary FMOD library. I have only two folders for this library in my project folder: include:

        771b82da-829c-4dec-a883-47015741fc00-image.png
        and libs:

        2bef3acf-802e-4747-ac87-292bd206413c-image.png

        I think SUBDIRS cannot copy fmod.dll from the libs/fmod-2.2.21-mingw-64-bit/lib/x64 folder to the Debug folder or can it?

        1 Reply Last reply
        0
        • 8Observer88 Offline
          8Observer88 Offline
          8Observer8
          wrote on last edited by 8Observer8
          #44

          I solved the problem with the relative paths to the library! I just added -L before $$PWD like this:

          INCLUDEPATH += $$PWD/libs/fmod-2.2.21-mingw-64-bit/include
          LIBS += -L$$PWD/libs/fmod-2.2.21-mingw-64-bit/lib/x64
          LIBS += -lfmod
          

          Now you can download the next example and run it in Qt Creator (with MinGW 64) without necessary to set up FMOD or changing the paths in pro-file: play-audio-from-resources-fmod-qt6-cpp.zip (2.51 MB)

          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