[GH-ISSUE #234] Building on Ubuntu 18.04 resulted in "could not find or load the Qt platform plugin "xcb" in """ error message #192

Closed
opened 2026-05-05 05:38:03 -06:00 by gitea-mirror · 17 comments
Owner

Originally created by @TafThorne on GitHub (Jan 21, 2019).
Original GitHub issue: https://github.com/debauchee/barrier/issues/234

Operating Systems

Server: Ubuntu 18.04

Client: Not involved yet

Barrier Version

v2.1.0
and current head of checked 4dedd88ab2

Steps to reproduce bug

Checkout, build and installed the application as per: https://github.com/debauchee/barrier/wiki/Building-on-Linux

Attempt to run the applcation.

View

Other info

I have had other Qt applications installed and run.
I work as part of a team that does some Qt development, although I know nothing about it myself. This means I might have some odd config setup but AFAIK I removed all exisitng Qt development setup before I made this latest build and test attempt.

Full error outputs:

$ ./bin/barrier
This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".

Reinstalling the application may fix this problem.
Aborted (core dumped)
$ QT_DEBUG_PLUGINS=1 ./bin/barrier
QFactoryLoader::QFactoryLoader() checking directory path "/home/thomas/work/src/barrier/build/bin/platforms" ...
This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".

Reinstalling the application may fix this problem.
Aborted (core dumped)
$ ldd ./bin/barrier
	linux-vdso.so.1 (0x00007ffd16dec000)
	libQt5Widgets.so.5 => /lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x00007fa437d37000)
	libQt5Network.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Network.so.5 (0x00007fa4379ab000)
	libdns_sd.so.1 => /usr/lib/x86_64-linux-gnu/libdns_sd.so.1 (0x00007fa4377a2000)
	libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007fa43746a000)
	libQt5Gui.so.5 => /lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007fa436cbb000)
	libQt5Core.so.5 => /lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007fa436580000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fa4361f7000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fa435fdf000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fa435bee000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fa4359cf000)
	libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x00007fa435743000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fa4353a5000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fa435188000)
	libavahi-common.so.3 => /usr/lib/x86_64-linux-gnu/libavahi-common.so.3 (0x00007fa434f7c000)
	libavahi-client.so.3 => /usr/lib/x86_64-linux-gnu/libavahi-client.so.3 (0x00007fa434d6b000)
	libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007fa434b43000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fa43493f000)
	libicui18n.so.56 => /lib/x86_64-linux-gnu/libicui18n.so.56 (0x00007fa4344a6000)
	libicuuc.so.56 => /lib/x86_64-linux-gnu/libicuuc.so.56 (0x00007fa4340ee000)
	libicudata.so.56 => /lib/x86_64-linux-gnu/libicudata.so.56 (0x00007fa43270b000)
	libgthread-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007fa432509000)
	libglib-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007fa4321f3000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fa4388c3000)
	libGLX.so.0 => /usr/lib/x86_64-linux-gnu/libGLX.so.0 (0x00007fa431fc2000)
	libGLdispatch.so.0 => /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007fa431d0c000)
	libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007fa431abf000)
	libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007fa4318bb000)
	libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007fa4316b5000)
	libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007fa431443000)
	libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007fa4311bf000)
	libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007fa430faa000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fa430da2000)
	liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007fa430b7c000)
	liblz4.so.1 => /usr/lib/x86_64-linux-gnu/liblz4.so.1 (0x00007fa430960000)
	libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007fa430645000)
	libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007fa430430000)

My appologies if this is a Qt issue rather than a Barrier one. I have tried to seach the internet for a solution but nothing I have found so far seems to have helped. I would welcome more suggestions for what I should try. I would be happy to perform more diagnostics if anyone can suggest some.

