Switching from QT3 to QT4 in Linux



  • 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



  • 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 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...


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.