Unsolved Error in Installing Qt in Ubuntu-mate 18.04
In an attempt to install Qt5 in Ubuntu-mate18.04, raspberrypi3b+ I get the following error. Please check the screenshot
@Malathi-K Why sudo? You can install in your home directory, for that you don't need sudo.
Also, yre you trying to install x86 Qt on RaspberryPi? If so this is not going to work - RaspberryPi is ARM not x86.
You can install Qt via apt-get if you don't need latest Qt.
@jsulm Thanks for your reply. I use this command to install qt
//apt-get install qtcreator
After that qt is installed successfully but I can't able to build my project. can you please tell what am I missing? Also when I open my project I got this message
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.
@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
-devsuffix. 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.
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.
Sorry, no. The Ubuntu or Debian users might be more fluent with this.
@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?
@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?
@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.
JonB last edited by
You're right. It's 2019 now, everyone should be working on 640x480 by now ;-)
@jonb AFAIK, the minimal vertical resolution to display the settings dialog is 600 px. That was done in times the netbooks were familiar which had 1024x600 or so resolution.
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: