Skip to content

Commit 99d3932

Browse files
committed
chore(qt)[sc-97669]: stop using our prebuilt Qt. It doesnt have everything webdriver needs.
1 parent f17345e commit 99d3932

File tree

2 files changed

+28
-8
lines changed

2 files changed

+28
-8
lines changed

.devcontainer/setup.sh

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sudo apt-get -y update
55
# Enable tab autocomplete in terminal
66
sudo apt install bash-completion
77

8-
# Install tools required to build
8+
# Install tools/libraries required to build
99
sudo 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
2232
sudo 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/

wd.gypi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
'variables': {
33
'QT5': '1',
44
'WD_CONFIG_QWIDGET_BASE': '1',
5-
'WD_CONFIG_WEBKIT': '0',
5+
'WD_CONFIG_WEBKIT': '1',
66
'WD_CONFIG_QUICK': '1',
77
'WD_CONFIG_PLAYER': '0',
88
'WD_CONFIG_ONE_KEYRELEASE': '0',
9-
'QT_INC_PATH': '/opt/qt5/include',
10-
'QT_BIN_PATH': '/opt/qt5/bin',
11-
'QT_LIB_PATH': '/opt/qt5/lib'
9+
'QT_INC_PATH': '/usr/include/x86_64-linux-gnu/qt5',
10+
'QT_BIN_PATH': '/usr/bin',
11+
'QT_LIB_PATH': '/usr/lib/x86_64-linux-gnu'
1212
},
1313
}

0 commit comments

Comments
 (0)