-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
csrc/tflite_wrapper.hpp:1:10: fatal error: 'tensorflow/lite/interpreter.h' file not found #54
Comments
Did you clone this repo? Then, update submodules before cargo build. |
I clone this repo,in the submodles dir I run the command:
|
when I run the 'cargo build',the console output the error,I'm a new Rust developer,can you help me,thank you.
Compiling tflite v0.9.6 (/opt/paul/ubuntu/workspace/app/wasm/wasmedge-nodejs/tflite-rs)
warning: panic message is not a string literal
--> build.rs:156:24
|
156 | panic!(format!("Unable to copy libtensorflow-lite.a to {}", tf_lib_name.display()))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note:
#[warn(non_fmt_panic)]
on by default= note: this is no longer accepted in Rust 2021
= note: the panic!() macro supports formatting, so there's no need for the format!() macro here
help: remove the
format!(..)
macro call|
156 | panic!("Unable to copy libtensorflow-lite.a to {}", tf_lib_name.display())
| -- --
warning: 1 warning emitted
error: failed to run custom build command for
tflite v0.9.6 (/opt/paul/ubuntu/workspace/app/wasm/wasmedge-nodejs/tflite-rs)
Caused by:
process didn't exit successfully:
/opt/paul/ubuntu/workspace/app/wasm/wasmedge-nodejs/tflite-rs/target/debug/build/tflite-6f77aab17005c2de/build-script-build
(exit status: 101)--- stderr
csrc/tflite_wrapper.hpp:1:10: fatal error: 'tensorflow/lite/interpreter.h' file not found
csrc/tflite_wrapper.hpp:1:10: fatal error: 'tensorflow/lite/interpreter.h' file not found, err: true
thread 'main' panicked at 'Unable to generate bindings: ()', build.rs:237:40
stack backtrace:
0: 0x556f82b0d7c0 - std::backtrace_rs::backtrace::libunwind::trace::h34055254b57d8e79
at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5
1: 0x556f82b0d7c0 - std::backtrace_rs::backtrace::trace_unsynchronized::h8f1e3fbd9afff6ec
at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2: 0x556f82b0d7c0 - std::sys_common::backtrace::_print_fmt::h3a99a796b770c360
The text was updated successfully, but these errors were encountered: