Comments (6)
It's difficult to say what exactly goes wrong with your setup, but the crate build script needs a way to find installed OpenCV and if it's installed to a non-standard location without any cmake or pkgconfig files to help it then you'll need to provide the correct paths yourself using the environment variables described here: https://github.com/twistedfall/opencv-rust?tab=readme-ov-file#environment-variables
from opencv-rust.
I found this, thank you 😄 .
from opencv-rust.
I want to ask sometinhg about setting environments. I created a config.toml file to set these variables. Will this method work? Or will it set the environments after building?
from opencv-rust.
The environment variables only have effect during build, not in runtime. The build script only reads variables from the environment, so you need a way to transfer these from cargo.toml
to the build script environment. I think cargo can do this for you, but I’ve never tried it myself: https://doc.rust-lang.org/cargo/reference/config.html#env
from opencv-rust.
yes I have tried this but it is not working. Still opencv cannot found. Are there any other suggestions ?
from opencv-rust.
oh wait i tried on the root folder now it works but i have another issue. It complains about clang;
a libclang
shared library is not loaded on this thread.
from opencv-rust.
Related Issues (20)
- Unable to statically link `OpenCV` without `OpenCL` support on windows.
- unresolved import opencv::face HOT 4
- FreeType2 bug: Casting CString::as_ptr() to mut is UB HOT 2
- Ability to disable rerun HOT 1
- Issue with environmental variables (no access to opencv2 folder) HOT 1
- `cargo build` works, but running the app does not
- TrackerKCF seems to be crash with Mat HOT 3
- 0.85 and 0.86 don't compile any more on M1 HOT 3
- Create code working for multiple platforms and versions HOT 5
- Help: How I convert *mut *mut u8 to a Mat?
- Help HOT 4
- Can not open file by videoio::VideoCapture::from_file when chinese characters in filename on Windows 10 HOT 1
- Struggling with descriptor matching HOT 1
- On rust nightly: 0.88.8 build fails on macOS: Generator process panicked: Any { .. } HOT 7
- Build Failing on MacOS when using vcpkg HOT 7
- Build failed on windows in nightly toolchain HOT 1
- Can't initialize VIdeoCapture from file HOT 3
- Cross compilation build doesn't read version.hpp HOT 4
- Can't build OpenCV Crate : failed to run custom build command for `clang-sys v1.7.0` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opencv-rust.