Results 1 to 20 of 29

Thread: How to install phonon on qtx11-4.5.2 in linux..?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: How to install phonon on qtx11-4.5.2 in linux..?

    You should have NOT run "qmake -project". The example already had a properly working .pro file. Restore the original .pro file from the tarball and leave out the "qmake -project" step this time.
    J-P Nurmi

  2. #2
    Join Date
    Jul 2009
    Posts
    22
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: How to install phonon on qtx11-4.5.2 in linux..?

    How to restore the original .pro file from the tarball?

    How to run phonon on Qt examples?
    Last edited by balajir; 28th July 2009 at 11:12.

  3. #3
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to install phonon on qtx11-4.5.2 in linux..?

    Quote Originally Posted by balajir View Post
    How to restore the original .pro file from the tarball?
    Or you just add
    Qt += phonon
    in your .pro file.

    Quote Originally Posted by balajir View Post
    How to run phonon on Qt examples?
    run ??

    If you want to add phonon module, just add above line.

  4. #4
    Join Date
    Jul 2009
    Posts
    22
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: How to install phonon on qtx11-4.5.2 in linux..?

    Even basic examples are not running properly(not phonon)

    .pro is already created in QT examples..

    I just did

    qmake application.pro
    qmake
    ./application

    But when i give ./application to run, it throws an error that

    "Cannot connect to the X server"

    Kindly help me..

    Balaji.S.R

  5. #5
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to install phonon on qtx11-4.5.2 in linux..?

    Why 2 times, you are calling "qmake" ?
    "qmake" never builds your project.
    Would have called "make".
    Please, refer QtAssistant, I think you require some basics.

  6. #6
    Join Date
    Jul 2009
    Posts
    22
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: How to install phonon on qtx11-4.5.2 in linux..?

    Ya i know that..

    I want you to see this once

    http://linuxhelp.blogspot.com/2006/0...ojects-on.html

    By doing qmake name.pro will create a platform specific Makefile.. This Make file is not in my directory.. Just cpp,.h and .pro files alone in directory so I gave qmake name.pro to create a Makefile..

    Are you saying because of giving qmake i am getting the previous errors?

    Thanks,
    Balaji.S.R

  7. #7
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: How to install phonon on qtx11-4.5.2 in linux..?

    Quote Originally Posted by balajir View Post
    "Cannot connect to the X server"
    This means you are not using qmake from Qt/X11 4.5.2 as you claim, but from Qt for Embedded Linux. What does "qmake -v" output?
    J-P Nurmi

  8. #8
    Join Date
    Jul 2009
    Posts
    22
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: How to install phonon on qtx11-4.5.2 in linux..?

    Quote Originally Posted by jpn View Post
    This means you are not using qmake from Qt/X11 4.5.2 as you claim, but from Qt for Embedded Linux. What does "qmake -v" output?
    Sorry I dont understand...

    Kindly tell me clearly what i should do to solve the error and run a phonon example..

    Also whats the exact problem..?

    Balaji.S.R
    Last edited by balajir; 28th July 2009 at 12:34.

  9. #9
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: How to install phonon on qtx11-4.5.2 in linux..?

    Please learn to use your computer first. Maybe then come back to programming.
    J-P Nurmi

  10. #10
    Join Date
    Jul 2009
    Posts
    22
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: How to install phonon on qtx11-4.5.2 in linux..?

    Quote Originally Posted by jpn View Post
    Please learn to use your computer first. Maybe then come back to programming.
    I know to use my Computer.. I myself find a solution for my problem......

    Anyways Thanks for your advice and help...

  11. #11
    Join Date
    Jul 2009
    Posts
    22
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: How to install phonon on qtx11-4.5.2 in linux..?

    qmake -v output is


    QMake version 2.01a
    Using Qt version 4.5.2 in /usr/local/Trolltech/Qt-4.5.2/lib

  12. #12
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: How to install phonon on qtx11-4.5.2 in linux..?

    Oops, I somehow misread "Cannot connect to the X server" as "Cannot connect to the QWS server". Ok, so do you have an X server running? Anyhow this problem is not related to Qt, it's related to your environment.
    J-P Nurmi

  13. #13
    Join Date
    Jul 2009
    Posts
    22
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: How to install phonon on qtx11-4.5.2 in linux..?

    [QUOTE=jpn;111377]do you have an X server running? QUOTE]

    I checked whether Xserer is there...

    Qt Code:
    1. [root@localhost /]# locate Xserver
    2. /etc/X11/xdm/Xservers
    3. /etc/kde/kdm/Xservers
    4. /usr/share/man/man1/Xserver.1.gz
    5. [root@localhost /]#
    To copy to clipboard, switch view to plain text mode 

    and when I tried to startX

    Qt Code:
    1. [root@localhost /]# startx
    2. xauth: creating new authority file /root/.serverauth.14699
    3. xauth: creating new authority file /root/.Xauthority
    4. xauth: creating new authority file /root/.Xauthority
    5.  
    6.  
    7. Fatal server error:
    8. Server is already active for display 0
    9. If this server is no longer running, remove /tmp/.X0-lock
    10. and start again.
    11.  
    12. Invalid MIT-MAGIC-COOKIE-1 keygiving up.
    13. xinit: Resource temporarily unavailable (errno 11): unable to connect to X server
    14. xinit: No such process (errno 3): Server error.
    15. [root@localhost /]#
    To copy to clipboard, switch view to plain text mode 

    If this place is not to ask these questions then Could you please tell me where I can ask...

    Regards,
    Balaji.S.R

  14. #14
    Join Date
    Nov 2008
    Posts
    16
    Thanks
    2
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: How to install phonon on qtx11-4.5.2 in linux..?

    I assume you have figured out by now, but I think you need to run

    ./application -qws

Similar Threads

  1. Replies: 4
    Last Post: 1st April 2009, 16:28
  2. Replies: 3
    Last Post: 13th December 2008, 10:33
  3. How to install Qt/Qtopia on embeded linux?
    By atil in forum Qt for Embedded and Mobile
    Replies: 7
    Last Post: 13th December 2007, 22:03
  4. Error install at linux red hat
    By Colx007 in forum Installation and Deployment
    Replies: 2
    Last Post: 8th October 2007, 16:47
  5. Cannot Install KDEdevel packages on linux
    By wirajr in forum KDE Forum
    Replies: 12
    Last Post: 5th February 2006, 21:01

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.