Page 1 of 4 123 ... LastLast
Results 1 to 20 of 70

Thread: Phonon module question -- help needed

  1. #1
    Join Date
    Oct 2006
    Posts
    75
    Thanks
    10
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Phonon module question -- help needed

    hi ,
    this is almost the repeat post of phonon module question. how can i get phonon enabled and use it in applications with qt-4.5.1-mingw-windows.exe version? is it compulsory to compile sources of qt to active phonon? thanks in advance. bye

  2. #2
    Join Date
    Apr 2008
    Posts
    104
    Thanks
    8
    Thanked 7 Times in 7 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Phonon module question -- help needed

    Please read this: http://wiki.qtcentre.org/index.php?t...ws_using_MinGW
    But, you also need a GCC-adapted dvdmedia.h file from the Strawberry Perl (strawberryperl.com) package. Copy this dvdmedia.h into the include dir of MinGW, and recompile Phonon and backend.
    Another way - you can recomile the whole Qt with Visual Studio C++.

  3. #3
    Join Date
    May 2009
    Posts
    147
    Thanks
    11
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Phonon module question -- help needed

    Another way - you can recomile the whole Qt with Visual Studio C++.
    can I then compile my qt progs with mingw?

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Phonon module question -- help needed

    No, you need to stick with one compiler.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    May 2009
    Posts
    147
    Thanks
    11
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Phonon module question -- help needed

    I prefer mingw. Its simple and my way. its free software. universal. cross platform (a thing qt is/claims to be). I am a free software lover (hence the username FS Lover). I like independence too.
    I will try to compile phonon with mingw.
    but I haven't high speed internet connection in home. tommorow I will download kdewin32 package at work.
    but I have a question in advance. that wiki article says 'Copy the file comdef.h from kdewin32/include/mingw into kdewin32/include/directx'.
    so where is the kdewin32/include/directx on my system? should I install anything before?

  6. #6
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Phonon module question -- help needed

    Quote Originally Posted by FS Lover View Post
    so where is the kdewin32/include/directx on my system? should I install anything before?
    It's inside the kdewin package you first have to download.

  7. #7
    Join Date
    May 2009
    Posts
    147
    Thanks
    11
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default

    this link: http://websvn.kde.org/trunk/kdesupport/kdewin32/
    does not work and I couldn't find any other download link.
    can anybody help me please?

    another question: why is dvdmedia.h from strawberry perl needed? its not mentioned in the wiki article.

    I found http://windows.kde.org/download.php. is that ok?
    additionally it seems that overal download will be huge (see http://techbase.kde.org/Projects/KDE...s_and_contents). I have a 256Kb connection.
    is there any way for downloading only those components necessary for compiling phonon?

    apparently kdewin32 installer has a package selection for download, but I don't know which packages should I choose. also there is a binary, a devel, and a src selection option for each package; which ones should I select?

    oh no, it has too many options!! too many packages. too many bytes. it huge!
    please help me! help...
    Last edited by wysota; 5th July 2009 at 08:30.

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Phonon module question -- help needed

    Please edit your posts instead of replying to your own posts.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  9. #9
    Join Date
    May 2009
    Posts
    147
    Thanks
    11
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Phonon module question -- help needed

    I am downloding. I chose only some packages that I thought are relevant to phonon. some have clear names (phonon*).
    microsoft directx sdk alone is about 452MB and its download is in progress now.
    in the installer program there were some options such as mingw or msvc type that I chose mingw version. I think these can cause mistakes buy less powerful users.
    they don't certainly know which type and packages should they download.
    I think a step by step tutorial with exactly those minimal resources required for compiling phonon is a must.

    BTW I think I found another repository for kdewin32 files by looking at some ini file of the kdewin32 installer program, so I insert that link here so that if someone some day find this topic probably there is some useful info for him:
    ftp://gd.tuwien.ac.at/kde/stable/4.2.3/win32/

  10. #10
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Phonon module question -- help needed

    Quote Originally Posted by FS Lover View Post
    this link: http://websvn.kde.org/trunk/kdesupport/kdewin32/
    does not work and I couldn't find any other download link.
    can anybody help me please?
    It's http://websvn.kde.org/trunk/kdesupport/kdewin/

  11. #11
    Join Date
    May 2009
    Posts
    147
    Thanks
    11
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Phonon module question -- help needed

    now I have these files downloaded:
    Qt Code:
    1. 29,114 config.txt
    2. 462,460,792 dxsdk_apr2007.exe
    3. 475,844 OggDS0995.exe
    4. 54 expat-2.0.1-bin.zip.md5
    5. 66,829 expat-2.0.1-bin.zip
    6. 65 phonon-mingw-4.3.0-bin.tar.bz2.md5
    7. 384,131 phonon-mingw-4.3.0-bin.tar.bz2
    8. 65 phonon-mingw-4.3.0-lib.tar.bz2.md5
    9. 147,308 phonon-mingw-4.3.0-lib.tar.bz2
    10. 65 phonon-mingw-4.3.0-src.tar.bz2.md5
    11. 566,452 phonon-mingw-4.3.0-src.tar.bz2
    12. 65 dbus-mingw-1.2.4-1-bin.tar.bz2.md5
    13. 1,170,713 dbus-mingw-1.2.4-1-bin.tar.bz2
    14. 63 qt-mingw-4.4.3-3-bin.tar.bz2.md5
    15. 16,037,341 qt-mingw-4.4.3-3-bin.tar.bz2
    16. 60 runtime-mingw-1.0-bin.zip.md5
    17. 3,604 runtime-mingw-1.0-bin.zip
    18. 827 kdewin-installer.log
    To copy to clipboard, switch view to plain text mode 
    are they sufficient?
    any help please?
    have I to install with kde installer first?

  12. #12
    Join Date
    May 2009
    Posts
    147
    Thanks
    11
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Phonon module question -- help needed

    wiki: Make sure your Qt is configured with -phonon -phonon-backend.
    how?

  13. #13
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Phonon module question -- help needed

    Quote Originally Posted by FS Lover View Post
    wiki: Make sure your Qt is configured with -phonon -phonon-backend.
    how?
    Pass those switches to configure
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  14. #14
    Join Date
    May 2009
    Posts
    147
    Thanks
    11
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Phonon module question -- help needed

    I am ready to re-compile qt.
    but I want to know before if MS DirectX SDK or any other windows related parts should be installed on my system or not before compiling qt.
    I have windows XP SP2.

  15. #15
    Join Date
    May 2009
    Posts
    147
    Thanks
    11
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Phonon module question -- help needed

    should I issue the build commands in the src dir?

  16. #16
    Join Date
    Jul 2009
    Posts
    22
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Maemo/MeeGo

    Default Re: Phonon module question -- help needed

    I am also looking for method to use phonon on windows.. I found that phonon is present in the kdewin32 project. Is it possible to use the precompiled binary from the project?

    http://sourceforge.net/projects/kde-windows/files/

  17. #17
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Phonon module question -- help needed

    Quote Originally Posted by FS Lover View Post
    should I issue the build commands in the src dir?
    Follow the contents of the INSTALL file.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  18. #18
    Join Date
    Jul 2009
    Posts
    22
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Maemo/MeeGo

    Default Re: Phonon module question -- help needed

    I am quite confused about the instruction now..

    1. In fact, what is phonond.dll ? I think the correct name for DS9 background is phonon_ds9.dll , and the dll of phonon is phonond.dll . I have searched "phonond" in the source tree of qt 4.5.2 , but could only found the target of phonon_ds9

    2. Do I need to build kdewin32?

    3. Do I need to recompile the whole QT 4.5.2? Or I need to build the DS9 backend only?

  19. #19
    Join Date
    May 2009
    Posts
    147
    Thanks
    11
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Phonon module question -- help needed

    Quote Originally Posted by benlau View Post
    Is it possible to use the precompiled binary from the project?
    I tried this already but I couldn't get it to work.

    it seems that there should exist some more easy and reliable way for solving all of this mess:
    Thank you for your mail. You can try the following patch, which still hasn't been accepted by MinGW, it should solve the problem:
    http://sourceforge.net/tracker/?func...35&atid=302435

    Regards,

    Martin

    --

    Martin Pejcoch, Support Engineer
    Qt Software, Nokia, Oslo, Norway
    but the patch was not completely successful; it had one case of reject.
    I tried to apply the rejected section manually (I found those C syntax errors in a struct within another .h file);
    I started re-compiling qt; that took several hours but eventually I got webkit compilation errors, phonon plugin/backend was not created (although a phonon.dll was created), and programs (qt examples) while compiled and executed without errors but couldn't playback any file.

    now, I decided to download the (probably whole) kdewin and try another way according to the the wiki article.

  20. #20
    Join Date
    May 2009
    Posts
    147
    Thanks
    11
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Phonon module question -- help needed

    after about 6 hours of compiling, I got the same results as with the mingw patch method.
    although I downloaded only those parts of the kdewin project's source tree that seemed to be necessary (mingw and directx includes).
    I still have some ideas to try (downloading whole kdewin doesn't seem to be necessary, so it would be on the end of the list).

    there are several possible combination of methods and configurations to try.

    it seems that there is a problem with compiling webkit. can anybody tell me how to disable (re)compiling of webkit?

    I am now compiling again.
    this time with a combination of methods.
    I patched mingw headers and added extra .h files.
    I replaced qt's phonon sources with those in the kdewin project.
    I acted according to the wiki article too.
    finally I specified the release target to the mingw32-make command (probably it will work and will be much faster for my tests since no debug dlls are generated).

    any help/advice and ideas are very welcome.

    somebody some day should address this problem.
    qt is amongst the few free/open source alternative gui/application frameworks on windows for us. personally I hate dependence on tools like MS VC (I think it is not free software too that is even worse).
    and it is very unfortunate that phonon support is lacked with mingw version of qt while it has no problem with MS VC or on other platforms. qt claims to be cross platform and it is one of the reasons we chose it. but now its in doubt with this ugly situation.
    It should not be so hard and complicated to solve since all involved parts are free/open source software that are available for windows too.

Similar Threads

  1. Replies: 2
    Last Post: 24th April 2009, 13:13
  2. Playing a stream using phonon module
    By ram136682 in forum Qt for Embedded and Mobile
    Replies: 4
    Last Post: 28th August 2008, 15:42
  3. Replies: 0
    Last Post: 5th August 2008, 11:54
  4. no phonon module :(
    By losiem in forum Installation and Deployment
    Replies: 2
    Last Post: 8th July 2008, 13:31

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.