Originally created by @TafThorne on GitHub (Jan 21, 2019). Original GitHub issue: https://github.com/debauchee/barrier/issues/234 ### Operating Systems ### Server: Ubuntu 18.04 Client: Not involved yet ### Barrier Version ### v2.1.0 and current head of checked 4dedd88ab2fc900b44cea0003cddf065f01fa521 ### Steps to reproduce bug ### Checkout, build and installed the application as per: https://github.com/debauchee/barrier/wiki/Building-on-Linux Attempt to run the applcation. View ### Other info ### I have had other Qt applications installed and run. I work as part of a team that does some Qt development, although I know nothing about it myself. This means I might have some odd config setup but AFAIK I removed all exisitng Qt development setup before I made this latest build and test attempt. Full error outputs: ``` $ ./bin/barrier This application failed to start because it could not find or load the Qt platform plugin "xcb" in "". Reinstalling the application may fix this problem. Aborted (core dumped) ``` ``` $ QT_DEBUG_PLUGINS=1 ./bin/barrier QFactoryLoader::QFactoryLoader() checking directory path "/home/thomas/work/src/barrier/build/bin/platforms" ... This application failed to start because it could not find or load the Qt platform plugin "xcb" in "". Reinstalling the application may fix this problem. Aborted (core dumped) ``` ``` $ ldd ./bin/barrier linux-vdso.so.1 (0x00007ffd16dec000) libQt5Widgets.so.5 => /lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x00007fa437d37000) libQt5Network.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Network.so.5 (0x00007fa4379ab000) libdns_sd.so.1 => /usr/lib/x86_64-linux-gnu/libdns_sd.so.1 (0x00007fa4377a2000) libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007fa43746a000) libQt5Gui.so.5 => /lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007fa436cbb000) libQt5Core.so.5 => /lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007fa436580000) libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fa4361f7000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fa435fdf000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fa435bee000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fa4359cf000) libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x00007fa435743000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fa4353a5000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fa435188000) libavahi-common.so.3 => /usr/lib/x86_64-linux-gnu/libavahi-common.so.3 (0x00007fa434f7c000) libavahi-client.so.3 => /usr/lib/x86_64-linux-gnu/libavahi-client.so.3 (0x00007fa434d6b000) libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007fa434b43000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fa43493f000) libicui18n.so.56 => /lib/x86_64-linux-gnu/libicui18n.so.56 (0x00007fa4344a6000) libicuuc.so.56 => /lib/x86_64-linux-gnu/libicuuc.so.56 (0x00007fa4340ee000) libicudata.so.56 => /lib/x86_64-linux-gnu/libicudata.so.56 (0x00007fa43270b000) libgthread-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007fa432509000) libglib-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007fa4321f3000) /lib64/ld-linux-x86-64.so.2 (0x00007fa4388c3000) libGLX.so.0 => /usr/lib/x86_64-linux-gnu/libGLX.so.0 (0x00007fa431fc2000) libGLdispatch.so.0 => /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007fa431d0c000) libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007fa431abf000) libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007fa4318bb000) libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007fa4316b5000) libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007fa431443000) libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007fa4311bf000) libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007fa430faa000) librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fa430da2000) liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007fa430b7c000) liblz4.so.1 => /usr/lib/x86_64-linux-gnu/liblz4.so.1 (0x00007fa430960000) libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007fa430645000) libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007fa430430000) ``` My appologies if this is a Qt issue rather than a Barrier one. I have tried to seach the internet for a solution but nothing I have found so far seems to have helped. I would welcome more suggestions for what I should try. I would be happy to perform more diagnostics if anyone can suggest some.
gitea-mirror 2026-05-05 05:38:03 -06:00
  • closed this issue
  • added the
    bug
    linux
    labels
Author
Owner

@AdrianKoshka commented on GitHub (Jan 21, 2019):

Any reason you're trying to build 2.1.0 rather than 2.1.1?

<!-- gh-comment-id:456167875 --> @AdrianKoshka commented on GitHub (Jan 21, 2019): Any reason you're trying to build 2.1.0 rather than 2.1.1?
Author
Owner

@TafThorne commented on GitHub (Jan 22, 2019):

Any reason you're trying to build 2.1.0 rather than 2.1.1?

I build 2.1.0 as it matched the version on my Windows client. I then build the latest to check that what I was seeing still happened. I can build 2.1.1 and 2.1.2 if you like.

v2.1.1 does the same.
v2.1.2 does the same.

