wusyong/libappindicator-sys

Build requirements

Opened this issue · 4 comments

rhn commented

What are the necessary development tools?

Naively building on Fedora 24 with just libappindicator-gtk3-devel results in error:

$ rustc --version
rustc 1.17.0 (56124baa9 2017-04-24)

$ cargo run
   Compiling libappindicator-sys v0.1.1
error: failed to run custom build command for `libappindicator-sys v0.1.1`
process didn't exit successfully: `/home/.rhn_slow/play/imap/buzz/target/debug/build/libappindicator-sys-cabc27217221bca5/build-script-build` (exit code: 101)
--- stdout
cargo:rustc-link-lib=appindicator3
cargo:rustc-link-search=native=/usr/lib64
cargo:rustc-link-lib=appindicator3
cargo:rustc-link-lib=dbusmenu-glib
cargo:rustc-link-lib=gtk-3
cargo:rustc-link-lib=gdk-3
cargo:rustc-link-lib=pangocairo-1.0
cargo:rustc-link-lib=pango-1.0
cargo:rustc-link-lib=atk-1.0
cargo:rustc-link-lib=cairo-gobject
cargo:rustc-link-lib=cairo
cargo:rustc-link-lib=gdk_pixbuf-2.0
cargo:rustc-link-lib=gio-2.0
cargo:rustc-link-lib=gobject-2.0
cargo:rustc-link-lib=glib-2.0
/usr/include/glib-2.0/glib/gmacros.h:38:10: fatal error: 'stddef.h' file not found, err: true

--- stderr
/usr/include/glib-2.0/glib/gmacros.h:38:10: fatal error: 'stddef.h' file not found
thread 'main' panicked at 'Unable to generate bindings: ()', /checkout/src/libcore/result.rs:859
note: Run with `RUST_BACKTRACE=1` for a backtrace.

$ find /usr/ | grep stddef.h
/usr/lib/gcc/x86_64-redhat-linux/6.3.1/include/stddef.h
/usr/src/kernels/4.11.5-100.fc24.x86_64/include/uapi/linux/stddef.h
/usr/src/kernels/4.11.5-100.fc24.x86_64/include/linux/stddef.h
/usr/include/linux/stddef.h

I am getting the same error on Xubuntu 18.04

rhn commented

Sorry, I forgot what I did to solve it. I don't remember being angry over it, so it's definitely some package in the standard repos.

FYI, I bumped into it as well.
Problem was I installed libclang*.
sudo apt-get install clang solved it for me.

Same issue, ty @cryptomeow