#9881(build system:new): Support CMake build system.
#9881: Support CMake build system. -------------------------------------+------------------------------------- Reporter: Haowei Hsu | Type: | enhancement Status: new | Priority: normal Component: build | Version: git- system | master Keywords: cmake | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Since CMake is the most popular build system of C/C++, I would expect that FFmpeg can support using CMake to compile the source code. Moreover, I hope that CMake can provide Config files for `find_package()` and Imported Targets. Normally, there would be the following files generated for `find_package()` in Config Mode: - `ffmpeg-config.cmake` - `ffmpeg-config-version.cmake` - `ffmpeg-targets.cmake` - `ffmpeg-targets-[debug|release].cmake` As for Imported Targets, consider FFmpeg has several components, I suggest that it take Qt or Poco for reference, providing the following Component Imported Targets with the namespace `ffmpeg::`: - `ffmpeg::avcodec` - `ffmpeg::avformat` - `ffmpeg::avfilter` - `ffmpeg::avdevice` - `ffmpeg::avutil` - `ffmpeg::swscale` - `ffmpeg::swresample` - `ffmpeg::postproc` -- Ticket URL: <https://trac.ffmpeg.org/ticket/9881> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#9881: Support CMake build system. -------------------------------------+------------------------------------- Reporter: Haowei Hsu | Owner: (none) Type: enhancement | Status: closed Priority: normal | Component: build | system Version: git-master | Resolution: wontfix Keywords: cmake | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Changes (by Elon Musk): * status: new => closed * resolution: => wontfix -- Ticket URL: <https://trac.ffmpeg.org/ticket/9881#comment:1> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#9881: Support CMake build system. -------------------------------------+------------------------------------- Reporter: Haowei Hsu | Owner: (none) Type: enhancement | Status: closed Priority: normal | Component: build | system Version: git-master | Resolution: wontfix Keywords: cmake | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by Haowei Hsu): Replying to [comment:1 Elon Musk]: Why not support using CMake to build the FFmpeg project? Does it have some obstacles? It seems that CMake is more convenient to compile the Cross-Platform projects. If there are some obstacles indeed, then I suggest to provide some '''CMake-specific Config Files''' for '''find_package()''' at least. -- Ticket URL: <https://trac.ffmpeg.org/ticket/9881#comment:2> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#9881: [feature] Support CMake build system. -------------------------------------+------------------------------------- Reporter: Haowei Hsu | Owner: (none) Type: enhancement | Status: closed Priority: normal | Component: build | system Version: git-master | Resolution: wontfix Keywords: cmake | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Changes (by Haowei Hsu): * summary: Support CMake build system. => [feature] Support CMake build system. -- Ticket URL: <https://trac.ffmpeg.org/ticket/9881#comment:3> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#9881: [feature] Support CMake build system. -------------------------------------+------------------------------------- Reporter: Haowei Hsu | Owner: (none) Type: enhancement | Status: closed Priority: normal | Component: build | system Version: git-master | Resolution: wontfix Keywords: cmake | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by Balling): Cmake is extra dependency. Why does linux kernel not do it? Same here. -- Ticket URL: <https://trac.ffmpeg.org/ticket/9881#comment:4> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#9881: [feature] Support CMake build system. -------------------------------------+------------------------------------- Reporter: Haowei Hsu | Owner: (none) Type: enhancement | Status: closed Priority: normal | Component: build | system Version: git-master | Resolution: wontfix Keywords: cmake | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by Haowei Hsu): Replying to [comment:4 Balling]:
Cmake is extra dependency. Why does linux kernel not do it? Same here.
It does not matter anyway, ffmpeg really requires a big framework to comfortably check everything out and compile all together.
What does it matter with '''"linux kernel"'''? What do you mean '''"big framework"'''? I was thinking that since lots of C/C++ libraries use CMake as their build system, it is better for FFmpeg to do so, as well. Besides, using CMake to build projects is more convienient and easy-to-use in Windows. -- Ticket URL: <https://trac.ffmpeg.org/ticket/9881#comment:5> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#9881: [feature] Support CMake build system. -------------------------------------+------------------------------------- Reporter: Haowei Hsu | Owner: (none) Type: enhancement | Status: closed Priority: normal | Component: build | system Version: git-master | Resolution: wontfix Keywords: cmake | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by Elon Musk): Sorry, bunch of FFmpeg devs are not switching to cmake anytime soon. Besides there are more important task to be done first. -- Ticket URL: <https://trac.ffmpeg.org/ticket/9881#comment:6> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#9881: [feature] Support CMake build system. -------------------------------------+------------------------------------- Reporter: Haowei Hsu | Owner: (none) Type: enhancement | Status: closed Priority: normal | Component: build | system Version: git-master | Resolution: wontfix Keywords: cmake | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by Balling): linux kernel https://github.com/torvalds/linux big framework: https://github.com/rdp/ffmpeg-windows-build-helpers and many others. -- Ticket URL: <https://trac.ffmpeg.org/ticket/9881#comment:7> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
participants (1)
-
FFmpeg