Results 1 to 2 of 2

Thread: How to switch Qt4 version

  1. #1
    Join Date
    Apr 2007
    Location
    Sunny Darwin, NT Australia
    Posts
    186
    Thanks
    29
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question How to switch Qt4 version

    Qt3 and Qt4 were installed during installation of my openSuse 10.2.
    There's one version in /usr/lib/Qt3
    and another in /usr/lib/Qt4

    I had to download Qt4.2.3 source code and build it so I could have the SQL plugins for Firebird.
    "qmake install" put Qt4.2.3 in /usr/local/Trolltech/Qt-4.2.3

    I've tested the new installation by changing the program icon in the menu to point to designer in the new path, it works fine, and I have a working database plugin.

    Now there's a qmake is in /usr/bin and another in /usr/bin/X11, AND I now have another one in /usr/local/Trolltech/Qt-4.2.3/bin

    When it comes to compiling my program, the qmake that will get used will be the one in /usr/bin,which is version 4.2.1. Question is, what's the proper method of making the new installation the default ? Should I just copy the new files over the old ones ?

  2. #2
    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: How to switch Qt4 version

    No, the best way is to change the QTDIR env var to the installation you want, and then add $QTDIR/bin to path, at the BEGINNING, because /usr/bin is already there. This way, qmake 4.2.3 will be the "default".

    Ideally, when you compile and install a new Qt version, you should specify the install dirs when configuring ( bin, lib, etc ). For example, the base install dir could have been /opt/qt-4.2.3. This way you don't have all sorts of installations spread all over the system. Uninstalling is easier this way also.

    Regards

  3. The following user says thank you to marcel for this useful post:

    vieraci (2nd May 2007)

Similar Threads

  1. Creating an evaluation version or trial version
    By munna in forum General Discussion
    Replies: 9
    Last Post: 20th June 2015, 02:50
  2. Replies: 15
    Last Post: 21st April 2007, 18:46
  3. GUI version of test runner
    By Intaek Lim in forum Qt Programming
    Replies: 1
    Last Post: 17th April 2007, 11:21
  4. Version control - what to use?
    By TheKedge in forum General Programming
    Replies: 11
    Last Post: 4th March 2007, 09:49
  5. Replies: 6
    Last Post: 10th November 2006, 11:38

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.