Page 1 of 1

LNK1104: cannot open file 'avdevice.lib'

Posted: Fri Dec 14, 2018 12:23 pm
by fahminlb33
I'm trying to use FFMPEG in my application. I'm creating a wrapper in C++/CLI, but the project doesn't want to compile. It leaves an error message of

Code: Select all

LNK1104: cannot open file 'avdevice.lib'
.

What I have done:
1. Added include folder to Additional Include Directories.
2. Added lib folder to Additional Library Directories.
3. Added

Code: Select all

avcodec.lib;avfilter.lib;avformat.lib;avutil.lib;swresample.lib;swscale.lib;%(AdditionalDependencies)
to Additional Dependecies.
4. Not using precompiled headers.
5. Set runtime library to Multi-threaded DLL.

I'm using ffmpeg-20181213-e5a0013-win32-dev from Zeranoe Build.