Skip to content
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

Linux: Missing library; tweak needed to build #112

Open
coljac opened this issue Nov 13, 2024 · 0 comments
Open

Linux: Missing library; tweak needed to build #112

coljac opened this issue Nov 13, 2024 · 0 comments
Labels
Bug Something isn't working

Comments

@coljac
Copy link

coljac commented Nov 13, 2024

Logs

2024-11-13T05:38:07.756313Z  WARN StableView: Version 1.1.0 on linux
2024-11-13T05:38:07.756622Z  WARN StableView: The configuration file path is: "/home/coljac/.config/stableview/config.toml"

Describe the bug

Trying to run the latest release on linux, I see this:

./StableView: error while loading shared libraries: libopencv_videoio.so.4.5d: cannot open shared object file: No such file or directory

Steps to reproduce

Download latest release
Extract and run according to instructions

References (optional)

No response

Additional info (optional)

To get it working, I had to build it myself. This results from cargo build:

Compiling mozjpeg v0.9.8 Compiling native-tls v0.2.12 Compiling palette v0.6.1 Compiling nokhwa-core v0.1.2 Compiling clipboard_wayland v0.2.2 Compiling sctk-adwaita v0.8.1 Compiling x11-dl v2.21.0 Compiling onnxruntime-sys v0.0.14 (https://github.com/nbigaouette/onnxruntime-rs#31f62235) error: failed to run custom build command for v4l2-sys-mit v0.2.0...

Caused by: process didn't exit successfully: /home/coljac/build/StableView/target/debug/build/v4l2-sys-mit-8517f3365e754b96/build-script-build (exit status: 101) --- stderr thread 'main' panicked at /home/coljac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bindgen-0.56.0/src/ir/context.rs:846:9: "v4l2_pix_format_union_(anonymous_at_/usr/include/linux/videodev2_h_500_2)" is not a valid Ident note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

After doing some research on the issue and dependencies, I was able to fix this by changing:

nokhwa = {version = "0.10.3", features = ["input-msmf", "input-v4l"]}

to

nokhwa = {version = "0.10.5", features = ["input-msmf", "input-v4l"]}

in Cargo.toml. Then I was able to build successfully.

Discord Username (optional)

coljac

@coljac coljac added the Bug Something isn't working label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant