1. 概述
此模块属于obs示例模块,默认不生成;若需要生成该模块,在cmake时,配置BUILD_TESTS开关。
2. 运行
编译完后运行win-test.exe时,可能产生错误:
a. 找不到obs.dll,无法继续执行代码。
1649661985(1).jpg
解决方案:将编译目录rundir/Debug(Release)/bin/32bit下的类库复制到test/win/Debug(Release);
b. VS调试时,弹出对话框提示“Couldn't initialize video”
1649662242(1).jpg
解决方案:将编译目录rundir/Debug(Release)/data和rundir/Debug(Release)/obs-plugins复制到编译目录;
c.提示依赖Qt的类库QtCore等
解决方案:删除rundir/Debug(Release)/obs-plugins目录下frontend-tools.dll(pdb)等依赖Qt的插件