在编译QT时需要安装一些库文件,有时会遇到如下情况:
liu@flist-liu:~/Downloads/qt-everywhere-opensource-src-4.8.6$ sudo apt-get install libX11-dev libXext-dev libXtst-dev
[sudo] password for liu:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libX11-dev(!!!)
E: Unable to locate package libXext-dev
E: Unable to locate package libXtst-dev
liu@flist-liu:~/Downloads/qt-everywhere-opensource-src-4.8.6$ sudo lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial //distribution
我选择安装搜索时名称相近的库,目前QT安装成功。不保证对你有效