Open
Description
Before reporting an issue please first check the
troubleshooting guide. If
the issue you're encountering is not solved thereby please state the following in your bugreport:
- Operating system
5.6.10-arch1-1 GNU/Linux - The way you installed OpenCV: package, official binary distribution, manual compilation, etc.
via "packer" manager - OpenCV version
4.3.0 - Attach the full output of the following command from your project directory:
RUST_BACKTRACE=full cargo build -vv
Version
rustc 1.43.0 (4fb7144ed 2020-04-20)
Target
wasm32-unknown-unknown
CLI
cargo +stable build --release --target=wasm32-unknown-unknown
Compiling num-traits v0.2.11
Compiling opencv v0.34.0
error: failed to run custom build command for `opencv v0.34.0`
Caused by:
process didn't exit successfully: `/home/horky/Documents/WorkspaceRust/cvwasm/target/release/build/opencv-e2dc348207d786b2/build-script-build` (exit code: 1)
--- stderr
=== Environment configuration:
=== OPENCV_HEADER_DIR = None
=== OPENCV_PACKAGE_NAME = None
=== OPENCV_PKGCONFIG_NAME = None
=== OPENCV_LINK_LIBS = None
=== OPENCV_LINK_PATHS = None
=== OPENCV_INCLUDE_PATHS = None
=== PKG_CONFIG_PATH = None
=== VCPKG_ROOT = None
=== Setting up OpenCV library from pkg_config
Error: "Package opencv4 is not found, caused by: Cross compilation detected. Use PKG_CONFIG_ALLOW_CROSS=1 to override"
warning: build failed, waiting for other jobs to finish...
error: build failed
I didn't succeed to find a way of working OpenCV (rust+wasm) example on internet, is there a way to build it properly?
PS. Trivia I would like to rewrite my simple app from C++ intro rust
Metadata
Metadata
Assignees
Labels
No labels