I installed qt5.4 from here in Ubuntu 14.04, but when I run:
qmake -v
I always get the old version Qt5.2.1, although I think it is installed here Qt version 5.4.2 in /opt/qt54/lib
. Can anyone tell me how to make sure that Qt5.4.2 is installed properly?
Thanks
QMake version 3.0 Using Qt version 5.4.2 in /opt/qt54/lib
but he is taken into consideration the previous one:Project MESSAGE: Qt version 5.2.1 Project ERROR: Unknown module(s) in QT: quickwidgets
– B.andalous Jun 03 '17 at 15:20whereis qmake
? – Ravexina Jun 03 '17 at 15:31qmake: /usr/bin/qmake /usr/bin/X11/qmake /opt/qt54/bin/qmake
Qt5.4.2 is in/opt/qt54/bin/qmake
. kindly tell me how to make it as a default – B.andalous Jun 03 '17 at 16:56/opt
my suggestion is to create an alias:alias qmake="/opt/qt54/bin/qmake"
you can add this line at the end of~/.bashrc
so it will be available in all your terminals. – Ravexina Jun 03 '17 at 16:57qmake -v
the Qt5.2.1 appears. Any other suggestions please – B.andalous Jun 03 '17 at 17:10/opt/qt54/bin/qmake -v
? – Ravexina Jun 03 '17 at 17:11Using Qt version 5.4.2 in /opt/qt54/lib
but when i compile to install ardupilot it uses Qt5.2.1 how can i change it to Qt5.4.2 – B.andalous Jun 03 '17 at 17:14sudo mv /usr/bin/qmake /usr/bin/qmake-bk
thensudo ln -s /opt/qt54/bin/qmake /usr/bin/qmake
– Ravexina Jun 03 '17 at 17:24default.conf
in/usr/lib/x86_64-linux-gnu/qtchooser
.I just added the path of Qt5.4.2. Thanks – B.andalous Jun 04 '17 at 21:25