@@ -5,7 +5,7 @@ sudo apt-get -y update
55# Enable tab autocomplete in terminal
66sudo apt install bash-completion
77
8- # Install tools required to build
8+ # Install tools/libraries required to build
99sudo apt-get install -y \
1010 gyp \
1111 libegl1-mesa-dev \
@@ -18,9 +18,29 @@ sudo apt-get install -y \
1818 libpng-dev \
1919 libxslt1-dev \
2020
21+ # Install Qt
22+ sudo apt-get install -y \
23+ qtbase5-dev \
24+ qtdeclarative5-dev \
25+ qtmultimedia5-dev \
26+ qtpositioning5-dev \
27+ libqt5sensors5-dev \
28+ libqt5webchannel5 \
29+ qt5-qmake \
30+
2131# Alias python3 to python so the build script can find it
2232sudo ln -s /usr/bin/python3 /usr/bin/python
2333
24- # Download our prebuilt version of Qt
25- curl -L https://github.com/constructpm/qt-build/releases/download/v5.15.8-lts-lgpl-1/qt-5.15.8-lts-lgpl-cpp17-ubuntu-22.04-x64.tar.gz | sudo tar -xJC /opt
26- curl -L https://github.com/constructpm/qtwebkit-build/releases/download/v5.212.0-1/qtwebkit-d1c854e-cpp17-ubuntu-22.04-x64.tar.gz | sudo tar xvJ -C /opt
34+ # Download our prebuilt version of QtWebkit
35+ curl -L https://github.com/constructpm/qtwebkit-build/releases/download/v5.212.0-1/qtwebkit-d1c854e-cpp17-ubuntu-22.04-x64.tar.gz | sudo tar xvJ -C /usr/include/x86_64-linux-gnu
36+
37+ # Move the files we downloaded so their locations match the locations used by the other Qt libraries we installed earlier
38+ sudo mv /usr/include/x86_64-linux-gnu/qt5/include/* /usr/include/x86_64-linux-gnu/qt5/
39+ sudo mv /usr/include/x86_64-linux-gnu/qt5/lib/* /usr/lib/x86_64-linux-gnu/
40+ sudo mv /usr/include/x86_64-linux-gnu/qt5/lib/cmake/* /usr/lib/x86_64-linux-gnu/cmake/
41+ sudo mv /usr/include/x86_64-linux-gnu/qt5/lib/pkgconfig/* /usr/lib/x86_64-linux-gnu/pkgconfig/
42+
43+ sudo rmdir /usr/include/x86_64-linux-gnu/qt5/include/
44+ sudo rmdir /usr/include/x86_64-linux-gnu/qt5/lib/cmake/
45+ sudo rmdir /usr/include/x86_64-linux-gnu/qt5/lib/pkgconfig/
46+ sudo rmdir /usr/include/x86_64-linux-gnu/qt5/lib/
0 commit comments