servo / servo

Servo, the embeddable, independent, memory-safe, modular, parallel web rendering engine
https://servo.org
Mozilla Public License 2.0
28.41k stars 3.03k forks source link

Failing to compile dbus and x11 #11411

Closed mikezaby closed 8 years ago

mikezaby commented 8 years ago

I am trying to compile servo but it's failing in x11 and dbus packages.

The errors:

error: failed to run custom build command for `x11 v2.5.1`
Process didn't exit successfully: `/home/miza/projects/servo/target/debug/build/x11-6c84dccffcbd24b3/build-script-build` (exit code: 101)
--- stderr
thread '<main>' panicked at 'called `Result::unwrap()` on an `Err` value: "`\"pkg-config\" \"--libs\" \"--cflags\" \"x11\"` did not exit successfully: exit code: 1\n--- stdout\nPackage x11 was not found in the pkg-config search path.\nPerhaps you should add the directory containing `x11.pc\'\nto the PKG_CONFIG_PATH environment variable\nNo package \'x11\' found\n"', ../src/libcore/result.rs:785
note: Run with `RUST_BACKTRACE=1` for a backtrace.

Build completed in 0:00:01.376296
error: failed to run custom build command for `dbus v0.3.3`
Process didn't exit successfully: `/home/miza/projects/servo/target/debug/build/dbus-7f7af798babde0c1/build-script-build` (exit code: 101)
--- stderr
thread '<main>' panicked at 'called `Result::unwrap()` on an `Err` value: "`\"pkg-config\" \"--libs\" \"--cflags\" \"dbus-1\"` did not exit successfully: exit code: 1\n--- stdout\nPackage dbus-1 was not found in the pkg-config search path.\nPerhaps you should add the directory containing `dbus-1.pc\'\nto the PKG_CONFIG_PATH environment variable\nNo package \'dbus-1\' found\n"', ../src/libcore/result.rs:785
note: Run with `RUST_BACKTRACE=1` for a backtrace.

Build completed in 0:00:05.081256

I am using Debian Stable and I think I have installed the required dev packages: libx11-dev, libdbus-1-dev, libdbus-glib-1-dev

jdm commented 8 years ago

@mikezaby Can you verify that by running the appropriate apt-get command to install them?

mikezaby commented 8 years ago

I said I think because i am not sure if there are any other dependency that I don't know. The packages that I mentioned before are installed.

libdbus-1-dev is already the newest version.
libdbus-glib-1-dev is already the newest version.
libx11-dev is already the newest version.
mbrubeck commented 8 years ago

If you run pkg-config --cflags dbus-1 at the shell, does it print out anything? Is the $PKG_CONFIG_PATH variable set in your environment? Are you passing any

For some reason the pkg-config command is failing when run by these build scripts.

mikezaby commented 8 years ago

This issue is reloved, I had installed brew in my user, that had installed and overide the system pkg-config. I removed the brew and now it compiles normaly. Sorry for the false alarm :disappointed:

ghost commented 7 years ago

