File tree 6 files changed +37
-2
lines changed
6 files changed +37
-2
lines changed Original file line number Diff line number Diff line change @@ -19,3 +19,5 @@ Makefile
19
19
run-tests.sh
20
20
tests.pro
21
21
/.qmake.stash
22
+ tests /build- *
23
+ * .pro.user *
Original file line number Diff line number Diff line change @@ -52,6 +52,16 @@ RUN apt-get update && apt-get -y dist-upgrade && apt-get -y --no-install-recomme
52
52
libx11-xcb-dev \
53
53
libxcb-glx0-dev \
54
54
libxkbcommon-x11-dev \
55
+ libxcb-shm0-dev \
56
+ libxcb-icccm4-dev \
57
+ libxcb-image0-dev \
58
+ libxcb-keysyms1-dev \
59
+ libxcb-render-util0-dev \
60
+ libxcb-xinerama0-dev \
61
+ x11proto-record-dev \
62
+ libxtst-dev \
63
+ libatspi2.0-dev \
64
+ libatk-bridge2.0-dev \
55
65
# bash needed for argument substitution in entrypoint
56
66
bash \
57
67
# since 5.14.0 we apparently need libdbus-1-dev and libnss3-dev
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
sed -i -e ' s/"-lgds"/"-lfbclient"/' ../qtbase/src/plugins/sqldrivers/configure.json
3
- ../configure -prefix $QT_PREFIX -opensource -confirm-license -nomake examples -nomake tests -skip qtwebengine
3
+ ../configure -prefix $QT_PREFIX -opensource -confirm-license -nomake examples -nomake tests -skip qtwebengine -xcb -bundled-xcb-xinput
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
sed -i -e ' s/"-lgds"/"-lfbclient"/' ../qtbase/src/plugins/sqldrivers/configure.json
3
- ../configure -prefix $QT_PREFIX -opensource -confirm-license -nomake examples -nomake tests -skip qtwebengine
3
+ ../configure -prefix $QT_PREFIX -opensource -confirm-license -nomake examples -nomake tests -skip qtwebengine -xcb -bundled-xcb-xinput
Original file line number Diff line number Diff line change
1
+ #include < QDebug>
2
+ #include < QDir>
3
+ // #define PLUGIN_DIR "plugindir"
4
+ int main () {
5
+ QString platformDir = QString (PLUGIN_DIR) + " /platforms" ;
6
+ qDebug () << " searching plugin in directory " << platformDir;
7
+ QDir pluginDir (platformDir);
8
+ QStringList platformPlugins = pluginDir.entryList ();
9
+ qDebug () << " plugins found in file system: " << platformPlugins;
10
+ if (platformPlugins.contains (" libqxcb.so" )) {
11
+ qDebug () << " xcb plugin found" ;
12
+ return 0 ;
13
+ }
14
+ qDebug () << " xcb plugin not found" ;
15
+ return 1 ;
16
+ }
Original file line number Diff line number Diff line change
1
+ QT += core
2
+ QT -= gui
3
+ TARGET = xcb-plugin
4
+ CONFIG += console
5
+ TEMPLATE = app
6
+ SOURCES += main.cpp
7
+ DEFINES += PLUGIN_DIR =\ \\"$$[QT_INSTALL_PLUGINS]\\\"
You can’t perform that action at this time.
0 commit comments