bus1 / dbus-broker

Linux D-Bus Message Broker
https://github.com/bus1/dbus-broker/wiki
Apache License 2.0
677 stars 79 forks source link

Can't locate expat #331

Closed xzaz closed 8 months ago

xzaz commented 9 months ago

I have a build issue:

Dependency libcshquote-1 found: YES 1.1.0 (overridden)
Dependency libcstdaux-1 found: YES 1.5.0 (overridden)
Library m found: YES
Run-time dependency threads found: YES
Run-time dependency expat found: NO (tried pkgconfig and cmake)

Further logging:

Library m found: YES
Run-time dependency threads found: YES
Pkg-config binary for 1 is cached.
Determining dependency 'expat' with pkg-config executable '/usr/bin/pkg-config'
env[PKG_CONFIG_PATH]:
Called `/usr/bin/pkg-config --modversion expat` -> 1

CMake binary for 1 is cached.

Determining dependency 'expat' with CMake executable '/usr/bin/cmake'
Try CMake generator: auto
Calling CMake (['/usr/bin/cmake']) in /home/e/dbusbroker/dbus-broker/build/meson-private/cmake_expat with:
  - "-DNAME=expat"
  - "-DARCHS=x86_64-linux-gnu"
  - "-DVERSION="
  - "-DCOMPS="
  - "--trace-expand"
  - "--trace-format=json-v1"
  - "--no-warn-unused-cli"
  - "--trace-redirect=cmake_trace.txt"
  - "-DCMAKE_TOOLCHAIN_FILE=/home/e/dbusbroker/dbus-broker/build/meson-private/cmake_expat/CMakeMesonToolchainFile.cmak>
  - "."
Run-time dependency expat found: NO (tried pkgconfig and cmake)

meson.build:75:8: ERROR: Dependency "expat" not found, tried pkgconfig and cmake

calling pkg-config:

/usr/bin/pkg-config --modversion expat
Package expat was not found in the pkg-config search path.
Perhaps you should add the directory containing `expat.pc'
to the PKG_CONFIG_PATH environment variable
No package 'expat' found

Now i want to find expat.pc but can't find it while it is installed trough apt. Any ideas what I am missing? Something obvious I guess.

xzaz commented 9 months ago

Yhe, so fixed with

apt-get install libexpat1-dev
dvdhrm commented 8 months ago

Thanks for the report! I will close it as fixed!