hwanud
18th August 2013, 03:56
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.
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.