GithubHelp home page GithubHelp logo

Building with colcon (ROS2) about opencv-rust HOT 6 CLOSED

Necro-U avatar Necro-U commented on July 20, 2024 1
Building with colcon (ROS2)

from opencv-rust.

Comments (6)

twistedfall avatar twistedfall commented on July 20, 2024 1

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.

Necro-U avatar Necro-U commented on July 20, 2024 1

I found this, thank you 😄 .

from opencv-rust.

Necro-U avatar Necro-U commented on July 20, 2024

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.

twistedfall avatar twistedfall commented on July 20, 2024

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.

Necro-U avatar Necro-U commented on July 20, 2024

yes I have tried this but it is not working. Still opencv cannot found. Are there any other suggestions ?

from opencv-rust.

Necro-U avatar Necro-U commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.