Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install Qt on Ubuntu

Tags:

c++

linux

ubuntu

qt

Need to build simple GUI application. For this reason I decided to install Qt on my Ubuntu 16. I have downloaded open source Qt edition from theirs site. Got error while run:

g@ubuntu:~/Downloads$ ./qt-unified-linux-x86-2.0.5-2-online.run  ./qt-unified-linux-x86-2.0.5-2-online.run: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory 

How to fix that?

like image 298
vico Avatar asked Jan 08 '18 09:01

vico


People also ask

Does Qt work 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. This is valid until 5.14. 2 due to policy change, distributing Open Source Qt linux package is discontinue from 5.15.

Is Qt available for Linux?

Qt (pronounced "cute") is cross-platform software for creating graphical user interfaces as well as cross-platform applications that run on various software and hardware platforms such as Linux, Windows, macOS, Android or embedded systems with little or no change in the underlying codebase while still being a native ...


1 Answers

Install Qt

sudo apt-get install build-essential  sudo apt-get install qtcreator  sudo apt-get install qt5-default 

Install documentation and examples If Qt Creator is installed thanks to the Ubuntu Sofware Center or thanks to the synaptic package manager, documentation for Qt Creator is not installed. Hitting the F1 key will show you the following message : "No documentation available". This can easily be solved by installing the Qt documentation:

sudo apt-get install qt5-doc  sudo apt-get install qt5-doc-html qtbase5-doc-html  sudo apt-get install qtbase5-examples 

Restart Qt Creator to make the documentation available.

Error while loading shared libraries

Problem:

radiusd: error while loading shared libraries: libfreeradius-radius-2.1.10.so: cannot open shared object file: No such file or directory

Reason:

Actually, the libraries have been installed in a place where dynamic linker cannot find it.

Solution:

While this is not a guarantee but using the following command may help you solve the “cannot open shared object file” error:

sudo /sbin/ldconfig -v 

http://www.lucidarme.me/how-install-documentation-for-qt-creator/

https://ubuntuforums.org/showthread.php?t=2199929

https://itsfoss.com/error-while-loading-shared-libraries/

ModelSim-Altera error

like image 114
John Rajan Avatar answered Sep 29 '22 01:09

John Rajan