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

failure when using self-build opencv

asked 2013-04-11 00:57:52 -0500

I make a small change to opencv's source file (i'm sure the change is right) and rebuid it with cmake and make. Then i copy the corresponding lib files to replace their counterparts under /ros/fuerte/lib. When i run my program which needs opencv there are weired runtime problems (program just die and exit suddenly) although they compile successfully. And the problem just come up randomly. e.g., when processing images, it run well for some images while fail for the other. when i use the shipped opencv's lib it's always fine so i'm sure it's not a problem of my codes. What i should pay attention to when building opencv by myself? I know that on windows we should distinguish the debug version from the release version. So which version does Fuerte's shipped opencv use? debug, release, or release with debug info?

besides, i also use this method to change the version of opencv used with ROS. i.e., replace opencv's include and lib files under ros/fuerte/include and ros/fuerte/lib respectively. There are also weird runtime errors as above.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-11-23 14:00:15 -0500

tfoote gravatar image

You need to configure with the correct install paths and install. But you should not do that into /opt/ros as it will break anything else using those libraries unless you're very careful.

Anything that depends on your changed opencv should be rebuilt from source as well.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-04-11 00:57:52 -0500

Seen: 514 times

Last updated: Nov 23 '14