It seems like conflicts among different OpenCV versions?

asked 2018-06-09 02:50:01 -0600

tengfei han gravatar image

when I try to run roslaunch main.launchin the terminal,

OpenCV Error: Bad argument (Invalid pointer to file storage) in cvGetFileNodeByName, file /build/buildd/opencv-2.4.8+dfsg1/modules/core/src/persistence.cpp, line 740
terminate called after throwing an instance of 'cv::Exception'
  what():  /build/buildd/opencv-2.4.8+dfsg1/modules/core/src/persistence.cpp:740: error: (-5) Invalid pointer to file storage in function cvGetFileNodeByName

I have found some similar questions, but I don't know what detailed steps they did due new to OpenCV, it seems like a conflict between opencv2.4.8 and 4.0.0 so all OpenCV version information declared in CMakeLists.txt was changed to

find_package(OpenCV 4.0.0)

but it still cannot fix this problem, I am not sure which versions it should use when running roslaunch main.launch

I hope someone could give little suggestions, thank you!

edit retag flag offensive close merge delete

Comments

nobody can help ROS users ;(

your 2.4.8 opencv, that came with ROS is really stone age.

i also don't think, you can use your outdated ROS install with a more modern opencv version.

berak gravatar imageberak ( 2018-06-09 02:56:21 -0600 )edit