Skip to content
sipke edited this page May 29, 2020 · 5 revisions

install qt from http download http://sourcedigit.com/20623-how-to-install-qt-creator-on-ubuntu-16-04/

nstall Qt on Ubuntu

Visit Qt downloads page an download a 32-bit or 64-bit Linux installation depending your version of Ubuntu. The installation file can be also downloaded through the command line using wget.

Example:

wget http://download.qt.io/official_releases/qt/5.7/5.7.0/qt-opensource-linux-x64-5.7.0.run

Now adjust permission, run the installer and follow the instruction to complete the installation.

chmod +x qt-opensource-linux-x64-5.7.0.run ./qt-opensource-linux-x64-5.7.0.run Configure a compiler

Launch Qt Creator. Go to Tools > Options. Click Build & Run and select tab Kit. Configure a compiler if it is not automatically detected. Troubleshooting

Qt Creator needs a compiler set up to build. Follow the instruction from the previous section to configure compiler for Qt Creator.

error: g++: Command not found Solution:

sudo apt-get install build-essential

error: GL/gl.h: No such file or directory Solution:

sudo apt-get install mesa-common-dev

multimedia

sudo apt-get install qtmultimedia5-dev libqt5multimediawidgets5 libqt5multimedia5-plugins libqt5multimedia5

Linux failed to load

Could not load the Qt platform plugin "xcb" in "" even though it was found To find out what is missing, do an export of debug as below.

$ export QT_DEBUG_PLUGINS=1

Rerun your application and check what is missing. e.g. Cannot load library /home/user/.local/lib/python3.6/site-packages/PySide2/Qt/plugins/platforms/libqxcb.so: (libxcb-xinerama.so.0: cannot open shared object file: No such file or directory) QLibraryPrivate::loadPlugin failed on "/home/user/.local/lib/python3.6/site-packages/PySide2/Qt/plugins/platforms/libqxcb.so" : "Cannot load library /home/user/.local/lib/python3.6/site-packages/PySide2/Qt/plugins/platforms/libqxcb.so: (libxcb-xinerama.so.0: cannot open shared object file: No such file or directory)"

The use ldd to check what is missing.

$ ldd /home//libqxcb.so also confirms this. libxcb-xinerama.so.0 => not found

So install it

$ sudo apt-get install libxcb-xinerama0

Clone this wiki locally