Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [Solved] Installing Qt stable from source in Linux with another version on the system
Qt 6.11 is out! See what's new in the release blog

[Solved] Installing Qt stable from source in Linux with another version on the system

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 1 Posters 1.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    swivelhead
    wrote on last edited by
    #1

    I want to try out building and using a build from source without deleting the current version of Qt/qmake that I installed via apt/Synaptic.

    I have built it and ran make/make install and it is located in /usr/local/Trolltech/Qt-4.8.5/...

    Now, if I type:
    $ qmake --version

    I get the old version, not the new one.

    I have added the /usr/local/Trolltech/Qt-4.8.5/bin/ folder to the path.

    I have a couple of questions:

    1. How do I differentiate between the two versions of qmake? Via the -spec flag?
    2. How do I keep from really screwing up my KDE apps while testing out a version of Qt that's newer than what they were built with?

    Thanks!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      swivelhead
      wrote on last edited by
      #2

      I added a bash script to the /usr/local/bin, which is also in my $PATH environment variable.

      Here's the script:

      @
      $ vim /usr/local/bin/qmake-qt485
      #!/bin/bash
      export QMAKEROOT=/usr/local/Trolltech/Qt-4.8.5
      QMAKEROOT/bin/qmake $@@

      To use it from wherever I have a Qt .pro file configured (and my source code):

      @
      $ qmake-qt485
      $ make
      @

      This might not be the best or intended way, but it was the simplest.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved