系统环境ubuntu12.04,开发环境Qt
执行程序卡在如下代码段:
插入下面的代码分析
打印出错误代码是-2,错误原因是no file or directory
我是将视频文件放在了Qt的工程目录下,但是找不到,于是我将视频移动到debug目录下,或者将当前路径视为debug路径时,编译正确,程序执行成功!
参考:http://www.360doc.com/content/14/0515/15/2306903_377849306.shtml
转自:http://blog.csdn.net/bobsweetie/article/details/50935779