Skip to content

Commit 082a83f

Browse files
authored
Create install_qt.md
1 parent 03e9657 commit 082a83f

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

install_qt.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
## qt 5.12 build from source at RHEL8
2+
- Getting source. From windows or Linux
3+
- git clone git://code.qt.io/qt/qt5.git
4+
- cd qt5
5+
- git checkout 5.12
6+
- git submodule update --init --recursive
7+
- Prerequisite
8+
- If source is downloaded from windows, run dos2unix over entire source folders
9+
- `find . -type f -print0 | xargs -0 -n 1 -P 4 dos2unix`
10+
- https://stackoverflow.com/questions/11929461/how-can-i-run-dos2unix-on-an-entire-directory
11+
- For RHEL8, jasper-devel is required. Download it from EPEL or pkgs.org:https://centos.pkgs.org/8/centos-powertools-x86_64/jasper-devel-2.0.14-4.el8.x86_64.rpm.html
12+
- yum install jasper-devel-2.0.14-4.el8.x86_64.rpm
13+
- Now QT doesn't ship fonts together. Needs fontconfig for installation
14+
- yum install freetype-devel
15+
- source build
16+
- mkdir build
17+
- cd buidl
18+
- ../qt5/configure -developer-build -opensource -nomake examples -nomake tests -prefix /opt/qt/5.12 -fontconfig -feature-freetype -system-freetype FREETYPE_INCDIR=/usr/include/freetype2
19+
- make -j 40 all; make install
20+
- After installation, check qt/5.12/plugins/platforms. libqwayland-generic.so and libqxcb.so are necessary to visualize on RHEL8.
21+
- Necessary rpm for other qt5 applications
22+
- yum install libicu-devel libxkbcommon-devel # for texmaker
23+
- yum install libpng-devel cairo-devel # for IPE

0 commit comments

Comments
 (0)