Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
which qmake
which: no qmake in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin)
Code:
qmake -v
qmake: command not found
Executing below command finds qmake
Code:
cd /; find -iname qmake
/usr/i686-w64-mingw32/bin/qt5/qmake
/usr/x86_64-w64-mingw32/bin/qt5/qmake
/usr/lib64/qt4/bin/qmake
/usr/lib/qt4/bin/qmake
So as it can be seen qmake already installed so now how to get system or building package recognize.
I also followed tutorial here Qt 5.5but same issue
You've got qmake for QT4 already installed and you've installed mingw32-qt5-qmake.x86_64 mingw64-qt5-qmake.x86_64 - which is for QT5.
It's not finding it because if you look at your $PATH, there is no /usr/lib/qt4/bin/ folder in it. That's why it cannot find the qmake you do have installed.
You've got qmake for QT4 already installed and you've installed mingw32-qt5-qmake.x86_64 mingw64-qt5-qmake.x86_64 - which is for QT5.
It's not finding it because if you look at your $PATH, there is no /usr/lib/qt4/bin/ folder in it. That's why it cannot find the qmake you do have installed.
Yeah i know its not in the usual directory thats why i asked how to make system recognize.
dnf is auto installing in mentioned directory so thats what i asked in question how to link qmake to default directory or respective building package to look in directories installed.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by cuit100
Yeah i know its not in the usual directory thats why i asked how to make system recognize.
dnf is auto installing in mentioned directory so thats what i asked in question how to link qmake to default directory or respective building package to look in directories installed.
Well, if you know that, why not add it to your $PATH ?
Or create a symlink in one of the 'bin' folders?
You also need qmake for QT5, if you're trying to build a QT5 app. Try that first, if you're building a QT5 app.
Well, if you know that, why not add it to your $PATH ?
Or create a symlink in one of the 'bin' folders?
You also need qmake for QT5, if you're trying to build a QT5 app. Try that first, if you're building a QT5 app.
i was creating symlink but was still not working but later figured out just needed to rename file to qmake.
Quote:
Originally Posted by John VV
also unless you are building for a MICROSOFT windows os you do not need the MinGW files
these make Windows *.exe programs and Microsoft *.dll libraries
also it might be a very good idea and to BACK UP a few steps
what is it you need to do ?
what do you need to build ?
and for what version of QT ?
-- qt4 or 5 ?
i didnt knew that fact about mingw.
Anyways i am trying to build qbittorrent 4.0.4 which require qmake>=5.5.1.
Problem now is dnf qt4 package install qmake v3.0 and dnf qt5 install qmake v3.1. Even installed latest qt5 v5.10 that also has qmake v3.1 only.
Now i m wondering from where will i get qmake v5.5.1 when the latest qt5 has qmake v3.1 only or if qbittorrent made mistake in package.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.