Ask Your Question

Revision history [back]

It seems like conflicts among different OpenCV versions?

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!