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. Switching from QT3 to QT4 in Linux
Qt 6.11 is out! See what's new in the release blog

Switching from QT3 to QT4 in Linux

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 3.2k 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.
  • J Offline
    J Offline
    JZeeba
    wrote on last edited by
    #1

    Hello guys,
    I'm a new QT user and basic Linux user.
    I just started with the basic "one button" app in QT.
    I have a question regarding QT3 and QT4. I log on to a remote Linux system that has both versions installed (I can see them both under the "Applications" menu).
    When I generate a makefile, I can see it uses QT3
    ...
    INCPATH = -I/usr/lib64/qt-3.3/mkspecs/default -I. -I$(QTDIR)/include
    ...

    But I want to use QT4 functionality, so I was wondering which env variables, or settings I need to change to make the system use QT4.
    I cannot uninstall/reinstall anything because I don't have admin rights on this remote system and system administrator is too busy to be bothered about this, and besides, it comes like this with the default boot image, so if I need to log on to another remote system from the company, I'll have the same problem.

    I appreciate any help with this.

    Thanks!
    Joel

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      You should call the qmake of your Qt 4 installation. It can be that "qmake" is jut an alias for qmake-3 or the Qt 3 bin directory is before Qt 4's in the PATH. In any case, you can call Qt 4's qmake with its full path. Then everything should work without further tweaks.

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • J Offline
        J Offline
        JZeeba
        wrote on last edited by
        #3

        [quote author="Volker" date="1331241652"]You should call the qmake of your Qt 4 installation. It can be that "qmake" is jut an alias for qmake-3 or the Qt 3 bin directory is before Qt 4's in the PATH. In any case, you can call Qt 4's qmake with its full path. Then everything should work without further tweaks.[/quote]

        Ah, that worked like a charm. Thanks!!
        Even if it's installed, somehow qt4 was missing completely in PATH var but I added it now...

        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