Results 1 to 1 of 1

Thread: Phonon dependencies size

  1. #1
    Join Date
    Jan 2013
    Location
    CZ
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Phonon dependencies size

    I created an app and decided to have some background music for it. To that end I utilized phonon to simpyl load and play one mp3. The final executable with all the resources is around 20MB - that is, using dynamic linking. So far I havent figured out how to do a static linking build so I just move all the necessary dll's around with the executable when testing on other PC's. But here's the thing - since I coded in the phonon part, the app requires the "*d" versions of Qt's dlls, e.g. those that are much bigger. Instead of having around 25MBs of dlls, I would now have to carry around hundreds of MBs, all to use with a single small .exe.

    What's the deal with that? Because of around ten lines of code I now have to use hundreds of MB's worth of libraries Is there a more efficient way of playing mp3s via Qt?

    And when I get around to finding a static linking tutorial and deploying the app, how big can I expect the executable to be? If the size goes up more then a few MBs, I guess the music isn't worth it.

    EDIT: Ok, I am an idiot - didnt't realize I was building debug version this time and those dlls are for debugging. I'll leave the OP here for shame :-)

    However, I have a phonon-related problem - I transfer the app to a different machine (Win XP) and while it starts and works just fine - no audio plays, while for me on Win 7 it does. And since I get no error messages about missing libraries or other errors, I dont know where to start looking for problems.
    Last edited by Borghal; 30th April 2013 at 21:16.

Similar Threads

  1. How to get Phonon::VideoPlayer video size
    By Seishin in forum Qt Programming
    Replies: 2
    Last Post: 20th July 2012, 21:09
  2. around circular dependencies
    By tonnot in forum General Programming
    Replies: 6
    Last Post: 18th February 2011, 12:20
  3. Build without any dependencies
    By Dato0011 in forum Qt Tools
    Replies: 5
    Last Post: 22nd December 2009, 15:21
  4. application dependencies
    By yagabey in forum Qt Programming
    Replies: 1
    Last Post: 18th March 2009, 07:33
  5. What are the dependencies that a .exe file needs??
    By srohit24 in forum Installation and Deployment
    Replies: 5
    Last Post: 5th March 2009, 17:25

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.