jkvargas / russimp

Assimp bindings for Rust
Other
84 stars 27 forks source link

Why does it depend on Clang? #17

Closed notdanilo closed 3 years ago

jkvargas commented 3 years ago

It does need it if you want to compile Assimp by yourself. Otherwise you're good to go without it :) Valeu bro!

notdanilo commented 3 years ago

@jkvargas something is failing for me.

Adding this should be enough to compile it as a dependency, right?

[dependencies]
russimp = "0.2.3"

At first I got this error:

  thread 'main' panicked at 'Unable to find libclang: "couldn't find any valid shared libraries matching: ['clang.dll', 'libclang.dll'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (i
nvalid: [])"', C:\Users\dangu\.cargo\registry\src\github.com-1ecc6299db9ec823\bindgen-0.57.0\src/lib.rs:1975:31

And this is what I am facing after installing https://github.com/llvm/llvm-project/releases/download/llvmorg-12.0.1/LLVM-12.0.1-win64.exe

  wrapper.h:1:10: fatal error: 'assimp/cimport.h' file not found
  wrapper.h:1:10: fatal error: 'assimp/cimport.h' file not found, err: true
  thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ()', C:\Users\dangu\.cargo\registry\src\github.com-1ecc6299db9ec823\russimp-sys-0.2.4\build.rs:31:10
jkvargas commented 3 years ago

So, windows is a problem hehe. This package was mainly developed on linux. There is a branch which I am trying a windows build without success so far. I am trying to use vcpkg to build it.

notdanilo commented 3 years ago

@jkvargas yeah, I just realized it: https://github.com/jkvargas/russimp/runs/3645140896?check_suite_focus=true Where can I connect to you via an instant messaging?

notdanilo commented 3 years ago

If you want me to help you with this, drop me a message because I would like to understand the issue. Here is my Telegram profile: https://www.temporary-url.com/EB8687

jkvargas commented 3 years ago

hey mate, So, I don't use telegram. Do you have discord, signal, facebook maybe?

notdanilo commented 3 years ago

@jkvargas sure, it's https://www.facebook.com/notdanilo