我正在尝试将QtFFmpegWrapper合并到我的程序中,但我的程序和提供的示例都不会与ffmpeg链接:
QVideoEncoder.obj:-1: Error: LNK2019: unresolved external symbol _avcodec_init referenced in function "protected: bool __thiscall QVideoEncoder::initCodec(void)" (?initCodec@QVideoEncoder@@IAE_NXZ)
QVideoDecoder.obj:-1: Error: LNK2001: unresolved external symbol _avcodec_init
QVideoEncoder.obj:-1: Error: LNK2019: unresolved external symbol _avcodec_thread_init referenced in function "public: bool __thiscall QVideoEncoder::createFile(class QString,unsigned int,unsigned int,unsigned int,unsigned int,unsigned int)" (?createFile@QVideoEncoder@@QAE_NVQString@@IIIII@Z)
QVideoEncoder.obj:-1: Error: LNK2019: unresolved external symbol _avcodec_open referenced in function "public: bool __thiscall QVideoEncoder::createFile(class QString,unsigned int,unsigned int,unsigned int,unsigned int,unsigned int)" (?createFile@QVideoEncoder@@QAE_NVQString@@IIIII@Z)
和10个左右更像这些...
链接时为什么会弹出这些? libs都在那里找到,看起来链接器似乎有问题......
我为我的项目使用以下设置:
一切都是32位。