Comments (4)
This one is not likely to be changed. Originally the projects used /MT but they were changed to /MD as when linking in multiple libraries /MT can cause issues due to multiple different instantiations of the runtime (memory functions are the main culprit). So /MD is used as it performs better. Also most applications linking in the libs/dlls are generally built using /MD and mixing in different runtimes is a bad idea so the libs/dlls are made to match the common applications /MD.
It is recommended to use /MD. Most people just bundle the redistributable with there applications and auto install it at the same time. If you absolutely must use /MT then just change the corresponding setting in the Visual Studio projects and recompile it yourself.
from ffmpeg.
I use vs2015, I change the corresponding setting in the Visual Studio projects with /MT(all project,i check multiple times), when recompile the project, there had problem:
5>libavcodec.lib(api.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
5>libavcodec.lib(api.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
from ffmpeg.
Well I dont speak whatever '检测到' is, so it s a bit hard to debug an error thats in another language. In future make sure error messages are in english when asking for support.
Anyway the error appears to be because api.c from the avcodec project and main.c from the libavfilter project are compiled using different runtime configurations. i.e. Not all files have been compiled with /MT. Clean all projects and force a rebuild. If that still doesnt work then you clearly havnt vhanged all projects to /MT.
from ffmpeg.
thanks, i finish this problem, I delete the ./FFmpeg/SWP/obj duration and rebuild
from ffmpeg.
Related Issues (20)
- simple_idct_wrap.asm and simple_idct10_wrap.asm content HOT 2
- LNK2019 xxx __imp__fribidi_charset_to_unicode,function _shape_text xxx D:\xxx\ffmpeg-debug\source\FFmpeg\SMP\libavfilterd.lib(vf_drawtext.obj)
- Faster process?
- there is no libsrt? HOT 1
- cant build on vs2022 HOT 5
- ffmpeg 7.0 release? HOT 1
- I ****ING LOVE YOU FOR HELP ALL OF US BIULD THIS!!!!!!!!!!!!!!!!!!!!!!!!!!
- when i compile in DebugDLL x64 mode ,it cannot work. HOT 1
- FFmpeg.exe compile failed
- Open camera crash HOT 8
- Error LNK2019: Unresolvable external symbol _udiv128, referenced in function __gmpn_tdiv_QR HOT 6
- Add filter "scale_cuda" HOT 8
- Unknown input format: 'dshow' HOT 3
- nvdec and libmfx now seem to depend on winrt and uwp HOT 2
- x265 winrt vs2022 build error HOT 1
- when i use libffmpeg awalys show [-s] [-r rate2] <file1.sw> <file2.sw> HOT 1
- vs2019 debug solution failed。 HOT 4
- Decode AV1 error HOT 7
- build error HOT 3
- vs2019 ffmpeg lib how to build MTd/MT, I modify the project properties C/C++ -> Code generation, changed to MTd/MT, compile ffmpeg, ffplay, ffprobe project error. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ffmpeg.