Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. DLL dependencies
Qt 6.11 is out! See what's new in the release blog

DLL dependencies

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 2 Posters 1.7k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hello, i'm a newbie in qt programming. So I have tried to make an audio media player.
    The name of the music is passed thanks to the parameter of the project.
    So i associate .mp3 with my .exe.

    But there is a problem, it works only if there are the .dll on the same folder of the music that i want to hear.
    If the music is out of this folder the dependencies fail.
    How can i resolve this problem?
    Thanks for your futur responses.

    ps: sorry for my english i'm french.

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

      Hi and welcome to devnet,

      Did you properly deploy your application like described in this "fine wiki entry":http://qt-project.org/wiki/Deploy_an_Application_on_Windows ?

      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
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        Hum, for the deployement yes I have do what is written.
        I have got one folder MyApplication which got MyApp.exe and all the necessaries .dll.
        I have also associated my music with MyApp.exe.
        When i run a music it works just if the music is in the MyApplication folder.

        I wonder if it is a problem of PATH or not.

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

          How do you retrieve the path to your music files ?

          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
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            I retrieve the path of the music file thanks to : QCoreApplication::arguments().at(1)

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

              Did you check what path you get in that argument ?

              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

              • Login

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