As it is such a fundamental issue I am sure it must be something to do with Qt on my machine. However I have tried all the work arounds suggested so far, even removing all the Qt runtimes and development libraries I could and putting stuff back in. If my other Qt applications seem to work (kdiff3... although right now not git-cola)... Is there a place anyone can recommend I go to get help with making the magical runs anywhere framework to run?

<!-- gh-comment-id:456323067 --> @TafThorne commented on GitHub (Jan 22, 2019): > Any reason you're trying to build 2.1.0 rather than 2.1.1? I build 2.1.0 as it matched the version on my Windows client. I then build the latest to check that what I was seeing still happened. I can build 2.1.1 and 2.1.2 if you like. v2.1.1 does the same. v2.1.2 does the same. As it is such a fundamental issue I am sure it must be something to do with Qt on my machine. However I have tried all the work arounds suggested so far, even removing all the Qt runtimes and development libraries I could and putting stuff back in. If my other Qt applications seem to work (kdiff3... although right now not git-cola)... Is there a place anyone can recommend I go to get help with making the magical runs anywhere framework to run?
Author
Owner

@TafThorne commented on GitHub (Jan 22, 2019):

I have realised that this issue is very like one that developed with git-cola when I upgraded from Ubuntu 16.04 to Ubuntu 18.04. I raised a bug about it at the time: https://github.com/git-cola/git-cola/issues/869

<!-- gh-comment-id:456338772 --> @TafThorne commented on GitHub (Jan 22, 2019): I have realised that this issue is very like one that developed with `git-cola` when I upgraded from Ubuntu 16.04 to Ubuntu 18.04. I raised a bug about it at the time: https://github.com/git-cola/git-cola/issues/869
Author
Owner

@AdrianKoshka commented on GitHub (Jan 22, 2019):

I'll try to build on 18.04 today. Just need to spin up a container I suppose.

<!-- gh-comment-id:456503726 --> @AdrianKoshka commented on GitHub (Jan 22, 2019): I'll try to build on 18.04 today. Just need to spin up a container I suppose.
Author
Owner

@AdrianKoshka commented on GitHub (Jan 22, 2019):

Disregard that, I forgot your issue wasn't building, and was actually using it.

<!-- gh-comment-id:456508096 --> @AdrianKoshka commented on GitHub (Jan 22, 2019): Disregard that, I forgot your issue wasn't building, and was actually using it.
Author
Owner

@AdrianKoshka commented on GitHub (Jan 22, 2019):

screenshot

