Coder Social home page Coder Social logo

Comments (5)

Sibras avatar Sibras commented on September 18, 2024

You can use the project in 2012 but not in 2010. FFmpeg requires C99 support which is not available in older versions of Visual Studio.

The default Visual Studio project files found in the repo are for Visual Studio 2013. To use the projects "as is" under Visual Studio you simply need to change the project property "Platform Toolset" found in "Configuration Properties->General" to the version of the toolset you have installed (Visual Studio 2012 is v110). However the default projects also require that all the dependency projects found in the ShiftMediaProject repo have also been built and are available to link against.

If you only want a basic FFmpeg build or simply want to choose which dependencies are linked against then you can use the project_generator project to build an executable that takes standard FFmpeg configure options and will use those to build a new project. The generator will also detect what version of Visual Studio you have installed and will automatically create the correct project files (meaning you do not need to change project properties as in the above step).
Specific details on this can be found at: http://siliconandlithium.blogspot.com.au/2014/01/building-ffmpeg-in-visual-studio.html

from ffmpeg.

crseantal avatar crseantal commented on September 18, 2024

Thanks,

but now

compiler think

buildInterDependenciesHelper( {"amovie_filter"} , {"avformat"}, vLibs );

has some syntax error

from ffmpeg.

Sibras avatar Sibras commented on September 18, 2024

Thats an issue with incomplete C99 support in older versions of Visual Studio. Current git master has been updated to to use C89 compatible code for the above error. I dont have Visual Studio 2012 or older installed any more so let me know if it builds now.

from ffmpeg.

crseantal avatar crseantal commented on September 18, 2024

Thanks a lot. I have build project_generate successfully.

But when I build the project "ffmpeg", more than hundred of syntax errors occur.

Like \libavutil\samplefmt.c(35) \libavutil\rational.c(47) \libavutil\pixdesc.c(145) ..... and more

I guess it is also the C89-to-C99 problem ,too.

I think the best way for me to successfully build the projects is to install the visual studio 2013.

from ffmpeg.

Sibras avatar Sibras commented on September 18, 2024

OK. Looks like a minimum of 2013 is required to build FFmpeg.

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.