You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running make release, compiling fails and gives warnings about libevent and fails when it imports dbus/dbus.h.
Explanation
I noticed some required packages were missing in the README (pkg-config and ragel). I installed those and the other ones mentioned in the README. I tried building it on my Fedora 27 laptop and in a Fedora 26 Docker container and had the same result.
# make release
Package libevent was not found in the pkg-config search path.
Perhaps you should add the directory containing `libevent.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libevent', required by 'virtual:world', not found
Package 'libcurl', required by 'virtual:world', not found
Package 'expat', required by 'virtual:world', not found
Package 'dbus-1', required by 'virtual:world', not found
Package 'openssl', required by 'virtual:world', not found
Package libevent was not found in the pkg-config search path.
Perhaps you should add the directory containing `libevent.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libevent', required by 'virtual:world', not found
Package 'libcurl', required by 'virtual:world', not found
Package 'expat', required by 'virtual:world', not found
Package 'dbus-1', required by 'virtual:world', not found
Package 'openssl', required by 'virtual:world', not found
Package libevent was not found in the pkg-config search path.
Perhaps you should add the directory containing `libevent.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libevent', required by 'virtual:world', not found
Package 'libcurl', required by 'virtual:world', not found
Package 'expat', required by 'virtual:world', not found
Package 'dbus-1', required by 'virtual:world', not found
Package 'openssl', required by 'virtual:world', not found
Package libevent was not found in the pkg-config search path.
Perhaps you should add the directory containing `libevent.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libevent', required by 'virtual:world', not found
Package 'libcurl', required by 'virtual:world', not found
Package 'expat', required by 'virtual:world', not found
Package 'dbus-1', required by 'virtual:world', not found
Package 'openssl', required by 'virtual:world', not found
Package libevent was not found in the pkg-config search path.
Perhaps you should add the directory containing `libevent.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libevent', required by 'virtual:world', not found
Package 'libcurl', required by 'virtual:world', not found
Package 'expat', required by 'virtual:world', not found
Package 'dbus-1', required by 'virtual:world', not found
Package 'openssl', required by 'virtual:world', not found
Package libevent was not found in the pkg-config search path.
Perhaps you should add the directory containing `libevent.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libevent', required by 'virtual:world', not found
Package 'libcurl', required by 'virtual:world', not found
Package 'expat', required by 'virtual:world', not found
Package 'dbus-1', required by 'virtual:world', not found
Package 'openssl', required by 'virtual:world', not found
Package libevent was not found in the pkg-config search path.
Perhaps you should add the directory containing `libevent.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libevent', required by 'virtual:world', not found
Package 'libcurl', required by 'virtual:world', not found
Package 'expat', required by 'virtual:world', not found
Package 'dbus-1', required by 'virtual:world', not found
Package 'openssl', required by 'virtual:world', not found
cc -std=c11 -Wpedantic -D_GNU_SOURCE -Wall -Wextra -Wimplicit-fallthrough=0 -O2 -fno-omit-frame-pointer -DBUSNAME=org.mpris.scrobbler -DAPPLICATION_NAME=\"mpris-scrobbler\" src/daemon.c -ompris-scrobbler
src/daemon.c:5:10: fatal error: dbus/dbus.h: No such file or directory
#include <dbus/dbus.h>
^~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:96: mpris-scrobbler] Error 1
The text was updated successfully, but these errors were encountered:
Unfortunately I don't know the exact packages on every distribution. For Ubuntu 14.04, for example, I had to get them in order for travis to work.
The rule of thumb is that you need the development equivalents for all of the listed libraries in the compile dependencies. (I have updated the readme to reflect this)
If you find this list for your version of Fedora, please add it here as a comment and I can add it to the documentation.
@mariusor Thanks! This was exactly the issue. I didn't realize I needed the development packages. Of course, when I installed them, everything worked fine with gcc and make.
Don't worry on the package dependencies for Fedora. I'm working on packaging it into an RPM here, and I'll send a PR to update the README once I get through it.
Summary
When running
make release
, compiling fails and gives warnings aboutlibevent
and fails when it importsdbus/dbus.h
.Explanation
I noticed some required packages were missing in the README (
pkg-config
andragel
). I installed those and the other ones mentioned in the README. I tried building it on my Fedora 27 laptop and in a Fedora 26 Docker container and had the same result.Expected results
make release
Actual results
make release
dbus
Stacktrace
This stacktrace is from my Fedora 26 container.
The text was updated successfully, but these errors were encountered: