Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to export QT path in 5.9.1 the old one is export QTDIR=/usr/lib/qt2?
johng2017 last edited by
I downlaod QT and insalled in my home directory:
john@john-GS63VR-6RF ~ $ ls /home/john/Qt/5.9.1/
I try to complier quiteinsanegimpplugin-0.3.
and try mutiple way, it always fail:
checking for Qt... configure: error: Qt (>= Qt 2.2.2) (headers and libraries) not found. Please check your installation!
I also try:
./configure --enable-mt --with-qt-includes=/home/john/Qt/5.9.1/gcc_64/include --with-qt-libraries=/home/john/Qt/5.9.1/gcc_64/lib
In the install Notes:
-Make sure that QTDIR is set correctly. If it isn't set, then run
:~>export QTDIR=path_to_qt, e.g.
-If you want to use Qt version 3.x, then simply set QTDIR accordingly.
-If you want to link against a Qt version with thread support,use the
Please help me out.
Hi and welcome to devnet,
You can do it like suggested in the doc using
exporthowever you have to first realise that this plugin was written when Qt was at version two so there has been tree major releases in between. Qt 3 to Qt 4 required some ports so even if your Qt version was detected, you may have to do some porting.
pesr0412 last edited by
I know this has been here for a year, but I came to run into the same situation, however, since I am not an experienced Ubuntu (Linux) I have no idea what does the term porting refers to? Is there a way to make that plugin to install? if there is please let me know, I only installed this qt thing for the specific plugin.
@pesr0412 Hi and welcome to devnet,
In this case porting means that you might have to rewrite parts of the code to accommodate the fact that there was several major releases since it was first written so the widget used might have changed name.
I've had to modify (port) code between minor versions like Qt 5.5 to 5.6, sometimes a lot of it like when webkit was dropped. If you are porting from Qt 2, that is like 20 years ago old. It will be a lot of work and you'll need to know Qt decently well.
If you are just having an issue with mixing Qt versions though you can fix that by setting QTDIR (either in your bashrc or everytime in your shell) and potentially having to modify PATH to not point to the old Qt.