Compiling rust-bindgen on Ubuntu -


Does anyone manage to compile at Ubuntu 14.04? I do not know, for example, how to constantly construct and link to libclang.so . I use night and day.

The following sets only executables, not macros.

I think you have git and rustc setup correctly

  $ git clone https: // github.  

/ Crabtw / rust-bindgen $ cd Rust-bindgen

Create a Library:

  $ rustc lib.rs  

To connect with a previously created library, make wrapping executable:

  $ rustc -L Bindgen.rs  

Run executable in this case on the Xlib header:

  $ ./bindgen -l xlib -o Xlib.rs /usr/include/X11/Xlib.h  

In that case, libclang is incorrect setup, in that case, pre-load the correct library and Pass the right option to quarrel:

  $ LD_PRELOAD = / usr / lib / libclang.so./bindgen -i / usr / lib / Clang / 3.4.2 / include -l xlib -o xlib.rs /usr/include/X11/Xlib.h  

To install the correct version of the clang, you try to install can do.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -