在ubuntu上安装最新QT的最简单方法

编程入门 行业动态 更新时间:2024-10-26 13:31:49
本文介绍了在ubuntu上安装最新QT的最简单方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我需要在ubuntu docker容器上安装QT 5.10.从源代码进行编译是没有问题的,因为它要花费数小时,并且我的计算机几乎两次尝试执行该操作,直到耗尽内存为止.

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.

是否从 www.qt.io/download 安装QT安装程序来安装库5.10?如果是这样,是否可以通过非图形方式进行安装?由于我在docker中,因此我需要一种自动化的方式来安装它,但是从网站下载的.sh的长度是几兆字节,因此我无法阅读它是否可以通过命令来自动安装它

Does the QT installer from 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.

我认为有一个Qt可用的PPA,但是我需要一个真正值得推销的资源来获取这些库.在最新的软件包中,Debian更糟糕.

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.

推荐答案

尝试以下操作:无头无人值守安装

至于Qt5.9.1

apt-get -y update apt-get -y install build-essential libgl1-mesa-dev libassimp-dev libfontconfig1 libdbus-1-3 wget wget 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

更多推荐

在ubuntu上安装最新QT的最简单方法

本文发布于:2023-07-05 01:18:27,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1031286.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:最简单   方法   最新   ubuntu   QT

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!