<!-- gh-comment-id:456544014 --> @AdrianKoshka commented on GitHub (Jan 22, 2019): ![screenshot](https://user-images.githubusercontent.com/8690255/51562258-6101b280-1e57-11e9-90e1-bb545907188d.png)
Author
Owner

@AdrianKoshka commented on GitHub (Jan 22, 2019):

That was a build of 2.1.0

What I did:

sudo apt update && sudo apt full-upgrade
sudo apt install git cmake make xorg-dev g++ libcurl4-openssl-dev \
                 libavahi-compat-libdnssd-dev libssl-dev libx11-dev \
                 libqt4-dev qtbase5-dev
wget https://github.com/debauchee/barrier/archive/v2.1.0.tar.gz
tar xvf v2.1.0.tar.gz
cd barrier-2.1.0
./clean_build.sh
cd build
sudo make install

output of ldd:

alc@ubuntu:~/Public/barrier-2.1.0/build$ ldd /usr/local/bin/barrier
	linux-vdso.so.1 (0x00007ffc9477a000)
	libQt5Widgets.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x00007f59a5e7d000)
	libQt5Network.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Network.so.5 (0x00007f59a5af1000)
	libdns_sd.so.1 => /usr/lib/x86_64-linux-gnu/libdns_sd.so.1 (0x00007f59a58e8000)
	libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f59a55b0000)
	libQt5Gui.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007f59a4e47000)
	libQt5Core.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007f59a46fc000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f59a4373000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f59a415b000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f59a3d6a000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f59a3b4b000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f59a37ad000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f59a3590000)
	libavahi-common.so.3 => /usr/lib/x86_64-linux-gnu/libavahi-common.so.3 (0x00007f59a3384000)
	libavahi-client.so.3 => /usr/lib/x86_64-linux-gnu/libavahi-client.so.3 (0x00007f59a3173000)
	libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f59a2f4b000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f59a2d47000)
	libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x00007f59a2abb000)
	libpng16.so.16 => /usr/lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f59a2889000)
	libharfbuzz.so.0 => /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007f59a25eb000)
	libicui18n.so.60 => /usr/lib/x86_64-linux-gnu/libicui18n.so.60 (0x00007f59a214a000)
	libicuuc.so.60 => /usr/lib/x86_64-linux-gnu/libicuuc.so.60 (0x00007f59a1d93000)
	libdouble-conversion.so.1 => /usr/lib/x86_64-linux-gnu/libdouble-conversion.so.1 (0x00007f59a1b82000)
	libglib-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f59a186c000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f59a6a1e000)
	libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f59a161f000)
	libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f59a141b000)
	libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f59a1215000)
	libGLX.so.0 => /usr/lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f59a0fe4000)
	libGLdispatch.so.0 => /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f59a0d2e000)
	libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f59a0a7a000)
	libgraphite2.so.3 => /usr/lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007f59a084d000)
	libicudata.so.60 => /usr/lib/x86_64-linux-gnu/libicudata.so.60 (0x00007f599eca4000)
	libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f599ea32000)
	libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f599e7ae000)
	libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f599e599000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f599e391000)
	liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f599e16b000)
	liblz4.so.1 => /usr/lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f599df4f000)
	libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f599dc34000)
	libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f599da1f000)
<!-- gh-comment-id:456544267 --> @AdrianKoshka commented on GitHub (Jan 22, 2019): That was a build of 2.1.0 What I did: ``` sudo apt update && sudo apt full-upgrade sudo apt install git cmake make xorg-dev g++ libcurl4-openssl-dev \ libavahi-compat-libdnssd-dev libssl-dev libx11-dev \ libqt4-dev qtbase5-dev wget https://github.com/debauchee/barrier/archive/v2.1.0.tar.gz tar xvf v2.1.0.tar.gz cd barrier-2.1.0 ./clean_build.sh cd build sudo make install ``` output of `ldd`: ``` alc@ubuntu:~/Public/barrier-2.1.0/build$ ldd /usr/local/bin/barrier linux-vdso.so.1 (0x00007ffc9477a000) libQt5Widgets.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x00007f59a5e7d000) libQt5Network.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Network.so.5 (0x00007f59a5af1000) libdns_sd.so.1 => /usr/lib/x86_64-linux-gnu/libdns_sd.so.1 (0x00007f59a58e8000) libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f59a55b0000) libQt5Gui.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007f59a4e47000) libQt5Core.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007f59a46fc000) libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f59a4373000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f59a415b000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f59a3d6a000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f59a3b4b000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f59a37ad000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f59a3590000) libavahi-common.so.3 => /usr/lib/x86_64-linux-gnu/libavahi-common.so.3 (0x00007f59a3384000) libavahi-client.so.3 => /usr/lib/x86_64-linux-gnu/libavahi-client.so.3 (0x00007f59a3173000) libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f59a2f4b000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f59a2d47000) libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x00007f59a2abb000) libpng16.so.16 => /usr/lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f59a2889000) libharfbuzz.so.0 => /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007f59a25eb000) libicui18n.so.60 => /usr/lib/x86_64-linux-gnu/libicui18n.so.60 (0x00007f59a214a000) libicuuc.so.60 => /usr/lib/x86_64-linux-gnu/libicuuc.so.60 (0x00007f59a1d93000) libdouble-conversion.so.1 => /usr/lib/x86_64-linux-gnu/libdouble-conversion.so.1 (0x00007f59a1b82000) libglib-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f59a186c000) /lib64/ld-linux-x86-64.so.2 (0x00007f59a6a1e000) libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f59a161f000) libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f59a141b000) libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f59a1215000) libGLX.so.0 => /usr/lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f59a0fe4000) libGLdispatch.so.0 => /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f59a0d2e000) libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f59a0a7a000) libgraphite2.so.3 => /usr/lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007f59a084d000) libicudata.so.60 => /usr/lib/x86_64-linux-gnu/libicudata.so.60 (0x00007f599eca4000) libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f599ea32000) libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f599e7ae000) libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f599e599000) librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f599e391000) liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f599e16b000) liblz4.so.1 => /usr/lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f599df4f000) libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f599dc34000) libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f599da1f000) ```
Author
Owner

