Qt 6.4.2 installed but no starting executable
-
wrote on 13 Mar 2023, 11:44 last edited by
Hi Team,
Looks like I am destined to use QT even after many problems are there. :)
Recently, I posted this here
https://forum.qt.io/topic/143509/can-not-install-qt-6-4-2And when I could not get an answer to that, I started to install Qt from the sources. Exactly like this:
https://doc.qt.io/qt-6/macos-building.html
Strange that even after following all the steps, I do not see qt or qtcreator in the /usr/local/Qt-6.4.2/bin directory. These are the contents of /usr/local/Qt-6.4.2/bin:
I am wondering how to even start qt now? :) I tried qt, qt-creator but to not avail.
Thank a lot in advance.
-
Hi Team,
Looks like I am destined to use QT even after many problems are there. :)
Recently, I posted this here
https://forum.qt.io/topic/143509/can-not-install-qt-6-4-2And when I could not get an answer to that, I started to install Qt from the sources. Exactly like this:
https://doc.qt.io/qt-6/macos-building.html
Strange that even after following all the steps, I do not see qt or qtcreator in the /usr/local/Qt-6.4.2/bin directory. These are the contents of /usr/local/Qt-6.4.2/bin:
I am wondering how to even start qt now? :) I tried qt, qt-creator but to not avail.
Thank a lot in advance.
@bhargavah said in Qt 6.4.2 installed but no starting executable:
I started to install Qt from the sources
Why do you want to build Qt from sources?
-
@bhargavah said in Qt 6.4.2 installed but no starting executable:
I started to install Qt from the sources
Why do you want to build Qt from sources?
-
@jsulm Hey. Because I could not install from online installer. Link to my original question is also pinned in the question.
wrote on 13 Mar 2023, 13:14 last edited by JonB@bhargavah
I don't know about getting your original question to work, doubtless it's doable. Choosing to build Qt from source is a non-trivial exercise, you will probably end up with even more problems that way. Get the download working instead. -
@jsulm Hey. Because I could not install from online installer. Link to my original question is also pinned in the question.
@bhargavah In that other thread from you you got some suggestions (changing mirror): did you try them? Building Qt just because the installer can't download from the mirror is not the right solution (simply because building Qt is far from trivial).
-
@bhargavah
I don't know about getting your original question to work, doubtless it's doable. Choosing to build Qt from source is a non-trivial exercise, you will probably end up with even more problems that way. Get the download working instead.wrote on 13 Mar 2023, 15:18 last edited by@JonB He He. I see. That is fine. Nevermind. I think we are close on the new issue. If you see the earlier screenshot, you would get that most of the things are there. In fact, I see that qt is already installed through this below screenshot.
I just need to invoke qt somehow.
-
@JonB He He. I see. That is fine. Nevermind. I think we are close on the new issue. If you see the earlier screenshot, you would get that most of the things are there. In fact, I see that qt is already installed through this below screenshot.
I just need to invoke qt somehow.
wrote on 13 Mar 2023, 15:25 last edited by JoeCFD@bhargavah I guess: add /usr/local/Qt-6.4.2/bin to $PATH at beginning of $PATH( in front of all other paths)
/usr/local/Qt-6.4.2/bin is not in the PATH currently./usr/local is not a great place. The default path of Qt installation is /opt
-
@bhargavah In that other thread from you you got some suggestions (changing mirror): did you try them? Building Qt just because the installer can't download from the mirror is not the right solution (simply because building Qt is far from trivial).
-
@bhargavah I guess: add /usr/local/Qt-6.4.2/bin to $PATH at beginning of $PATH( in front of all other paths)
/usr/local/Qt-6.4.2/bin is not in the PATH currently./usr/local is not a great place. The default path of Qt installation is /opt
-
@JoeCFD Hey. Thanks for the comment. It is there in the path currently actually.
This is
echo $PATH
/usr/local/Qt-%VERSION%/bin:/usr/local/Qt-6.4.2/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/binwrote on 13 Mar 2023, 16:29 last edited by JoeCFD@bhargavah You can add it manually in Qt Creator.
go to Tools->Options->Kits->Qt-Versions and press Add button. Then select /usr/local/Qt-6.4.2/bin/qmakeswitch to Kits tab and click Desktop(default) under Manual. Select Qt version and click Apply button and then OK button to close Options dialog. You are good to go.
-
@bhargavah You can add it manually in Qt Creator.
go to Tools->Options->Kits->Qt-Versions and press Add button. Then select /usr/local/Qt-6.4.2/bin/qmakeswitch to Kits tab and click Desktop(default) under Manual. Select Qt version and click Apply button and then OK button to close Options dialog. You are good to go.
-
@bhargavah said in Qt 6.4.2 installed but no starting executable:
How to even open Qt-creator? What command should I do?
Well, did you build QtCreator? Since you desided to build Qt by yourself instead of simply using the installer you will either need to build QtCreator or download and install pre-built version...
5/12