mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-15 14:16:02 -06:00
[GH-ISSUE #868] error The XTest extension ... ‘XIEventMask’ ... on ./clean_build.sh #693
Labels
No labels
HiDPI
bounty
bsd/freebsd
bsd/openbsd
bug
bug
build-infra
cantfix
critical
doc
duplicate
enhancement
fix-available
from git
from release
good first issue
help wanted
installer/package
invalid
linux
macOS
meta
needs testing
pull-request
query
question
regression
regression
v2.4.0
windows
wontfix
work-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/barrier#693
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @aljazzair on GitHub (Sep 7, 2020).
Original GitHub issue: https://github.com/debauchee/barrier/issues/868
Describe the bug
Build from source failed.
To Reproduce
Steps to reproduce the behavior:
install dependencies
groupinstall Development Tools
epel-release cmake3 boost-static git libXtst-devel qt5-qtbase-devel qt5-qtdeclarative-devel libcurl-devel openssl-devel avahi-compat-libdns_sd-devel avahi-compat-libdns_sd libXtst-devel libX11-devel git cmake make gcc-c++ xorg-x11-server-devel libXtst-devel qt5 qt5-devel openssl-devel
libdrm-devel libglvnd-devel libICE-devel libQt5Core-devel libQt5Gui-devel libQt5Network-devel libqt5-qtbase-common-devel libQt5Widgets-devel libSM-devel libXinerama-devel libXrandr-devel libXrender-devel
git clone barrier
./clean_build.sh
See error
Expected behavior
./clean_build.sh completed successfully
Screenshots
If applicable, add screenshots to help explain your problem.
Please do not link to image hosting sites, as these can be ephemeral. Instead, attach them to the issue.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
@shymega commented on GitHub (Sep 12, 2020):
Trying to reproduce locally.
@shymega commented on GitHub (Sep 12, 2020):
OK. I've tested this in Docker with CentOS 8, and can confirm it builds fine with the following dependencies installed. You will also need EPEL, RPM Fusion, and the PowerTools DNF configuration enabled. Once you have installed these dependencies, Barrier should build.
Dependencies install command is:
dnf install cmake3 avahi-compat-libdns_sd-devel libX11-devel libXtst-devel qt5-qtbase-devel libcurl-devel desktop-file-utils openssl-devel.Also, don't forget:
dnf groupinstall "Development Tools", and to enable PowerTools, you'll also needdnf install 'dnf-command(config-manager)' && dnf config-manager --set-enabled PowerTools.If this doesn't work, then I don't know what to suggest. I cannot reproduce it here, so I would presume at that point that it is specific to your installation.
@aljazzair commented on GitHub (Sep 15, 2020):
Hello,
Thank you for taking the time to review this report and test.
I have attempted this operation again after following your guidelines.
It seems there were a couple of typos in your suggested dependencies, please correct me if I am wrong:
dnf says no match for argument: avahi-compat-libdnd_sd-devel. I replaced it with:
avahi-compat-libdns_sd-devel
dnf says no match for argument: desktop-files-utils. I replaced it with:
desktop-file-utils
Please let me know if this is incorrect.
So here is what I did and the full result:
dnf install cmake3 avahi-compat-libdns_sd-devel libX11-devel libXtst-devel qt5-qtbase-devel libcurl-devel desktop-file-utils openssl-develdnf groupinstall "Development Tools"dnf install 'dnf-command(config-manager)' && dnf config-manager --set-enabled PowerToolscd gitgit clone https://github.com/debauchee/barrier.gitcd barrier/./clean_build.sh@aljazzair commented on GitHub (Sep 15, 2020):
Given the error message above, I also checked the XTEST extension status using the commands:
journalctl -b0 | grep -e XTESTSep 15 12:58:22 myservername /usr/libexec/gdm-x-session[5928]: (II) Initializing extension XTESTxdpyinfo@aljazzair commented on GitHub (Sep 15, 2020):
Also tried this:
find / -name "XTest.h"/usr/include/X11/extensions/XTest.hfind / -name "libXtst.so*"/usr/lib64/libXtst.so.6.1.0@aljazzair commented on GitHub (Sep 15, 2020):
And permissions:
ll /usr/include/X11/extensions/XTest.hrw-r--r-- 1 root root 3 KiB Tue May 14 03:15:27 2019 XTest.hll /usr/lib64/libXtst.so.6.1.0rwxr-xr-x 1 root root 28 KiB Tue May 14 03:15:28 2019 libXtst.so.6.1.0@shymega commented on GitHub (Sep 15, 2020):
You are quite correct; I did make a typo. I've fixed it now. May I just say that its very refreshing to see such a comprehensive bug report from yourself; its not often I see that, and you've certainly gone 'above and beyond' there. Thanks!
Interesting that its still refusing to compile, however. I don't know what to suggest. As I say, it compiles fine on my CentOS 8 container, haven't tried a VM yet.. and my internet is limited, so downloading a full CentOS 8 VM wouldn't be ideal.
I don't quite understand why X11 is reporting that
XTESTdoes exist, yet cmake is not detecting it. How very odd... am I right in thinking that CentOS doesn't package Barrier? I'm curious as to why you're wanting to compile from git/tarball, that's all.Keep me updated 👍
@aljazzair commented on GitHub (Sep 16, 2020):
Hello
Thank you for taking the time to review this report.
My exact version of Centos is:
There is a previous version available via dnf as follows:
(found it under issue #668 )
As you can see this is not the latest version. Unfortunately there is a bug in this version, a memory leak I suspect, that causes a crash of the server when the client disconnects.
There is a more recent version of Barrier available through Snap, however its installation requires a lot of dependencies (several hundred mbs as I recall), it takes up too much space on my SSD :)
So I was trying to compile the latest version of Barrier in the hope of fixing this with a build from git that I could update regularly.
I must say I am not quite used to compiling builds. My scarce knowledge leads me to suspect some kind of PATH issue, but I am reaching the limits of what I can find out on my own :)
Any suggestion on a possible resolution would be most welcome.
@aljazzair commented on GitHub (Sep 18, 2020):
Resolved this issue.
TL/DR: had to reinstall a dependency
dnf reinstall libXi-develIn case someone stumbles upon this report, documenting the resolution path:
First let's create a simple one liner test to determine where the issue is coming from.
nano test.cpp#include <X11/extensions/XTest.h>Run the following command to test:
g++ test.cppResult:
So the problem was further identified:
find / -name "XInput.h"No results.
Then:
rpm -q --whatprovides /usr/include/X11/extensions/XInput.hlibXi-devel-1.7.9-7.el8.x86_64So a library normally provided by libXi-devel is AWOL.
Hence:
dnf reinstall libXi-develthen
git clone https://github.com/debauchee/barrier.git./clean_build.shClosing this issue.