ViveSoftware / ViveMediaDecoder

A high performance video decoding Unity plugin for Windows.
http://u3d.as/usf
Other
133 stars 36 forks source link

How to link ffmpeg libraries while compiling the native source code in Visual Studio #21

Closed spaul13 closed 5 years ago

spaul13 commented 5 years ago

While compiling the native source code on Microsoft visual studio (to generate dll), I am getting the following linking errors (LNK2019)

_Severity Code Description Project File Line Suppression State Error LNK2019 unresolved external symbol av_strerror referenced in function "private: void __cdecl DecoderFFmpeg::printErrorMsg(int)" (?printErrorMsg@DecoderFFmpeg@@AEAAXH@Z) Severity Code Description Project File Line Suppression State Error LNK2019 unresolved external symbol av_get_channel_layout_nb_channels referenced in function "private: int _cdecl DecoderFFmpeg::initSwrContext(void)"

several other functions like av_dict_set, av_dict_free, avcodec_decode2 which is related to the ffmpeg libraries. Can anyone (@kyo8568131) please tell me how to properly add "ffmpeg" as dependencies to this project and link it properly?