Error in Installing Qt in Ubuntu-mate 18.04
-
Hi,
Looks like you may have copied a project with Qt Creator generated files in it like a .pro.user file.
If so, delete it and reopen the project.
-
Thanks for your reply.
I have deleted the .pro.user file and reopened the project.I got the following error.Please find the screenshot..
Please correct me if am wrong.I think Qt is not installed .Because I have no options in kits.@Malathi-K that might be, as the distros package Qt in several small packages. so far you only installed Creator, but not the Qt development files.
-
@Malathi-K that might be, as the distros package Qt in several small packages. so far you only installed Creator, but not the Qt development files.
-
@aha_1980 for downloading development files I run this code
//apt-get install qt4-default
But I got 404 error please check the screen shot.
Is this the correct command to download the development files?@Malathi-K Usually the development files have a
-dev
suffix. But my Ubuntu 14.04 here shows:apt-cache search qt5 | grep qt5-default qt5-default - Qt 5 development defaults package
so qt5-default should be a good start.
Also note that Qt 4 is already very old and I would not use it for new development.
Regards
-
@Malathi-K Usually the development files have a
-dev
suffix. But my Ubuntu 14.04 here shows:apt-cache search qt5 | grep qt5-default qt5-default - Qt 5 development defaults package
so qt5-default should be a good start.
Also note that Qt 4 is already very old and I would not use it for new development.
Regards
@aha_1980 Hi,
Can you please me fix this error, while trying to install qt5-default
ioz@ioz-desktop:~/Desktop$ sudo apt-get install qt5-default
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:The following packages have unmet dependencies:
qt5-default : Depends: qtbase5-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.Thanks
Malathi -
@aha_1980 Hi,
Can you please me fix this error, while trying to install qt5-default
ioz@ioz-desktop:~/Desktop$ sudo apt-get install qt5-default
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:The following packages have unmet dependencies:
qt5-default : Depends: qtbase5-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.Thanks
Malathi -
@aha_1980 Hi,
Can you please me fix this error, while trying to install qt5-default
ioz@ioz-desktop:~/Desktop$ sudo apt-get install qt5-default
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:The following packages have unmet dependencies:
qt5-default : Depends: qtbase5-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.Thanks
Malathi@Malathi-K Install qtbase5-dev also
-
@Malathi-K Install qtbase5-dev also
-
@jsulm -I have installed qtbase5-dev as per your suggestion but still I get error.Please check the screenshot.
Also, My kits have no option for Qt5(qt2.png)
Help me in solving this error.
@malathi-k Sorry, but in these tiny screenshots I cannot see anything helpful...
Please show the whole Kit configuration.
Also, there is an yellow exclamation mark on the left side of the Kit name put the cursor over it and see what the popup shows.
Also, do you really want to use Qt4 which is dead since many years already? -
@malathi-k Sorry, but in these tiny screenshots I cannot see anything helpful...
Please show the whole Kit configuration.
Also, there is an yellow exclamation mark on the left side of the Kit name put the cursor over it and see what the popup shows.
Also, do you really want to use Qt4 which is dead since many years already?@jsulm I have uninstalled all qt related dependencies and again installed qt5. Please check the screenshot(there is no option to fix the font size to normal in ubuntu mate,as of now I have sent the picture of the whole screen ).
After reinstalling qt5,
-
@jsulm I have uninstalled all qt related dependencies and again installed qt5. Please check the screenshot(there is no option to fix the font size to normal in ubuntu mate,as of now I have sent the picture of the whole screen ).
After reinstalling qt5,
@malathi-k Are you aware that this screenshot is way too small to contain any useful information? In fact it contains less information than your previous screenshots. So, what should I check?
Why don't you make a bigger screenshot?
And did you do what I suggested before - put mouse cursor over the yellow exclamation mark? -
@malathi-k Are you aware that this screenshot is way too small to contain any useful information? In fact it contains less information than your previous screenshots. So, what should I check?
Why don't you make a bigger screenshot?
And did you do what I suggested before - put mouse cursor over the yellow exclamation mark?@jsulm I think the problem is, the fact, that what we see is the entire screenshot of OP's desktop.
How anyone can work on a 592 x 448 Screen is beyond me. I don't know what the minimal resolution of QtCreator is, but I would bet it higher than that.
-
@jsulm I think the problem is, the fact, that what we see is the entire screenshot of OP's desktop.
How anyone can work on a 592 x 448 Screen is beyond me. I don't know what the minimal resolution of QtCreator is, but I would bet it higher than that.
-
Hi @Malathi-K
I'd recommed to use the Qt Online installer. With that you can install latest Qt packages and the QtCreator as well. The installer will automatically install Kits (registers compilers and debuggers) and in addition it will contain the examples and documentation of the selected Qt packages: