一、错误
libmfx.lib(mfx_plugin_hive.obj) : error LNK2019: unresolved external symbol _swscanf_s referenced in function "private: bool __thiscall MFX::MFXPluginsInFS::ParseKVPair(wchar_t *,wchar_t *,class MFX::PluginDescriptionRecord &)" (?ParseKVPair@MFXPluginsInFS@MFX@@AAE_NPA_W0AAVPluginDescriptionRecord@2@@Z)
二、解决办法
将libmfx_vs2015.lib改成libmfx.lib即可
三、编译语句
3.1 libmfx库存放路径:
mfx
|_include
|_mfx
|_lib
3.2编译器:VS2017
3.3命令示例:
./configure \--prefix="f:\build" \
--toolchain=msvc \
--enable-cross-compile \
--enable-shared \
--disable-static \
--arch=x86_64 \
--extra-cflags=-I"./mfx/include" \
--extra-ldflags=-LIBPATH:"./mfx/lib" \
--enable-libmfx