@AdrianKoshka commented on GitHub (Jan 22, 2019):

I build 2.1.0 as it matched the version on my Windows client.

Sorry for not stating this earlier, but I've used the 2.1.2 release with the 2.1.0 windows executable and it works. That being said, I haven't done heavy testing, will probably get that chance soon.

<!-- gh-comment-id:456554186 --> @AdrianKoshka commented on GitHub (Jan 22, 2019): > I build 2.1.0 as it matched the version on my Windows client. Sorry for not stating this earlier, but I've used the 2.1.2 release with the 2.1.0 windows executable and it works. That being said, I haven't done heavy testing, will probably get that chance soon.
Author
Owner

@TafThorne commented on GitHub (Jan 25, 2019):

My Super User post has bourn fruit. I now have a workaround that gets barrier and my other problem applications working.

$ LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH barrier

This allows the application to run. There is either some confusion in my shared library paths (although other non-Qt and some Qt applications work) or the plugins path for Qt is incorrectly set. The latter may be hinted at by the message: "This application failed to start because it could not find or load the Qt platform plugin "xcb" in ""." with the in showing no path.

Answer that suggested the workaround is here: https://superuser.com/a/1397518/108734

If I find a persistent solution or the root cause I will return to post what it is. Unless there is something in the barrier package or install setup that should be setting a missing path, this is likely a fault in my Ubuntu and Qt configuration. Although I have applications such as Synergy which work in an older v1.8.8 version and fail in the newer v1.10.1 so there are ways an application could affect this.

<!-- gh-comment-id:457503835 --> @TafThorne commented on GitHub (Jan 25, 2019): My Super User post has bourn fruit. I now have a workaround that gets barrier and my other problem applications working. `$ LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH barrier` This allows the application to run. There is either some confusion in my shared library paths (although other non-Qt and some Qt applications work) or the plugins path for Qt is incorrectly set. The latter may be hinted at by the message: "This application failed to start because it could not find or load the Qt platform plugin "xcb" **in "".**" with the in showing no path. Answer that suggested the workaround is here: https://superuser.com/a/1397518/108734 If I find a persistent solution or the root cause I will return to post what it is. Unless there is something in the barrier package or install setup that should be setting a missing path, this is likely a fault in my Ubuntu and Qt configuration. Although I have applications such as Synergy which work in an older v1.8.8 version and fail in the newer v1.10.1 so there are ways an application could affect this.
Author
Owner

@AdrianKoshka commented on GitHub (Jan 25, 2019):

this is likely a fault in my Ubuntu and Qt configuration

I have a feeling that this is the case.

<!-- gh-comment-id:457514023 --> @AdrianKoshka commented on GitHub (Jan 25, 2019): > this is likely a fault in my Ubuntu and Qt configuration I have a feeling that this is the case.
Author
Owner

@AdrianKoshka commented on GitHub (Jan 25, 2019):

I could do some more random testing to see if I can replicate the issue, but I won't guarantee anything.

<!-- gh-comment-id:457514269 --> @AdrianKoshka commented on GitHub (Jan 25, 2019): I could do some more random testing to see if I can replicate the issue, but I won't guarantee anything.
Author
Owner

@TafThorne commented on GitHub (Jan 25, 2019):

I have checked my build of 2.1.0 against your build's ldd output.

ldd Notworkign vs Working


If I then add my ldd output with the LD_LIBRARY_PATH set, I see a very good match with your own version:

With LD_LIBRARY_PATH set

The packages I am using in the problem case do not come from an Ubutnu package:

/lib not /usr/lib

