[Qt-interest] problem with phonon/musicplayer example

Avishek_Sharma Avishek_Sharma at satyam.com
Wed Jan 21 13:54:10 CET 2009


Hi ,
Thanks for the reply.I'll give it a shot tomorrow(office hours' over for today:) and hope that it will indeed work without any problems.One question though,how do I run Qt configure.Am new to Qt and linux,never used it before.
Do,I go to the directory where Qt is located i.e  /usr/local/Trolltech/Qt-4.4.3 and then type ./configure at the command prompt?
Please give me some idea.
Thanks once again.
regards,
Avishek
________________________________________
From: qt-interest-bounces at trolltech.com [qt-interest-bounces at trolltech.com] On Behalf Of Luc Devallonné [luc.devallonne at mnemis.com]
Sent: Wednesday, January 21, 2009 5:51 PM
To: qt-interest at trolltech.com
Subject: Re: [Qt-interest] problem with phonon/musicplayer example

Hello,

It is most likely that the phonon module was not build as it depends
on GStreamer backend.
Try to install GStreamer and GSreamer devel package and then run QT
configure again. Make sure that configure list phonon in the list of
build modules. If it does, then recompile everything and you should be
fine.

Luc

On Wed, Jan 21, 2009 at 12:59 PM, Avishek_Sharma
<Avishek_Sharma at satyam.com> wrote:
> Hi,
> I was trying to run the 'musicplayer' example which uses phonon framework.I got a long list of errors(pasted below).I guess either phonon itself isn't present(though it's supposed to be bundled with Qt 4.4 and I am using Qt 4.4.3 on Linux (fedora)) or maybe there's some other problem which you could help me in solving.
> I didn't make any changes in the original code.
>
> My gcc version is 4.1.2 20070925 (Red Hat 4.1.2-33). I guess it's not a compiler problem .
>
> This is what I get when I traverse to /usr/local/Trolltech/Qt-4.4.3/include
> [root at localhost include]# ls
> Qt QtAssistant QtDesigner QtHelp QtOpenGL QtSql QtTest QtWebKit QtXmlPatterns
> Qt3Support QtCore QtGui QtNetwork QtScript QtSvg QtUiTools QtXml.
> I can't see phonon anywhere in the list.
>
> Please advice on what to do?I am new to both Qt and Linux so please don't mind if my questions sound odd or too simple
>
> Thanks for any help.
> **********************************errors********** **************************
> In file included from main.cpp:22:
> mainwindow.h:25:37: error: phonon/phononnamespace.h: No such file or directory
> mainwindow.h:26:33: error: phonon/audiooutput.h: No such file or directory
> mainwindow.h:27:32: error: phonon/seekslider.h: No such file or directory
> mainwindow.h:28:33: error: phonon/mediaobject.h: No such file or directory
> mainwindow.h:29:34: error: phonon/volumeslider.h: No such file or directory
> mainwindow.h:30:41: error: phonon/backendcapabilities.h: No such file or directory
> mainwindow.h:52: error: 'Phonon' has not been declared
> mainwindow.h:52: error: expected ',' or '...' before 'newState'
> mainwindow.h:54: error: expected ',' or '...' before '::' token
> mainwindow.h:54: error: ISO C++ forbids declaration of 'Phonon' with no type
> mainwindow.h:55: error: 'Phonon' has not been declared
> mainwindow.h:55: error: expected ',' or '...' before 'newState'
> mainwindow.h:64: error: 'Phonon' has not been declared
> mainwindow.h:64: error: ISO C++ forbids declaration of 'SeekSlider' with no type
> mainwindow.h:64: error: expected ';' before '*' token
> mainwindow.h:65: error: 'Phonon' has not been declared
> mainwindow.h:65: error: ISO C++ forbids declaration of 'MediaObject' with no type
> mainwindow.h:65: error: expected ';' before '*' token
> mainwindow.h:66: error: 'Phonon' has not been declared
> mainwindow.h:66: error: ISO C++ forbids declaration of 'MediaObject' with no type
> mainwindow.h:66: error: expected ';' before '*' token
> mainwindow.h:67: error: 'Phonon' has not been declared
> mainwindow.h:67: error: ISO C++ forbids declaration of 'AudioOutput' with no type
> mainwindow.h:67: error: expected ';' before '*' token
> mainwindow.h:68: error: 'Phonon' has not been declared
> mainwindow.h:68: error: ISO C++ forbids declaration of 'VolumeSlider' with no type
> mainwindow.h:68: error: expected ';' before '*' token
> mainwindow.h:69: error: 'Phonon' was not declared in this scope
> mainwindow.h:69: error: template argument 1 is invalid
> make: *** [main.o] Error 1
>
> regards,
> Avishek
>
> DISCLAIMER:
> This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>



--
Luc Devallonné
Cell: +41 78 751 32 15
Skype: luc.devallonne

_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest

DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.




More information about the Qt-interest-old mailing list