Coder Social home page Coder Social logo

/MD vs2015 runtime, /MT? about ffmpeg HOT 4 CLOSED

dbyoung720 avatar dbyoung720 commented on July 17, 2024
/MD vs2015 runtime, /MT?

from ffmpeg.

Comments (4)

Sibras avatar Sibras commented on July 17, 2024

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.

kamisBB avatar kamisBB commented on July 17, 2024

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.

Sibras avatar Sibras commented on July 17, 2024

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.

kamisBB avatar kamisBB commented on July 17, 2024

thanks, i finish this problem, I delete the ./FFmpeg/SWP/obj duration and rebuild

from ffmpeg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.