Results 1 to 4 of 4

Thread: Installing both qt3 and qt4 on linux ( Fedora Core )

  1. #1
    Join Date
    Sep 2006
    Posts
    339
    Thanks
    15
    Thanked 21 Times in 16 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Installing both qt3 and qt4 on linux ( Fedora Core )

    Hi guys,
    I have qt3 installed on my linux machine by default. I have also installed qt4 on the same machine. Can anyone please write the steps that I should follow to change from qt4 to qt3 or vice versa. I saw the same post but the details are not given.

    Also how do I change the path from Qt4 to Qt3 in Kdevelop C/C++....

    Presently I have qt4 installed at /usr/local/Trolltech/Qt-4.2.3 and Qt3 at /usr/lib/qt-3.3....

  2. #2
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Installing both qt3 and qt4 on linux ( Fedora Core )

    Just call the appropriate qmake executable (so either /usr/local/Trolltech/Qt-4.2.3/bin/qmake or /usr/lib/qt-3.3/bin/qmake) and all is fine. KDevelop (>= 3.4) has an option to switch between Qt3 and Qt4. Make sure it's using the correct qmake.

  3. #3
    Join Date
    Apr 2007
    Location
    Bangalore,India
    Posts
    25
    Thanks
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Installing both qt3 and qt4 on linux ( Fedora Core )

    Hello friends,

    How can I set the Qt path in KDevelop so that it can use either Qt3 or Qt4 for the perticular session...

    I have set the environment variable PATH and QTDIR to Qt3 path but my KDevelop is still using Qt4...
    and when i try to compile my Qt3 programs it gives error...

    is there any options or settings to be done in KDevelop... if so where????

    Thanks,
    Veda

  4. #4
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Installing both qt3 and qt4 on linux ( Fedora Core )

    Hi guys,
    I have qt3 installed on my linux machine by default. I have also installed qt4 on the same machine. Can anyone please write the steps that I should follow to change from qt4 to qt3 or vice versa. I saw the same post but the details are not given.

    Also how do I change the path from Qt4 to Qt3 in Kdevelop C/C++....

    Presently I have qt4 installed at /usr/local/Trolltech/Qt-4.2.3 and Qt3 at /usr/lib/qt-3.3....
    It all depends by the env vars that you set.
    It is better to make a small script( perhaps with a paramter ) that changes the env vars. You should change:
    - $QTDIR
    - $PATH to point to $QTDIR/bin

    Every time you switch, you unset the vars and set them again. You should be careful with the PATH variable, not to break it.

    Regards

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.