install qt6 on ubuntu20.04.06
-
wrote on 2 Mar 2023, 14:25 last edited by Fikrat 3 Feb 2023, 14:26
Hi,
I installed several times qt6 via qt-unified-linux-x64-4.5.1-online.run installer, following this, it is installed in the path of local like ~/Qt.
After this, whenever i open qt creator to create project with qt widget, it provides an error to me about package finding, as it is seen, project can not find qt libraries and packages. Could you please help me to debug
this problem?? -
Hi,
I installed several times qt6 via qt-unified-linux-x64-4.5.1-online.run installer, following this, it is installed in the path of local like ~/Qt.
After this, whenever i open qt creator to create project with qt widget, it provides an error to me about package finding, as it is seen, project can not find qt libraries and packages. Could you please help me to debug
this problem?? -
@Fikrat ~/Qt is not in the PATH. You need to add qmake to the PATH and qtcreator can pick it up. Or you can manually add qmake path in QtCreator. Better to Install Qt under /opt which is user name independent.
-
Dear @JoeCFD,
I already installed also /opt directory before, as well as i am using cmake not qmake actually. Problem was remained
wrote on 2 Mar 2023, 14:51 last edited by JoeCFD 3 Feb 2023, 14:53@Fikrat
add this in your cmake file
set( CMAKE_PREFIX_PATH "~/Qt/path/gcc-64/lib/cmake")I do not use cmake in qtcreator. I guess you add qmake to the kit and qtcreator will be able to find it for cmake as well.
-
@Fikrat
add this in your cmake file
set( CMAKE_PREFIX_PATH "~/Qt/path/gcc-64/lib/cmake")I do not use cmake in qtcreator. I guess you add qmake to the kit and qtcreator will be able to find it for cmake as well.
wrote on 2 Mar 2023, 15:34 last edited by Fikrat 3 Feb 2023, 15:37Dear @JoeCFD,
Thank you!
I did as you explained, but problem is remained. I dont have any clue about this problem. I am completely stuck.Before, I used a lot qt on ubuntu18.04.06, but with ubuntu 20.04.06 i can not resolve it -
Dear @JoeCFD,
Thank you!
I did as you explained, but problem is remained. I dont have any clue about this problem. I am completely stuck.Before, I used a lot qt on ubuntu18.04.06, but with ubuntu 20.04.06 i can not resolve itwrote on 2 Mar 2023, 19:16 last edited by -
Dear @JoeCFD,
Thank you!
I did as you explained, but problem is remained. I dont have any clue about this problem. I am completely stuck.Before, I used a lot qt on ubuntu18.04.06, but with ubuntu 20.04.06 i can not resolve it@Fikrat Did you set up a Kit in QtCreator for the Qt version you installed?
Do you use QtCreator installed in ~/Qt or the one provided by Ubuntu? -
@Fikrat Did you set up a Kit in QtCreator for the Qt version you installed?
Do you use QtCreator installed in ~/Qt or the one provided by Ubuntu?wrote on 3 Mar 2023, 09:17 last edited by Fikrat 3 Mar 2023, 09:18@jsulm THANKS
I found solution in the link.
https://stackoverflow.com/questions/68967408/failed-to-find-qt-component-widgets-config-file-at
Problem is solved!
1/8