Notice
Recent Posts
Recent Comments
Link
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
Archives
Today
Total
04-30 05:35
관리 메뉴

nomad-programmer

[OS/Ubuntu] Qt5 설치 본문

OS/Ubuntu

[OS/Ubuntu] Qt5 설치

scii 2020. 1. 6. 22:39

Ubuntu 19.10 Qt5 설치

 

아래의 링크를 타고가서 최신 버전의 Qt설치 파일을 다운받는다.

http://download.qt.io/archive/qt/

 

Index of /archive/qt

 

download.qt.io

// 만약, Qt4 버전이 설치되어있다면 제거합니다.
sudo apt-get purge --auto-remove libqt4-dev

// Qt5 install
chmod +x qt-opensource-linex-x64-5.140.run
./qt-opensource-linux-x64-5.7.0.run
// install g++
sudo apt install build-essential

// install generic font configuration library
sudo apt install libfontconfig1

// configure a compiler
// Qt Create를 실행한 후 Tools > Options 클릭. > Build & Run을 선택 후 Kit으로 가서 컴파일러가 자동으로 발견되는지 확인.

// install OpenGL libraries
sudo apt install mesa-common-dev
sudo apt install libglu1-mesa-dev
// mime 데이터 생성

// /usr/share/applications 디렉토리로 이동 후 Qt-Creator.desktop 파일 생성 후 아래의 내용 입력
// Exec와 Icon은 적절히 바꿔줘야 한다.

[Desktop Entry]
Version=1.0
Encoding=UTF-8
Type=Application
Name=QtCreator
Comment=QtCreator
NoDsiplay=true
Exec=/opt/Qt5.14.0/Tools/QtCreator/bin/qtcreator %f
Icon=/opt/Qt5.14.0/5.14.0/Src/qtdoc/doc/images/landing/icon_QtCreator_78x78px.png
Name[en_US]=Qt-Creator
// /usr/share/applications/defaults.list 파일에서 아래의 내용 추가

text/qtcreator=Qt-Creator.desktop;
// /usr/share/applications/mimeapps.list 파일이 없다면, 만들어주고 아래의 내용을 추가한다.

application/vnd.nokia.qt.qmakeprofile=qtcreator.desktop

// 그 후 아래의 명령을 실행

sudo update-mime-database /usr/share/mime

 

 

참고:

https://wiki.qt.io/Install_Qt_5_on_Ubuntu

 

Install Qt 5 on Ubuntu - Qt Wiki

From Qt Wiki En Ar Bg De El Es Fa Fi Fr Hi Hu It Ja Kn Ko Ms Nl Pl Pt Ru Sq Th Tr Uk Zh Install Qt 5 on Ubuntu Introduction This is a tutorial for installation of Qt 5.7.0 to Ubuntu 12.10. It may be used for some newer versions of Qt and Ubuntu. As a count

wiki.qt.io

'OS > Ubuntu' 카테고리의 다른 글

[Ubuntu] 유용한 Utility APP 소개  (0) 2020.11.20
[Ubuntu] AdoptOpenJDK 설치  (0) 2020.11.14
[Ubuntu] DaVinci Resolve (영상 편집)  (0) 2020.02.18
[Ubuntu] 19.10 설정  (0) 2020.01.05
[OS/Ubuntu] 19.10 버전에서 "한/영" 키 설정  (6) 2020.01.05
Comments