[x@x servo]$ pkg-config --cflags dbus-1 Package dbus-1 was not found in the pkg-config search path. Perhaps you should add the directory containing `dbus-1.pc' to the PKG_CONFIG_PATH environment variable No package 'dbus-1' found


[x@x servo]$ echo $PKG_CONFIG_PATH /opt/rh/rh-dotnetcore11/root/usr/lib64/pkgconfig


[x@x servo]$ yum list installed | grep dbus ... dbus.x86_64 1:1.6.12-17.el7 @anaconda/7.3
dbus-glib.x86_64 0.100-7.el7 @anaconda/7.3
dbus-libs.x86_64 1:1.6.12-17.el7 @anaconda/7.3
dbus-python.x86_64 1.1.1-9.el7 @anaconda/7.3
dbus-x11.x86_64 1:1.6.12-17.el7 @anaconda/7.3
dleyna-connector-dbus.x86_64 0.2.0-1.el7 @anaconda/7.3
python-slip-dbus.noarch 0.4.0-2.el7 @anaconda/7.3


[x@x servo]$ yum search dbus 4Загружены модули: langpacks, product-id, search-disabled-repos, subscription-manager ... =========================================================================== N/S matched: dbus ============================================================================ abrt-dbus.x86_64 : ABRT DBus service cairo-dock-plug-ins-dbus.x86_64 : Plug-ins files for Cairo-Dock related to Dbus collectd-modbus.x86_64 : Modbus plugin for collectd dbus-c++-devel.x86_64 : Development files for dbus-c++ dbus-python-devel.i686 : Libraries and headers for dbus-python dbus-python-devel.x86_64 : Libraries and headers for dbus-python dbusmenu-qt.i686 : A Qt implementation of the DBusMenu protocol dbusmenu-qt.x86_64 : A Qt implementation of the DBusMenu protocol dbusmenu-qt-devel.i686 : Development files for dbusmenu-qt dbusmenu-qt-devel.x86_64 : Development files for dbusmenu-qt dbusmenu-qt-devel-docs.noarch : API documentation for dbusmenu-qt dbusmenu-qt5.x86_64 : A Qt5 implementation of the DBusMenu protocol dbusmenu-qt5-devel.x86_64 : Development files for dbusmenu-qt5 dleyna-connector-dbus-devel.i686 : Development files for dleyna-connector-dbus dleyna-connector-dbus-devel.x86_64 : Development files for dleyna-connector-dbus ghc-dbus-devel.x86_64 : Haskell dbus library development files kf5-kdbusaddons.x86_64 : KDE Frameworks 5 Tier 1 addon with various classes on top of QtDBus kf5-kdbusaddons-devel.x86_64 : Development files for kf5-kdbusaddons libdbusmenu-debuginfo.x86_64 : Debug information for package libdbusmenu libdbusmenu-doc.noarch : Document files for libdbusmenu libdbusmenu-gtk2-devel.x86_64 : Development files for libdbusmenu libdbusmenu-gtk3-devel.x86_64 : Development files for libdbusmenu libdbusmenu-jsonloader-devel.x86_64 : Test lib development files for libdbusmenu libdbusmenu-tools.x86_64 : Development tools for the dbusmenu libraries libmodbus.x86_64 : A Modbus library libmodbus-devel.x86_64 : Development files for libmodbus mingw32-dbus-static.noarch : Static version of MinGW Windows port of DBus library mingw64-dbus-static.noarch : Static version of MinGW Windows port of DBus library perl-Net-DBus.x86_64 : Use and provide DBus services perl-Net-DBus-GLib.x86_64 : Perl extension for the DBus GLib bindings perl-Net-DBus-GLib-debuginfo.x86_64 : Debug information for package perl-Net-DBus-GLib perl-Net-DBus-debuginfo.x86_64 : Debug information for package perl-Net-DBus python-slip-dbus.noarch : Convenience functions for dbus services dbus.x86_64 : D-BUS message bus dbus-c++.x86_64 : Native C++ bindings for D-Bus dbus-devel.i686 : Development files for D-BUS dbus-devel.x86_64 : Development files for D-BUS dbus-doc.noarch : Developer documentation for D-BUS dbus-glib.i686 : GLib bindings for D-Bus dbus-glib.x86_64 : GLib bindings for D-Bus dbus-glib-devel.i686 : Libraries and headers for the D-Bus GLib bindings dbus-glib-devel.x86_64 : Libraries and headers for the D-Bus GLib bindings dbus-libs.i686 : Libraries for accessing D-BUS dbus-libs.x86_64 : Libraries for accessing D-BUS dbus-python.i686 : D-Bus Python Bindings dbus-python.x86_64 : D-Bus Python Bindings dbus-sharp.x86_64 : C# bindings for D-Bus dbus-sharp-devel.x86_64 : Development files for D-Bus Sharp dbus-sharp-glib.x86_64 : C# bindings for D-Bus glib main loop integration dbus-sharp-glib-devel.x86_64 : Development files for D-Bus Sharp dbus-x11.x86_64 : X11-requiring add-ons for D-BUS dleyna-connector-dbus.i686 : D-Bus connector for dLeyna services dleyna-connector-dbus.x86_64 : D-Bus connector for dLeyna services ghc-dbus.x86_64 : Haskell client library for the D-Bus IPC system golang-github-godbus-dbus-devel.noarch : Go client bindings for D-Bus jack-audio-connection-kit-dbus.x86_64 : Jack D-Bus launcher kf5-modemmanager-qt.x86_64 : A Tier 1 KDE Frameworks module wrapping ModemManager DBus API kf5-networkmanager-qt.x86_64 : A Tier 1 KDE Frameworks 5 module that wraps NetworkManager DBus API libdbusmenu.x86_64 : A library that pulling out some code out of indicator-applet libdbusmenu-devel.x86_64 : A library that pulling out some code out of indicator-applet libdbusmenu-gtk2.x86_64 : A library that pulling out some code out of indicator-applet libdbusmenu-gtk3.x86_64 : A library that pulling out some code out of indicator-applet libdbusmenu-jsonloader.x86_64 : Test lib development files mingw32-dbus.noarch : MinGW Windows port of D-Bus mingw64-dbus.noarch : MinGW Windows port of D-Bus python-dbusmock.noarch : Mock D-Bus objects python34-dbus.x86_64 : D-Bus bindings for python 3.4 qt-qdbusviewer.x86_64 : D-Bus debugger and viewer qt5-qdbusviewer.x86_64 : D-Bus debugger and viewer sssd-dbus.x86_64 : The D-Bus responder of the SSSD usbguard-dbus.x86_64 : USBGuard D-Bus Service

on my rhel 7.3 machine