You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hopefully this is a simple solution to something basic I might have missed.
Trying to utilize the static feature to compile a project that consumes faiss-rs as a crate.
Example Cargo.toml
[dependencies]
...
faiss = { version = "0.12.1", features = ["static"] }
Run cargo build
Compiling json v0.12.4
Compiling jni v0.21.1
Compiling faiss v0.12.1
error: could not find native static library `faiss`, perhaps an -L flag is missing?
error: could not compile `faiss-sys` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
I'm not super experienced here but, isn't the static library faiss what the static feature is supposed to build and provide in the first place? Am I missing something basic here? Sorry if this is a dumb question.
The text was updated successfully, but these errors were encountered:
You are right that the crate would automatically build the native library. Maybe this quirk happens specifically in your system. Can you provide more details about your OS, Rust toolchain, and C++ compiler?
Hopefully this is a simple solution to something basic I might have missed.
Trying to utilize the
static
feature to compile a project that consumesfaiss-rs
as a crate.Example
Cargo.toml
cargo build
I'm not super experienced here but, isn't the static library
faiss
what the static feature is supposed to build and provide in the first place? Am I missing something basic here? Sorry if this is a dumb question.The text was updated successfully, but these errors were encountered: