[GH-ISSUE #198] No package 'avahi-compat-libdns_sd' found #162

Closed
opened 2026-05-05 05:27:34 -06:00 by gitea-mirror · 18 comments
Owner

Originally created by @yesi on GitHub (Dec 14, 2018).
Original GitHub issue: https://github.com/debauchee/barrier/issues/198

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"

log.txt

Originally created by @yesi on GitHub (Dec 14, 2018). Original GitHub issue: https://github.com/debauchee/barrier/issues/198 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" [log.txt](https://github.com/debauchee/barrier/files/2680630/log.txt)
Author
Owner

@yesi commented on GitHub (Dec 14, 2018):

When compiling using +qt5 flag, it is alright.
But when -qt5, it is not.

<!-- gh-comment-id:447380664 --> @yesi commented on GitHub (Dec 14, 2018): When compiling using +qt5 flag, it is alright. But when -qt5, it is not.
Author
Owner

@MC-Mihai commented on GitHub (Dec 16, 2018):

Do you have libavahi-compat-libdnssd-dev installed? Important to be the dev version.

<!-- gh-comment-id:447674558 --> @MC-Mihai commented on GitHub (Dec 16, 2018): Do you have libavahi-compat-libdnssd-dev installed? Important to be the dev version.
Author
Owner

@yesi commented on GitHub (Dec 17, 2018):

I can't find such libraries : avahi, compat, libdnssd...

<!-- gh-comment-id:447884651 --> @yesi commented on GitHub (Dec 17, 2018): I can't find such libraries : avahi, compat, libdnssd...
Author
Owner

@AdrianKoshka commented on GitHub (Dec 17, 2018):

It's one library, not 3 seperate ones.

<!-- gh-comment-id:447930230 --> @AdrianKoshka commented on GitHub (Dec 17, 2018): It's one library, not 3 seperate ones.
Author
Owner

@MC-Mihai commented on GitHub (Dec 17, 2018):

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.

<!-- gh-comment-id:447934841 --> @MC-Mihai commented on GitHub (Dec 17, 2018): 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.
Author
Owner

@AdrianKoshka commented on GitHub (Dec 17, 2018):

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)

<!-- gh-comment-id:447966001 --> @AdrianKoshka commented on GitHub (Dec 17, 2018): > 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)
Author
Owner

@yesi commented on GitHub (Dec 18, 2018):

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.

<!-- gh-comment-id:448182652 --> @yesi commented on GitHub (Dec 18, 2018): > > 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.
Author
Owner

@MC-Mihai commented on GitHub (Dec 18, 2018):

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.

<!-- gh-comment-id:448197671 --> @MC-Mihai commented on GitHub (Dec 18, 2018): 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.
Author
Owner

@AdrianKoshka commented on GitHub (Dec 18, 2018):

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.

<!-- gh-comment-id:448299496 --> @AdrianKoshka commented on GitHub (Dec 18, 2018): > 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.
Author
Owner

@bilalix commented on GitHub (May 16, 2019):

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.

<!-- gh-comment-id:493078634 --> @bilalix commented on GitHub (May 16, 2019): 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.
Author
Owner

@AdrianKoshka commented on GitHub (Jul 17, 2019):

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

<!-- gh-comment-id:512250043 --> @AdrianKoshka commented on GitHub (Jul 17, 2019): 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`
Author
Owner

@alexbobp commented on GitHub (Oct 5, 2019):

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.

<!-- gh-comment-id:538640729 --> @alexbobp commented on GitHub (Oct 5, 2019): 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.
Author
Owner

@viewdeckcloud commented on GitHub (Jun 24, 2020):

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 ;-) )

<!-- gh-comment-id:648878591 --> @viewdeckcloud commented on GitHub (Jun 24, 2020): 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 ;-) )
Author
Owner

@shymega commented on GitHub (Jun 24, 2020):

Try the libavahi-compat-libdnssd-dev package.

<!-- gh-comment-id:648886923 --> @shymega commented on GitHub (Jun 24, 2020): Try the `libavahi-compat-libdnssd-dev` package.
Author
Owner

@viewdeckcloud commented on GitHub (Jun 24, 2020):

Thanks for the swift response !
but... already installed ...

libavahi-compat-libdnssd-dev is already the newest version (0.7-3.1ubuntu1.2).

<!-- gh-comment-id:648888547 --> @viewdeckcloud commented on GitHub (Jun 24, 2020): Thanks for the swift response ! but... already installed ... libavahi-compat-libdnssd-dev is already the newest version (0.7-3.1ubuntu1.2).
Author
Owner

@viewdeckcloud commented on GitHub (Jun 25, 2020):

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 !

<!-- gh-comment-id:649520932 --> @viewdeckcloud commented on GitHub (Jun 25, 2020): 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 !
Author
Owner

@Roshan2077 commented on GitHub (Jan 22, 2025):

sorry in advance incase i missed something silly

i am having the same issue : E: Unable to locate package avahi-compat-libdns_sd
while running : sudo apt install avahi-compat-libdns_sd

libavahi-compat-libdnssd-dev installed just fine

edit: it works for "sudo apt-get install libavahi-compat-libdnssd-dev"

<!-- gh-comment-id:2607442837 --> @Roshan2077 commented on GitHub (Jan 22, 2025): sorry in advance incase i missed something silly i am having the same issue : E: Unable to locate package avahi-compat-libdns_sd while running : sudo apt install avahi-compat-libdns_sd libavahi-compat-libdnssd-dev installed just fine edit: it works for "sudo apt-get install libavahi-compat-libdnssd-dev"
Author
Owner

@nbolton commented on GitHub (Jan 23, 2025):

Please try Deskflow or Input Leap as Barrier is no longer in development.

https://github.com/deskflow/deskflow
https://github.com/input-leap/input-leap

AFAIK, Input Leap still uses Bonjour/Avahii but we removed that entirely in Deskflow.

<!-- gh-comment-id:2609792290 --> @nbolton commented on GitHub (Jan 23, 2025): Please try Deskflow or Input Leap as Barrier is no longer in development. https://github.com/deskflow/deskflow https://github.com/input-leap/input-leap AFAIK, Input Leap still uses Bonjour/Avahii but we removed that entirely in Deskflow.
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#162
No description provided.