AltF02 / x11-rs

Rust bindings for X11 libraries
https://docs.rs/x11
MIT License
206 stars 66 forks source link

Can't find xlib_xcb #85

Closed goertzenator closed 6 years ago

goertzenator commented 6 years ago

I am struggling to bring in all the x libs needed to make winit work, and I am stuck on xlib_xcb. I suspect I actually have all the libs, but I just don't have /usr/lib/pkgconfig/xlib_xcb.pc. That .pc file does not appear to exist in the xorg sources, so I am wondering if something os-specific is happening here. Which Linux's are known to work well so I can direct my investigation better?

I've tried both NixOs and Gentoo. Both fail to provide an xlib_xcb.pc from libX11 and libxcb.

goertzenator commented 6 years ago

Alright, I've figured out what's going on: The xlib_xcb pkgconfig request will fail on all linuxes (I just tried Ubuntu). However at runtime libX11-xcb.so will still be found because of library search paths. But NixOs doesn't do library search paths, so this fails on NixOS.

I'll do a PR for this.

(ref https://github.com/tomaka/winit/issues/493)

erlepereira commented 6 years ago

Hey - Thanks for the above, will have a closer look myself this week sometime. ( Still getting my head around to things here )

goertzenator commented 6 years ago

I actually submitted a merge request at the gitlab repo because that's where crates.io points. There's 3 repos for this project; confusing.

erlepereira commented 6 years ago

Yep, there is/was a plan to move there. Let me ping the original maintainer and see what their preferred choice is. Will update :)

ghost commented 6 years ago

Original maintainer here. Whoops, I forgot that I pointed the crate to gitlab in a panic. @erlepereira Would you like to keep it here? I can revert it if so.

erlepereira commented 6 years ago

hmm.... I'm actually torn between the two for the same reasons, but I think for now I'd like to keep it here, Thanks @Daggerbot . I still see a lot of the rustacean's around here and more importantly crate is still tied closer here. I want to start completing the move to the MIT License and some other ideas.. continuing your good work. Will make a list/roadmap on the issues/wiki

@goertzenator terribly sorry for the confusion, but could you please send a PR here, thanks.

ghost commented 6 years ago

I opened #86 which has @goertzenator's changes from gitlab, plus more to fix the gitlab/github confusion that I caused in 2.18.0.