OpenCV Error: Unknown error code -49 (Input file is empty) in cvOpenFileStorage, file /tmp/binarydeb

在vscode中运行ORB-SLAM2时出现终端出现这个错误:OpenCV Error: Unknown error code -49 (Input file is empty) in cvOpenFileStorage, file /tmp/binarydeb

 

vscode界面中显示:Unable to open 'raise.c': File not found (file:///build/glibc-LK5gWL/glibc-2.23/sysdeps/unix/sysv/linux/raise.c).

最终发现是launch.json文件的”argv“参数写错了,原来是

"args": [       "rosrun",
                "/home/llx/catkin_ws/src/ORB_SLAM2/Vocabulary/ORBvoc.txt",
                "/home/llx/catkin_ws/src/ORB_SLAM2/Examples/Monocular/TUM1.yaml"
                ],

现在是:

"args": [
                "/home/llx/catkin_ws/src/ORB_SLAM2/Vocabulary/ORBvoc.txt",
                "/home/llx/catkin_ws/src/ORB_SLAM2/Examples/Monocular/TUM1.yaml"
                ],

去处“rosrun”就可以,这个问题应该是参数数量错误,导致命令对应不上,vscode弄蒙了。

你可能感兴趣的:(vscode)