Results 1 to 7 of 7

Thread: qmake persistent property (environment variables) on Linux systems

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2013
    Posts
    4
    Thanks
    3
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default qmake persistent property (environment variables) on Linux systems

    Hello.

    I'm trying to set the qmake persistent properties which is also called environment variables in order to use the older version of qt in qt creator.

    Here is the relevant packages I have:
    - Qt Creator 2.4.1 (Based on Qt 4.8.0 (32 bit))
    - Qt 3.4.8b
    - Qt 4.8.1

    By default, Qt Creator uses Qt 4.8.1, but I need to change this to the older version of Qt (3.4.8b).
    So I go to "Tools -> Options -> Build & Run -> Qt Versions" tab, and added qmake that is linked to the qmake-qt3.
    (My system, Ubuntu 12.04, uses update-alternatives to maintain different versions of packages. So qmake is linked to the qmake-qt3.)

    Anyway, that causes an error such as "Could not determine the path to the binaries of the Qt installation, maybe the qmake path is wrong?".
    I googled the error message and found that this is because my qmake does not have its environment variables.
    When I typed the command, '$ qmake -query', the result shows nothing while '$ qmake-qt4 -query' shows the below:

    QT_INSTALL_PREFIX:/usr
    QT_INSTALL_DATA:/usr/share/qt4
    QT_INSTALL_DOCS:/usr/share/qt4/doc
    QT_INSTALL_HEADERS:/usr/include/qt4
    QT_INSTALL_LIBS:/usr/lib/i386-linux-gnu
    QT_INSTALL_BINS:/usr/bin
    QT_INSTALL_PLUGINS:/usr/lib/i386-linux-gnu/qt4/plugins
    QT_INSTALL_IMPORTS:/usr/lib/qt4/imports
    QT_INSTALL_TRANSLATIONS:/usr/share/qt4/translations
    QT_INSTALL_CONFIGURATION:/etc/xdg
    QT_INSTALL_EXAMPLES:/usr/lib/qt4/examples
    QT_INSTALL_DEMOS:/usr/lib/qt4/demos
    QMAKE_MKSPECS:/usr/share/qt4/mkspecs
    QMAKE_VERSION:2.01a
    QT_VERSION:4.8.1

    Based on this, I tried to set the variables using 'qmake -set' command.
    But... I made some typo... and resulted in adding wrong vaiables. My qmake (= qmake-qt3) persistent properties have the variables the below:

    QT_INSTALL:
    QT_INSTALL_PREFIX:
    QT_NINSTALL_PREFIX:


    I set the values as NULL using the command such as ' $ qmake -set QT_INSTALL "" '.
    But I don't know how to remove those.

    I tried to remove the package, qt3-dev-tools, from my system and install it agian, but it did not helped me.
    I saw some postings about the qmake persistent properties, but I couldn't find any helpful articles till now.

    So could anyone help me to remove these variables and start it over?

    * Oh. I forgot telling that I installed my Qt3 and Qt4 via Ubuntu apt-get command.
    Last edited by hwanud; 18th August 2013 at 04:53.

Similar Threads

  1. Environment variables and qmake
    By Zingam in forum Qt Tools
    Replies: 4
    Last Post: 27th July 2012, 03:22
  2. Replies: 1
    Last Post: 25th February 2011, 15:08
  3. Replies: 0
    Last Post: 24th November 2010, 11:11
  4. Environment variables in project .includes?
    By Karmaflute in forum Qt Tools
    Replies: 4
    Last Post: 26th November 2009, 00:59
  5. Accessing Environment Variables
    By mhoover in forum Qt Programming
    Replies: 6
    Last Post: 21st September 2006, 15:05

Tags for this Thread

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.