Open UKnowWhoIm opened 2 years ago
Hi!
Unfortunately you've picked a somewhat challenging first Rust project to build... getting the toolchain working to build tflite can be a pain.
This is very likely an issue with your remarkable toolchain setup. (In particular, tflite is not finding the toolchain-provided libraries correctly.) Some questions to answer:
memory.h
under one of the paths mentioned in EXTRA_CLANG_ARGS
in the build-rm.sh
script?cargo build
completing successfully?sysroots/cortexa9hf-neon-oe-linux-gnueabi
to sysroots/cortexa9hf-neon-remarkable-linux-gnueabi
. It exists in these paths, Similarly cortexa9hf-neon-remarkable-linux-gnueabi
is used instead of cortexa9hf-neon-oe-linux-gnueabi
everywhere
error[E0425]: cannot find value `m` in this scope
--> src/ui/widget.rs:349:36
|
349 | handlers.on_ink(&sink, m);
| ^ help: a local variable with a similar name exists: `_m`
warning: an associated function with this name may be added to the standard library in the future --> src/ui/text.rs:324:52 | 324 | for token in text.split_ascii_whitespace().intersperse(" ") { | ^^^^^^^^^^^ |
---|
= note: `#[warn(unstable_name_collisions)]` on by default
warning: unused import: Coordinate3D
--> src/ml.rs:10:30 |
10 | use flo_curves::{Coordinate, Coordinate3D}; | ^^^^^^^^^^^^ |
---|
= note: #[warn(unused_imports)]
on by default
Mmm... looks like the latest versions of the toolchain have moved some things around, which breaks the helper script. I'll look into it.
I've pulled down the latest available toolchain and got the build script working again... does that work any better?
(I notice you're using the rm10x toolchain... I assume that's the Remarkable 1 version? Shouldn't make a difference...)
Hey I setup libremarkable in my system with cargo and tried running
build_rm.sh
. It is producing an errorHere's the full backtrace
I just setup Rust for this project, I've no prior experience in it, any help would be greatly appreciated.