Operating Systems
Gentoo
Barrier Version
2.1.2
Steps to reproduce bug
Install from emerge from pixlra
https://gpo.zugaina.org/x11-misc/barrier
Without qt5 and libressl support :
[ebuild N ~] x11-misc/barrier-2.1.2::pixlra USE="-libressl -qt5"
When compiling using +qt5 flag, it is alright.
But when -qt5, it is not.
Do you have libavahi-compat-libdnssd-dev installed? Important to be the dev version.
I can't find such libraries : avahi, compat, libdnssd...
It's one library, not 3 seperate ones.
You have to install the corresponding library libavahi-compat-libdnssd-dev for your Linux distribution. If you can't find one named like that it might be under another name.
When compiling using +qt5 flag, it is alright.
But when -qt5, it is not.
You realize that barrier (the GUI executable) uses QT5, right? (Though, now that I think of it, I think you can compile barrier w/o QT and it should only build the CLI components)
When compiling using +qt5 flag, it is alright.
But when -qt5, it is not.You realize that
barrier(the GUI executable) uses QT5, right? (Though, now that I think of it, I think you can compile barrier w/o QT and it should only build the CLI components)
Yes.
If configured, i won't need the GUI and its dependances packages.
It is the same as the *libavahi-compat-libdnssd-dev * librairy : it is a avahi library compatible with "Apple Bonjour", right ?
I don't use/have Apple product.
In order to compile it you need the following libraries or their equivalent for your linux distribution:
xorg-dev
g++
libcurl4-openssl-dev
libavahi-compat-libdnssd-dev
libssl-dev
libx11-dev
libqt4-dev
qtbase5-dev
In the file you attached, you are missing the "libavahi-compat-libdnssd-dev" library or its equivalent for your linux distribution, which is why I mentioned it. Make sure you have all of them if you want to compile it from source.
I don't use/have Apple product.
Yep, avahi is compatible with Bonjour/Zeroconf. It's (optionally) used so that clients can automatically find + connect to servers. So it's not related to whether you have any apple products or not...
And as @Mihai-MCW said, you need the avahi compatibility library to compile barrier, there currently isn't an option to compile without avahi support.
I had the same problem, but sloved it using this command
dnf install avahi avahi-compat-libdns_sd avahi-compat-libdns_sd-devel
I'm runing Fedora 28.
I hope this helps.
I know this issue has been long closed, but apparently the solution to get barrier to build on gentoo is to emerge avahi like this:
USE="mdnsresponder-compat" emerge net-dns/avahi
Adrian saved my butt, but I want to add one note, the better thing to do is add the following to /etc/portage/package.use:
net-dns/avahi mdnsresponder-compat
and then emerge net-dns/avahi. this way you don't lose it if you update.
Sorry for a newbie question, but does anyone have the answer / approach for building on Ubuntu18.04 ?
`-- Checking for module 'avahi-compat-libdns_sd'
-- No package 'avahi-compat-libdns_sd' found
CMake Error at /usr/share/cmake-3.10/Modules/FindPkgConfig.cmake:415 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindPkgConfig.cmake:593 (_pkg_check_modules_internal)
CMakeLists.txt:177 (pkg_check_modules)
-- Configuring incomplete, errors occurred!
See also "/home/gary/Development/barrier/build/CMakeFiles/CMakeOutput.log".
See also "/home/gary/Development/barrier/build/CMakeFiles/CMakeError.log".
`
Not obvious which package might be missing...
$ sudo apt install avahi-compat-libdns_sd avahi-compat-libdns_sd-devel
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package avahi-compat-libdns_sd
E: Unable to locate package avahi-compat-libdns_sd-devel
Thank you in advance
(Keen to try out the Linux Freezing fix ;-) )
Try the libavahi-compat-libdnssd-dev package.
Thanks for the swift response !
but... already installed ...
libavahi-compat-libdnssd-dev is already the newest version (0.7-3.1ubuntu1.2).
So, after looking and looking, To build on my Ubuntu 18.04LTS, I added a
export PKG_CONFIG_PATH="/usr/lib/x86_64-linux-gnu/pkgconfig:$PKG_CONFIG_PATH"
At the beginning of the Run...
Now seems to build perfectly.. Thank you !
Most helpful comment
I know this issue has been long closed, but apparently the solution to get barrier to build on gentoo is to emerge avahi like this:
USE="mdnsresponder-compat" emerge net-dns/avahi