Easiest way to install latest QT on ubuntu

2019-07-12 02:24发布

I need to install QT 5.10 on my ubuntu docker container. Compiling from source is out of question because it takes hours and my computer almost fried 2 times trying to do it until it ran ut of memory.

Does the QT installer from https://www.qt.io/download installs the libs for 5.10? If so, is there a way to install in a non graphical way? Since I'm in docker, I need an aautomated way to install it, but the .sh that is downloaded from the website is hundreads of megabytes long, so I can't read it to see if I can pass commands to automatically install it.

I think there's a PPA with qt available but I need a really thrustworthy source to get these libs. Debian is even worse in up to date packages.

1条回答
孤傲高冷的网名
2楼-- · 2019-07-12 02:38

Try in light of: headless unattended installation

As for Qt5.9.1

apt-get -y update
apt-get -y install build-essential libgl1-mesa-dev libassimp-dev libfontconfig1 libdbus-1-3 wget
wget http://download.qt.io/official_releases/qt/5.9/5.9.1/qt-opensource-linux-x64-5.9.1.run
chmod +x qt-opensource-linux-x64-5.9.1.run
./qt-opensource-linux-x64-5.9.1.run
查看更多
登录 后发表回答