我正在尝试在 Mac 中使用 libvidcap 捕获视频 我在安装 libvidcap 时遇到以下错误:
quicktime/sg_manager.c:73: error: 'struct sg_source' has no member named 'channel'
quicktime/sg_manager.c:74: error: 'sgDeviceListIncludeInputs' undeclared (first use in this function)
quicktime/sg_manager.c:75: error: 'device_list' undeclared (first use in this function)
quicktime/sg_manager.c:82: error: 'dlr' undeclared (first use in this function)
quicktime/sg_manager.c:103: error: 'SGDeviceInputListPtr' undeclared (first use in this function)
quicktime/sg_manager.c:103: error: expected ';' before 'ilr'
quicktime/sg_manager.c:109: error: 'ilr' undeclared (first use in this function)
quicktime/sg_manager.c:128: warning: implicit declaration of function 'SGDisposeDeviceList'
quicktime/sg_manager.c:128: error: 'struct sg_source' has no member named 'grabber'
我在源代码中添加了 QuickTime/QuickTimeComponents.h
header ,但这并没有解决问题。我还需要做什么?
最佳答案
./configure CFLAGS="-arch i386"LDFLAGS="-arch i386"
关于c - 关于如何将 Quicktime.framework 与 libvidcap 链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6580336/