How to install qt libraries in qt 4.8.1
-
Hi,
I installed Qt SDK 4.8.1 on my linux mint 13 KDE. The installation went very well but when I try to run a project in qt and write qmake <projectname.pro> on the command line it keeps saying that qmake is not installed. so I downloaded the qt libraries from the website and now I don't know how to install these libraries in my qt. can you please help me with this?
thanks -
Hi,
you only need to install the SDK from http://qt.nokia.com/downloads
for x86 (764 MB) or x64 (767 MB)
and then you have the QtCreator or qmake working.
may be do you need the build-essential?.
Fred
-
no what is it?
-
You need to make sure that qmake (and the other Qt tools) are in your $PATH or use the absolute path to qmake. For example, if you have Qt in /usr/local/qt, then you may have /usr/local/qt/bin/qmake
-
read that
https://help.ubuntu.com/community/CompilingEasyHowTo
may be you install the Qt as root?, and the user can not see the qmake?...
Fred
-
Hi Terence, when I install the Qt no path I need to set. But you are right, may be the path is not set.
Fred
-
You can check what's in your $PATH by typing "echo $PATH"
in your shell, and you can modify it temporarily by typing PATH="$PATH:/usr/local/qt/bin"
Or permanently by adding something similar to this in your ~/.profile
@
if [ -d /usr/loca/qt/bin ]; then
PATH="$PATH:/usr/loca/qt/bin"
fi
@Which tests if /usr/local/qt/bin exists, and if it does then adds it to the end of the PATH variable.
(Obviously changing "/usr/local/qt" to where the Qt SDK is installed.) -
Why don't you check your distribution for the Qt development package? That one should contain qmake pre-built for the Qt library used in your system.