From b482ed2bd41c0ea73e8385c55c6506705942a394 Mon Sep 17 00:00:00 2001
From: Stefan Kempinger Rust code → rust-opencv → OpenCV → Protobuf. Rust code → opencv-rust → OpenCV → Protobuf
My first theory was that the
- The conclusion was clear: the import code itself worked. It
- just didn’t work inside my main binary.
+ The conclusion was clear: the import code itself worked. Just not for me, for some reason.
protoc compiler
had generated code for the wrong architecture or endianess.
@@ -247,8 +247,7 @@ LD_LIBRARY_PATH=/path/to/libs:$LD_LIBRARY_PATH ./binary
debugging phase two
@@ -258,6 +257,7 @@ LD_LIBRARY_PATH=/path/to/libs:$LD_LIBRARY_PATH ./binarytflite with
use tflite::Tflite was enough to break OpenCV.
+ Two unrelated libraries were somehow breaking each other.
After months of debugging, rebuilding, and manually patching
- binaries, everything finally works again. Until the next
- nixpkgs update, of course.
+ binaries, everything finally works again, with the added benefit of cross-compiling, instead of either building on the Raspberry Pi or under emulation.