Do you have a ls -la /lib/x86_64-linux-gnu/libQt5Core.so.5 on your system? If not, it is possible this got added by mistake at some stage. Although the date on it being November 2017 would be the date I first installed this system. If you do have the file it will be an ordering config somewhere, I just need /usr/lib to override /lib.

<!-- gh-comment-id:457517992 --> @TafThorne commented on GitHub (Jan 25, 2019): I have checked my build of 2.1.0 against your build's ldd output. ![ldd Notworkign vs Working](https://user-images.githubusercontent.com/586550/51737978-f3879900-2085-11e9-8a0b-b26e43b29b2e.png) **** If I then add my ldd output with the LD_LIBRARY_PATH set, I see a very good match with your own version: ![With LD_LIBRARY_PATH set](https://user-images.githubusercontent.com/586550/51738142-55e09980-2086-11e9-9021-2175e87262fd.png) The packages I am using in the problem case do not come from an Ubutnu package: ![/lib not /usr/lib](https://user-images.githubusercontent.com/586550/51738325-ce475a80-2086-11e9-97a4-486e761a762f.png) Do you have a `ls -la /lib/x86_64-linux-gnu/libQt5Core.so.5` on your system? If not, it is possible this got added by mistake at some stage. Although the date on it being November 2017 would be the date I first installed this system. If you do have the file it will be an ordering config somewhere, I just need `/usr/lib` to override `/lib`.
Author
Owner

@TafThorne commented on GitHub (Jan 25, 2019):

I think I finally found a likely source of my woes!

Looking at the order libraries are shared in mysetp gives /lib/x86_64-linux-gnu priority over /usr/lib/x86_64-linux-gnu for me.

