ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

could not find a package configuration file provided by OpenCV

asked 2022-02-18 03:24:25 -0600

Sam123 gravatar image

updated 2022-03-10 04:35:00 -0600

I getting this error while building my project dir ,it is already installed still giving error as Add the installation prefix of OpenCV to CMAKE_PREFIX_PATH

OpenCVConfig.cmake Opencv-config.cmake

i am working with ROS2 foxy ,18.04.1-Ubuntu on AWS ec2 server. plz help me resolve this issue.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-02-18 04:03:53 -0600

ljaniec gravatar image

It will be easier if you could prepare minimal (non-)working example project on GitHub to debug or at least mention which project are you using (LGSVL simulator and ROS2 bridge? OpenCV?).

It seems like your CMakeLists.txt doesn't understand how to locate those files - can you try these hints? That's it, the building OpenCV from source or executing CMake with command similar to cmake -DCMAKE_PREFIX_PATH="PATH/TO/INSTALL/FOLDER:/OpenCV" ..

edit flag offensive delete link more

Comments

i am working with ROS2 bridge and LGSVL but getting error for OpenCV and already followed those hints which you provided but it won't work for me.

Sam123 gravatar image Sam123  ( 2022-02-18 04:36:20 -0600 )edit

It should be already in your description then. If you can - write everything with details + share your project so we could check it on our side. Did you install OpenCV from source? Is the project on the correct repository branch (foxy or similar?)? You should add links to everything you have used in your question too.

ljaniec gravatar image ljaniec  ( 2022-02-18 04:52:25 -0600 )edit

using Autoware and LGSVL simulator and ROS2 bridge(foxy) but while doing setup itself(colcon build) getting errors i followed autoware-auto docs. to install OpenCV i reffred this link https://linuxize.com/post/how-to-inst... but issue not resloved.

Sam123 gravatar image Sam123  ( 2022-02-21 02:09:07 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2022-02-18 03:24:25 -0600

Seen: 664 times

Last updated: Mar 10 '22