tzbob / jnaeration-xcb

JNAerations of the XCB headers to link against libxcb (and in the future others).
1 stars 0 forks source link

[question] status? #1

Open Airblader opened 9 years ago

Airblader commented 9 years ago

Hi,

After a lot of searching, I finally came across this. It seems to be the closest thing I could find to XCB bindings for Java. May I ask what the status of this project is? Are they usable bindings? Have you worked with them?

I'd love to toy around with XCB in Java, so not having to create bindings myself would be a huge timesaver.

tzbob commented 9 years ago

Hey,

I know your pain... These bindings should work to some extent. I have played around with them myself and successfully wrote TinyWM. I made this project in the hope that I could create modular bindings for XCB extensions but I never got to it.

There are other projects that are more mature though, a large monolithic SWIG-generated library for example: https://github.com/Zubnix/xcb4j

That project has had manual intervention and includes manual bugfixes that the generator introduced, I never bothered to check for those in this project so it's up to you. If you do decide to start with this project I recommend trying to play around with JNAerator to see if newer versions have better results. If so, send me a pull request!

Hope that helped, good luck!

Airblader commented 9 years ago

Thanks for your reply :) I came across xcb4j before, but had trouble running it. I've asked the author there now as well. I also tried playing around with jnaerator, but for some reason I'm having trouble with it as well as it will generate the bindings, but not compile if I want it to build a standalone JAR.