thomas@thorne-ul-dt:~/work/src/dmcp$ cat /etc/ld.so.conf
include /etc/ld.so.conf.d/*.conf

$ ls /etc/ld.so.conf.d/*
/etc/ld.so.conf.d/fakeroot-x86_64-linux-gnu.conf  /etc/ld.so.conf.d/x86_64-linux-gnu.conf
/etc/ld.so.conf.d/i386-linux-gnu.conf             /etc/ld.so.conf.d/zz_i386-biarch-compat.conf
/etc/ld.so.conf.d/libc.conf                       /etc/ld.so.conf.d/zz_x32-biarch-compat.conf
/etc/ld.so.conf.d/qt5-taft.conf
thomas@thorne-ul-dt:~/work/src/dmcp$ cat /etc/ld.so.conf.d/*
/usr/lib/x86_64-linux-gnu/libfakeroot
# Multiarch support
/usr/local/lib/i386-linux-gnu
/lib/i386-linux-gnu
/usr/lib/i386-linux-gnu
/usr/local/lib/i686-linux-gnu
/lib/i686-linux-gnu
/usr/lib/i686-linux-gnu
# libc default configuration
/usr/local/lib
# Qt 5.9.2 as installed from website
# This file manually created by TafT after reading some internet advice
/opt/Qt5.9.2/5.9.2/gcc_64/lib/

# Multiarch support
/usr/local/lib/x86_64-linux-gnu
/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu
# Legacy biarch compatibility support
/lib32
/usr/lib32
# Legacy biarch compatibility support
/libx32
/usr/libx32

I also have the handy warning I leave behind when setting myself landmines # This file manually created by TafT after reading some internet advice. I am sure I do not need that file now as I no longer have that library set installed.

Please, could you confirm if you have the /etc/ld.so.conf.d/x86_64-linux-gnu.conf file and what its content is?

$ apt-file search /etc/ld.so.conf.d/x86_64-linux-gnu.conf
libc6: /etc/ld.so.conf.d/x86_64-linux-gnu.conf
$ cat /etc/ld.so.conf.d/x86_64-linux-gnu.conf
# Multiarch support
/usr/local/lib/x86_64-linux-gnu
/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu

I suspect that changing the order present in this file would remove my current problems, but it may cause new ones. If your working setup matches my broken one I will check elsewhere.

<!-- gh-comment-id:457520762 --> @TafThorne commented on GitHub (Jan 25, 2019): I think I finally found a likely source of my woes! Looking at the order libraries are shared in mysetp gives `/lib/x86_64-linux-gnu` priority over `/usr/lib/x86_64-linux-gnu` for me. ``` thomas@thorne-ul-dt:~/work/src/dmcp$ cat /etc/ld.so.conf include /etc/ld.so.conf.d/*.conf $ ls /etc/ld.so.conf.d/* /etc/ld.so.conf.d/fakeroot-x86_64-linux-gnu.conf /etc/ld.so.conf.d/x86_64-linux-gnu.conf /etc/ld.so.conf.d/i386-linux-gnu.conf /etc/ld.so.conf.d/zz_i386-biarch-compat.conf /etc/ld.so.conf.d/libc.conf /etc/ld.so.conf.d/zz_x32-biarch-compat.conf /etc/ld.so.conf.d/qt5-taft.conf thomas@thorne-ul-dt:~/work/src/dmcp$ cat /etc/ld.so.conf.d/* /usr/lib/x86_64-linux-gnu/libfakeroot # Multiarch support /usr/local/lib/i386-linux-gnu /lib/i386-linux-gnu /usr/lib/i386-linux-gnu /usr/local/lib/i686-linux-gnu /lib/i686-linux-gnu /usr/lib/i686-linux-gnu # libc default configuration /usr/local/lib # Qt 5.9.2 as installed from website # This file manually created by TafT after reading some internet advice /opt/Qt5.9.2/5.9.2/gcc_64/lib/ # Multiarch support /usr/local/lib/x86_64-linux-gnu /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu # Legacy biarch compatibility support /lib32 /usr/lib32 # Legacy biarch compatibility support /libx32 /usr/libx32 ``` I also have the handy warning I leave behind when setting myself landmines `# This file manually created by TafT after reading some internet advice`. I am sure I do not need that file now as I no longer have that library set installed. Please, could you confirm if you have the `/etc/ld.so.conf.d/x86_64-linux-gnu.conf` file and what its content is? ``` $ apt-file search /etc/ld.so.conf.d/x86_64-linux-gnu.conf libc6: /etc/ld.so.conf.d/x86_64-linux-gnu.conf ``` ``` $ cat /etc/ld.so.conf.d/x86_64-linux-gnu.conf # Multiarch support /usr/local/lib/x86_64-linux-gnu /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu ``` I suspect that changing the order present in this file would remove my current problems, but it may cause new ones. If your working setup matches my broken one I will check elsewhere.
Author
Owner

@AdrianKoshka commented on GitHub (Jan 25, 2019):

Sure, I still have that VM, let me boot it.

<!-- gh-comment-id:457685706 --> @AdrianKoshka commented on GitHub (Jan 25, 2019): Sure, I still have that VM, let me boot it.
Author
Owner

@AdrianKoshka commented on GitHub (Jan 25, 2019):

alc@ubuntu:~$ cat /etc/ld.so.conf.d/x86_64-linux-gnu.conf
# Multiarch support
/usr/local/lib/x86_64-linux-gnu
/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu
<!-- gh-comment-id:457687078 --> @AdrianKoshka commented on GitHub (Jan 25, 2019): ``` alc@ubuntu:~$ cat /etc/ld.so.conf.d/x86_64-linux-gnu.conf # Multiarch support /usr/local/lib/x86_64-linux-gnu /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu ```
Author
Owner

@TafThorne commented on GitHub (Jan 30, 2019):

Well your working machine matches my non-working one. Unless you get different output to cat /etc/ld.so.conf.d/* than I did, I will need to start looking into the more specific Qt areas I guess.

<!-- gh-comment-id:458908037 --> @TafThorne commented on GitHub (Jan 30, 2019): Well your working machine matches my non-working one. Unless you get different output to ` cat /etc/ld.so.conf.d/*` than I did, I will need to start looking into the more specific Qt areas I guess.
Author
Owner

@AdrianKoshka commented on GitHub (Jan 31, 2019):

I think I'll close this issue then.

<!-- gh-comment-id:459211370 --> @AdrianKoshka commented on GitHub (Jan 31, 2019): I think I'll close this issue then.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/barrier#192
No description provided.