From b482ed2bd41c0ea73e8385c55c6506705942a394 Mon Sep 17 00:00:00 2001 From: Stefan Kempinger Date: Mon, 10 Nov 2025 12:21:46 +0100 Subject: [PATCH] Improve cross-compile page wording and links Add links to opencv-rust and the OpenCV ONNX importer, clarify the debugging narrative (note that two unrelated libraries conflicted), and mention cross-compiling as the final outcome. --- public_html/page/cross-compile.html | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/public_html/page/cross-compile.html b/public_html/page/cross-compile.html index bc8f56f..34d0423 100644 --- a/public_html/page/cross-compile.html +++ b/public_html/page/cross-compile.html @@ -224,7 +224,7 @@ LD_LIBRARY_PATH=/path/to/libs:$LD_LIBRARY_PATH ./binary -

Rust code → rust-opencv → OpenCV → Protobuf.

+

Rust code → opencv-rustOpenCV → Protobuf

My first theory was that the 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

- 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.

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.

the real root cause

@@ -286,8 +286,7 @@ LD_LIBRARY_PATH=/path/to/libs:$LD_LIBRARY_PATH ./binarythe end (for now)

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.