Skip to content

Instantly share code, notes, and snippets.

@uilianries
Created November 27, 2024 14:15
Show Gist options
  • Save uilianries/1ab22aa6f78754c192c25b537977db0e to your computer and use it in GitHub Desktop.
Save uilianries/1ab22aa6f78754c192c25b537977db0e to your computer and use it in GitHub Desktop.
CCI Issue 26047 - FFMpeg working on Windows
> conan install conanfile.txt -of build -o "*/*:shared=True"
======== Input profiles ========
Profile host:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=17
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=193
os=Windows
[options]
*/*:shared=True
[tool_requires]
*: cmake/3.30.1
[conf]
tools.build:verbosity=quiet
tools.cmake.cmaketoolchain:generator=Ninja
tools.compilation:verbosity=quiet
Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=17
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=193
os=Windows
[tool_requires]
*: cmake/3.30.1
[conf]
tools.build:verbosity=verbose
tools.cmake.cmaketoolchain:generator=Ninja
tools.compilation:verbosity=verbose
======== Computing dependency graph ========
Graph root
conanfile.txt: C:\Users\uilia\AppData\Local\Temp\ffmpeg-consume\conanfile.txt
Requirements
brotli/1.1.0#d56d7bb9ca722942aba17369cb5c0519 - Cache
bzip2/1.0.8#d00dac990f08d991998d624be81a9526 - Cache
cpuinfo/cci.20231129#15e94782b128bee8bfd047f6102a4d21 - Cache
dav1d/1.4.3#5e2459e132c77183bd16d23d12fd8f4a - Cache
ffmpeg/6.1.1#4b590de9f9ac60b4049180dd38cc1511 - Cache
freetype/2.13.2#7934d59c447d72edcd56025dc60e1aeb - Cache
libaom-av1/3.6.1#a2b22c70d6fce43887881431808ab8a6 - Cache
libfdk_aac/2.0.3#0115f6598be7303e042684e3a846b12d - Cache
libiconv/1.17#22e0f08d9c011d8b0e1728120b679c3b - Cache
libmp3lame/3.100#44b12d19316eb2b223d98d3e75dae438 - Cache
libpng/1.6.44#9e1aa08fb46946c7c91e4ae03bd49811 - Cache
libsvtav1/2.1.0#d8c1783004eefc3980710bbc72ba8a4f - Cache
libvpx/1.14.1#3b2a56aea1e29b9a8f7753030c620f38 - Cache
libwebp/1.3.2#52f69c4a31c5cf033fdd9230d77a8e38 - Cache
libx264/cci.20240224#3c88c23b44dfb42c6d5ccbc5c04900c7 - Cache
libx265/3.4#719e50b2b2c3fd1b9133fea12da42c62 - Cache
ogg/1.3.5#062626875f5c8c59f069f76f148098ef - Cache
openh264/2.4.1#04c3c70db91d4a2bd45ee807c77bad25 - Cache
openjpeg/2.5.2#6f7b733e151d1bbf5ed05cbabb846828 - Cache
openssl/3.3.2#9f9f130d58e7c13e76bb8a559f0a6a8b - Cache
opus/1.4#54631f551fc450783fb2df8cd63f80a2 - Cache
vorbis/1.3.7#37e58f52e59a6232199b34ef402714a6 - Cache
xz_utils/5.4.5#51e5a6e6564f4ea3afd79def01f035ad - Cache
zlib/1.3.1#f52e03ae3d251dec704634230cd806a2 - Cache
Build requirements
cmake/3.30.1#6d832cf2d46f6ec969ca5ed5b41f91eb - Cache
meson/1.2.2#21b73818ba96d9eea465b310b5bbc993 - Cache
meson/1.3.2#26ce8a76a36cc275cdfee1d757bc6561 - Cache
meson/1.4.0#024dfac41ea5570cb1aec3ea6fe34d0a - Cache
meson/1.4.1#edd3ecbcb4b295d2f084be5bb944f1af - Cache
msys2/cci.latest#5a31efa2bde593541fd5ac3bcc50c01c - Cache
nasm/2.15.05#058c93b2214a49ca1cfe9f8f26205568 - Cache
nasm/2.16.01#d0aebbd20ccbb6ad9c9c753ab708098c - Cache
ninja/1.11.1#77587f8c8318662ac8e5a7867eb4be21 - Cache
ninja/1.12.1#fd583651bf0c6a901943495d49878803 - Cache
pkgconf/2.1.0#27f44583701117b571307cf5b5fe5605 - Cache
pkgconf/2.2.0#6462942a22803086372db44689ba825f - Cache
strawberryperl/5.32.1.1#707032463aa0620fa17ec0d887f5fe41 - Cache
yasm/1.3.0#fb800a15413dca19bfaef9e4b5d50694 - Cache
Resolved version ranges
libpng/[>=1.6 <2]: libpng/1.6.44
ninja/[>=1.10.2 <2]: ninja/1.12.1
openssl/[>=1.1 <4]: openssl/3.3.2
zlib/[>=1.2.11 <2]: zlib/1.3.1
Options conflicts
zlib/1.3.1:shared=True (current value)
libpng/1.6.44->shared=False
freetype/2.13.2->shared=False
openssl/3.3.2->shared=False
bzip2/1.0.8:shared=True (current value)
freetype/2.13.2->shared=False
It is recommended to define options values in profiles, not in recipes
======== Computing necessary packages ========
libfdk_aac/2.0.3: Main binary package '8a7bc3bb230a7341224fa09bd37626591ba56f3a' missing
libfdk_aac/2.0.3: Checking 3 compatible configurations
libfdk_aac/2.0.3: Found compatible package '79c7c02f38aba9a2251f4091daf91ea3b11c0234': compiler.cppstd=14
libvpx/1.14.1: Main binary package '44e852efc58c786492646cb19a98c96a7b1d4095' missing
libvpx/1.14.1: Checking 3 compatible configurations
libvpx/1.14.1: Found compatible package 'a41a3c9132f76c03420a0d58c94f179496b2c6c1': compiler.cppstd=14
libsvtav1/2.1.0: Main binary package '286e55ffb5ed96c569089c9f8b243f9f8be6ceab' missing
libsvtav1/2.1.0: Checking 3 compatible configurations
libsvtav1/2.1.0: Found compatible package '1224ce45082c49295959704cbf86169095bdb2ab': compiler.cppstd=14
libx265/3.4: Main binary package 'b97fe49ddbbd6d5a5995de42438552434f947050' missing
libx265/3.4: Checking 3 compatible configurations
libx265/3.4: Found compatible package '7d5fbdf0c50fabb842fa49939babf742b9caf84e': compiler.cppstd=14
Requirements
brotli/1.1.0#d56d7bb9ca722942aba17369cb5c0519:b1952fbae57f6d64961543510bdb9faf7ec51552#16cf4826e56a548b949a0e0c821aea99 - Cache
bzip2/1.0.8#d00dac990f08d991998d624be81a9526:95ed98d13cb41115dc2e8ad81c80ced4f6e650a9#3b7fbda28e81b5c5fc83b4e1efc64250 - Cache
dav1d/1.4.3#5e2459e132c77183bd16d23d12fd8f4a:83d8a936fc94a213c03e9bdd2b2ac45b54a4fe93#76d72eeb461f23b1d1416e4bed5958ff - Cache
ffmpeg/6.1.1#4b590de9f9ac60b4049180dd38cc1511:bc371fda7eddcb2adf11f6a05dbfffc301ad35d3#123356f8b322263be29086123eec3be5 - Cache
freetype/2.13.2#7934d59c447d72edcd56025dc60e1aeb:d4998f8f054d0a6bf66580de8535d9b397781f30#4b0ee16fdb1f3fdf8e49406cc5cfbc3f - Cache
libaom-av1/3.6.1#a2b22c70d6fce43887881431808ab8a6:c87f34709eed67f0b1c88ebb9598f3a2e6ed805d#4a7b3ca67cf238708f5c72e2eff9c4e5 - Cache
libfdk_aac/2.0.3#0115f6598be7303e042684e3a846b12d:79c7c02f38aba9a2251f4091daf91ea3b11c0234#4c14a69616d4846e44ec2dba1f38afbd - Cache
libiconv/1.17#22e0f08d9c011d8b0e1728120b679c3b:f7dcd1cec4586c154a242a765a1de011300db8e2#cc56e4b0804e898d559cc2d46a5aac32 - Cache
libmp3lame/3.100#44b12d19316eb2b223d98d3e75dae438:f7dcd1cec4586c154a242a765a1de011300db8e2#1141e131d79e406d656ce4f93f421c28 - Cache
libpng/1.6.44#9e1aa08fb46946c7c91e4ae03bd49811:8f46d5317296b4e1deb1ac4a83f4b0d7f254ef52#01aabddc2b75d964f420445e5378b0a8 - Cache
libsvtav1/2.1.0#d8c1783004eefc3980710bbc72ba8a4f:1224ce45082c49295959704cbf86169095bdb2ab#5258ecfece3922ff8ef0feb4f62ae8b1 - Cache
libwebp/1.3.2#52f69c4a31c5cf033fdd9230d77a8e38:bde66b2c5b81b016597c51ea6f0fc478b4230de1#85fd65cef8c395b2c1a76a35aa9d1ecb - Cache
libx264/cci.20240224#3c88c23b44dfb42c6d5ccbc5c04900c7:f119a9c6004670f4ba65b5b0c520f307620cb026#4f4dfb5057456ced8fb93b38de4963d4 - Cache
libx265/3.4#719e50b2b2c3fd1b9133fea12da42c62:7d5fbdf0c50fabb842fa49939babf742b9caf84e#e0451b73a67f2566483441c421685a3b - Cache
ogg/1.3.5#062626875f5c8c59f069f76f148098ef:f7dcd1cec4586c154a242a765a1de011300db8e2#60ff1e94bc115d22f49f5d74269eef2d - Cache
openh264/2.4.1#04c3c70db91d4a2bd45ee807c77bad25:8a7bc3bb230a7341224fa09bd37626591ba56f3a#9b61c5c6bbc8865402e79f8321188c17 - Cache
openjpeg/2.5.2#6f7b733e151d1bbf5ed05cbabb846828:f7dcd1cec4586c154a242a765a1de011300db8e2#a335f2374b60a5d907606cff2e038b7b - Cache
openssl/3.3.2#9f9f130d58e7c13e76bb8a559f0a6a8b:94f2e7fb21c868ad6194182053bd5dde6469b8c8#324c5b1d91a9d2b04c35e2e11e5ef694 - Cache
opus/1.4#54631f551fc450783fb2df8cd63f80a2:2134485a2e1c464a97e94bf54502683cc80bc343#a4df75d9128fc202ebf24fc2f691f74f - Cache
vorbis/1.3.7#37e58f52e59a6232199b34ef402714a6:bd840d9b5e7e0c4520dedeb1ccb072afeac8c753#8c8d0b77fdd2430b62c77a1bad1938f0 - Cache
xz_utils/5.4.5#51e5a6e6564f4ea3afd79def01f035ad:f7dcd1cec4586c154a242a765a1de011300db8e2#293ea03cffaed01490d73b337fb2d95a - Cache
zlib/1.3.1#f52e03ae3d251dec704634230cd806a2:f7dcd1cec4586c154a242a765a1de011300db8e2#f4badaed3cda12a073c79a21a8fd963a - Cache
Build requirements
cmake/3.30.1#6d832cf2d46f6ec969ca5ed5b41f91eb:522dcea5982a3f8a5b624c16477e47195da2f84f#e4039405f7640830990126c02c0c9959 - Cache
Skipped binaries
cpuinfo/cci.20231129, libvpx/1.14.1, meson/1.2.2, meson/1.3.2, meson/1.4.0, meson/1.4.1, msys2/cci.latest, nasm/2.15.05, nasm/2.16.01, ninja/1.11.1, ninja/1.12.1, pkgconf/2.1.0, pkgconf/2.2.0, strawberryperl/5.32.1.1, yasm/1.3.0
======== Installing packages ========
cmake/3.30.1: Already installed! (1 of 23)
cmake/3.30.1: Appending PATH environment variable: C:\Users\uilia\.conan2\p\cmake3081ce9d742b2\p\bin
brotli/1.1.0: Already installed! (2 of 23)
bzip2/1.0.8: Already installed! (3 of 23)
libfdk_aac/2.0.3: Already installed! (4 of 23)
libmp3lame/3.100: Already installed! (5 of 23)
libwebp/1.3.2: Already installed! (6 of 23)
ogg/1.3.5: Already installed! (7 of 23)
openjpeg/2.5.2: Already installed! (8 of 23)
opus/1.4: Already installed! (9 of 23)
xz_utils/5.4.5: Already installed! (10 of 23)
zlib/1.3.1: Already installed! (11 of 23)
libaom-av1/3.6.1: Already installed! (12 of 23)
libiconv/1.17: Already installed! (13 of 23)
dav1d/1.4.3: Already installed! (14 of 23)
libsvtav1/2.1.0: Already installed! (15 of 23)
libx264/cci.20240224: Already installed! (16 of 23)
libx265/3.4: Already installed! (17 of 23)
openh264/2.4.1: Already installed! (18 of 23)
libpng/1.6.44: Already installed! (19 of 23)
vorbis/1.3.7: Already installed! (20 of 23)
openssl/3.3.2: Already installed! (21 of 23)
freetype/2.13.2: Already installed! (22 of 23)
ffmpeg/6.1.1: Already installed! (23 of 23)
WARN: deprecated: Usage of deprecated Conan 1.X features that will be removed in Conan 2.X:
WARN: deprecated: 'env_info' used in: bzip2/1.0.8, freetype/2.13.2, dav1d/1.4.3, libiconv/1.17, openssl/3.3.2, cmake/3.30.1
WARN: deprecated: 'cpp_info.names' used in: libpng/1.6.44, bzip2/1.0.8, brotli/1.1.0, vorbis/1.3.7, freetype/2.13.2, libiconv/1.17, libx264/cci.20240224, opus/1.4, libfdk_aac/2.0.3, libwebp/1.3.2, openjpeg/2.5.2, openssl/3.3.2, xz_utils/5.4.5, zlib/1.3.1, ogg/1.3.5
WARN: deprecated: 'cpp_info.build_modules' used in: freetype/2.13.2, bzip2/1.0.8, openjpeg/2.5.2, openssl/3.3.2, xz_utils/5.4.5
WARN: deprecated: 'cpp_info.filenames' used in: freetype/2.13.2, libfdk_aac/2.0.3
WARN: deprecated: 'user_info' used in: freetype/2.13.2
======== Finalizing install (deploy, generators) ========
conanfile.txt: Writing generators to C:\Users\uilia\AppData\Local\Temp\ffmpeg-consume\build
conanfile.txt: Generator 'CMakeToolchain' calling 'generate()'
conanfile.txt: CMakeToolchain generated: conan_toolchain.cmake
conanfile.txt: CMakeToolchain: Preset 'conan-release' added to CMakePresets.json.
(cmake>=3.23) cmake --preset conan-release
(cmake<3.23) cmake <path> -G Ninja -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_BUILD_TYPE=Release
conanfile.txt: CMakeToolchain generated: C:\Users\uilia\AppData\Local\Temp\ffmpeg-consume\build\CMakePresets.json
conanfile.txt: CMakeToolchain generated: C:\Users\uilia\AppData\Local\Temp\ffmpeg-consume\CMakeUserPresets.json
conanfile.txt: Generator 'CMakeDeps' calling 'generate()'
conanfile.txt: CMakeDeps necessary find_package() and targets for your CMakeLists.txt
find_package(ffmpeg)
target_link_libraries(... ffmpeg::ffmpeg)
conanfile.txt: Generator 'VirtualRunEnv' calling 'generate()'
conanfile.txt: Generating aggregated env files
conanfile.txt: Generated aggregated env files: ['conanbuild.bat', 'conanrun.bat']
Install finished successfully
> cmake.exe -G "Visual Studio 17 2022" -S . -B build -DCMAKE_TOOLCHAIN_FILE=build/conan_toolchain.cmake -DCMAKE_VERBOSE_MAKEFILE=ON
-- Using Conan toolchain: C:/Users/uilia/AppData/Local/Temp/ffmpeg-consume/build/conan_toolchain.cmake
-- Conan toolchain: Setting CMAKE_MSVC_RUNTIME_LIBRARY=$<$<CONFIG:Release>:MultiThreadedDLL>
-- Conan toolchain: C++ Standard 17 with extensions OFF
-- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.19045.
-- The CXX compiler identification is MSVC 19.33.31630.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.33.31629/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Conan: Component target declared 'ffmpeg::avutil'
-- Conan: Component target declared 'ffmpeg::swscale'
-- Conan: Component target declared 'ffmpeg::swresample'
-- Conan: Component target declared 'ffmpeg::postproc'
-- Conan: Component target declared 'ffmpeg::avcodec'
-- Conan: Component target declared 'ffmpeg::avformat'
-- Conan: Component target declared 'ffmpeg::avfilter'
-- Conan: Component target declared 'ffmpeg::avdevice'
-- Conan: Target declared 'ffmpeg::ffmpeg'
-- Cannot locate shared library: avdevice
-- Cannot locate shared library: avfilter
-- Cannot locate shared library: avformat
-- Cannot locate shared library: avcodec
-- Cannot locate shared library: postproc
-- Cannot locate shared library: swresample
-- Cannot locate shared library: swscale
-- Cannot locate shared library: avutil
-- Cannot locate shared library: avdevice
-- Cannot locate shared library: avfilter
-- Cannot locate shared library: avformat
-- Cannot locate shared library: avcodec
-- Cannot locate shared library: postproc
-- Cannot locate shared library: swresample
-- Cannot locate shared library: swscale
-- Cannot locate shared library: avutil
-- Conan: Target declared 'LibLZMA::LibLZMA'
-- Conan: Including build module from 'C:/Users/uilia/.conan2/p/xz_ut4d9dd9c1dda4d/p/lib/cmake/conan-official-xz_utils-variables.cmake'
-- Conan: Target declared 'Iconv::Iconv'
-- Conan: Target declared 'Freetype::Freetype'
-- Conan: Target declared 'PNG::PNG'
-- Conan: Target declared 'ZLIB::ZLIB'
-- Conan: Target declared 'BZip2::BZip2'
-- Conan: Including build module from 'C:/Users/uilia/.conan2/p/bzip2b3d4fe1140f8f/p/lib/cmake/conan-official-bzip2-variables.cmake'
-- Conan: Component target declared 'brotli::brotlicommon'
-- Conan: Component target declared 'brotli::brotlidec'
-- Conan: Component target declared 'brotli::brotlienc'
-- Conan: Target declared 'brotli::brotli'
-- Conan: Including build module from 'C:/Users/uilia/.conan2/p/freetb9c3df879d04f/p/lib/cmake/conan-official-freetype-variables.cmake'
-- Conan: Target declared 'openjp2'
-- Conan: Including build module from 'C:/Users/uilia/.conan2/p/openje5f1fe52f2a08/p/lib/cmake/conan-official-openjpeg-variables.cmake'
-- Conan: Target declared 'openh264::openh264'
-- Conan: Component target declared 'Vorbis::vorbis'
-- Conan: Component target declared 'Vorbis::vorbisenc'
-- Conan: Component target declared 'Vorbis::vorbisfile'
-- Conan: Component target declared 'vorbis::vorbisenc-alias'
-- Conan: Component target declared 'vorbis::vorbisfile-alias'
-- Conan: Target declared 'vorbis::vorbis'
-- Conan: Component target declared 'Ogg::ogg'
-- Conan: Component target declared 'Opus::opus'
-- Conan: Target declared 'libx264::libx264'
-- Conan: Target declared 'libx265::libx265'
-- Conan: Target declared 'libmp3lame::libmp3lame'
-- Conan: Component target declared 'FDK-AAC::fdk-aac'
-- Conan: Component target declared 'WebP::webpdecoder'
-- Conan: Component target declared 'WebP::sharpyuv'
-- Conan: Component target declared 'WebP::webp'
-- Conan: Component target declared 'WebP::webpdemux'
-- Conan: Component target declared 'WebP::libwebpmux'
-- Conan: Target declared 'libwebp::libwebp'
-- Conan: Component target declared 'OpenSSL::Crypto'
-- Conan: Component target declared 'OpenSSL::SSL'
-- Conan: Target declared 'openssl::openssl'
-- Conan: Including build module from 'C:/Users/uilia/.conan2/p/opense3f59385d96ab/p/lib/cmake/conan-official-openssl-variables.cmake'
-- Conan: Component target declared 'libsvtav1::encoder'
-- Conan: Component target declared 'libsvtav1::decoder'
-- Conan: Target declared 'libsvtav1::libsvtav1'
-- Conan: Target declared 'libaom-av1::libaom-av1'
-- Conan: Target declared 'dav1d::dav1d'
-- Configuring done (1.8s)
-- Generating done (0.1s)
-- Build files have been written to: C:/Users/uilia/AppData/Local/Temp/ffmpeg-consume/build
> cmake.exe --build build --config Release
Change Dir: 'C:/Users/uilia/AppData/Local/Temp/ffmpeg-consume/build'
Run Build Command(s): "C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe" ALL_BUILD.vcxproj /p:Configuration=Release /p:Platform=x64 /p:VisualStudioVersion=17.0 /v:n
MSBuild version 17.3.1+2badb37d1 for .NET Framework
Build started 2024-11-27 03:12:50 PM.
Project "C:\Users\uilia\AppData\Local\Temp\ffmpeg-consume\build\ALL_BUILD.vcxproj" on node 1 (default targets).
Project "C:\Users\uilia\AppData\Local\Temp\ffmpeg-consume\build\ALL_BUILD.vcxproj" (1) is building "C:\Users\uilia\AppData\Local\Temp\ffmpeg-consume\build\ZERO_CHECK.vcxproj" (2) on node 1 (default targets).
PrepareForBuild:
Creating directory "x64\Release\ZERO_CHECK\".
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(544,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could
lead to issues with incremental build. [C:\Users\uilia\AppData\Local\Temp\ffmpeg-consume\build\ZERO_CHECK.vcxproj]
Creating directory "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\".
InitializeBuildStatus:
Creating "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
1>Checking Build System
FinalizeBuildStatus:
Deleting file "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild".
Touching "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate".
Done Building Project "C:\Users\uilia\AppData\Local\Temp\ffmpeg-consume\build\ZERO_CHECK.vcxproj" (default targets).
Project "C:\Users\uilia\AppData\Local\Temp\ffmpeg-consume\build\ALL_BUILD.vcxproj" (1) is building "C:\Users\uilia\AppData\Local\Temp\ffmpeg-consume\build\test_package.vcxproj" (3) on node 1 (default targets).
PrepareForBuild:
Creating directory "test_package.dir\Release\".
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(544,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could
lead to issues with incremental build. [C:\Users\uilia\AppData\Local\Temp\ffmpeg-consume\build\test_package.vcxproj]
Creating directory "C:\Users\uilia\AppData\Local\Temp\ffmpeg-consume\build\Release\".
Creating directory "test_package.dir\Release\test_package.tlog\".
InitializeBuildStatus:
Creating "test_package.dir\Release\test_package.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
Building Custom Rule C:/Users/uilia/AppData/Local/Temp/ffmpeg-consume/CMakeLists.txt
ClCompile:
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\HostX64\x64\CL.exe /c /W1 /WX- /diagnostics:column /O2 /Ob2 /D _MBCS /D WIN32 /D _WINDOWS /D NDEBUG /D HAVE_FFMPEG_AVDEVICE /D HAVE_FFMPEG_AVFILTER /
D HAVE_FFMPEG_AVFORMAT /D HAVE_FFMPEG_AVCODEC /D HAVE_FFMPEG_SWSCALE /D HAVE_FFMPEG_SWRESAMPLE /D HAVE_FFMPEG_POSTPROC /D "CMAKE_INTDIR=\"Release\"" /EHsc /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /std:c++17 /Fo"test_
package.dir\Release\\" /Fd"test_package.dir\Release\vc143.pdb" /external:W0 /Gd /TP /errorReport:queue /external:I "C:/Users/uilia/.conan2/p/b/ffmpe257a67ceb4b25/p/include" "C:\Users\uilia\AppData\Local\Temp\ffmpeg-consume\main.cpp"
Microsoft (R) C/C++ Optimizing Compiler Version 19.33.31630 for x64
main.cpp
Copyright (C) Microsoft Corporation. All rights reserved.
cl /c /W1 /WX- /diagnostics:column /O2 /Ob2 /D _MBCS /D WIN32 /D _WINDOWS /D NDEBUG /D HAVE_FFMPEG_AVDEVICE /D HAVE_FFMPEG_AVFILTER /D HAVE_FFMPEG_AVFORMAT /D HAVE_FFMPEG_AVCODEC /D HAVE_FFMPEG_SWSCALE /D HAVE_FFMPEG_SWRESAMPLE /D HAVE
_FFMPEG_POSTPROC /D "CMAKE_INTDIR=\"Release\"" /EHsc /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /std:c++17 /Fo"test_package.dir\Release\\" /Fd"test_package.dir\Release\vc143.pdb" /external:W0 /Gd /TP /errorReport:queue
/external:I "C:/Users/uilia/.conan2/p/b/ffmpe257a67ceb4b25/p/include" "C:\Users\uilia\AppData\Local\Temp\ffmpeg-consume\main.cpp"
Link:
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\HostX64\x64\link.exe /ERRORREPORT:QUEUE /OUT:"C:\Users\uilia\AppData\Local\Temp\ffmpeg-consume\build\Release\test_package.exe" /INCREMENTAL:NO /NOLOG
O /LIBPATH:C:/Users/uilia/.conan2/p/b/ffmpe257a67ceb4b25/p/lib /LIBPATH:C:/Users/uilia/.conan2/p/b/ffmpe257a67ceb4b25/p/lib/Release /LIBPATH:C:/Users/uilia/.conan2/p/opense3f59385d96ab/p/lib /LIBPATH:C:/Users/uilia/.conan2/p/opense3f59
385d96ab/p/lib/Release /LIBPATH:C:/Users/uilia/.conan2/p/zlib47a1fa7d4bdbe/p/lib /LIBPATH:C:/Users/uilia/.conan2/p/zlib47a1fa7d4bdbe/p/lib/Release /LIBPATH:C:/Users/uilia/.conan2/p/xz_ut4d9dd9c1dda4d/p/lib /LIBPATH:C:/Users/uilia/.cona
n2/p/xz_ut4d9dd9c1dda4d/p/lib/Release /LIBPATH:C:/Users/uilia/.conan2/p/b/libic1fb523acad032/p/lib /LIBPATH:C:/Users/uilia/.conan2/p/b/libic1fb523acad032/p/lib/Release /LIBPATH:C:/Users/uilia/.conan2/p/openje5f1fe52f2a08/p/lib /LIBPATH
:C:/Users/uilia/.conan2/p/openje5f1fe52f2a08/p/lib/Release /LIBPATH:C:/Users/uilia/.conan2/p/b/openhb663bd656f996/p/lib /LIBPATH:C:/Users/uilia/.conan2/p/b/openhb663bd656f996/p/lib/Release /LIBPATH:C:/Users/uilia/.conan2/p/vorbi68daa0b
595576/p/lib /LIBPATH:C:/Users/uilia/.conan2/p/vorbi68daa0b595576/p/lib/Release /LIBPATH:C:/Users/uilia/.conan2/p/ogg636def5363a0b/p/lib /LIBPATH:C:/Users/uilia/.conan2/p/ogg636def5363a0b/p/lib/Release /LIBPATH:C:/Users/uilia/.conan2/p
/opusd3d9adc1de918/p/lib /LIBPATH:C:/Users/uilia/.conan2/p/opusd3d9adc1de918/p/lib/Release /LIBPATH:C:/Users/uilia/.conan2/p/libx21c8da60b22f18/p/lib /LIBPATH:C:/Users/uilia/.conan2/p/libx21c8da60b22f18/p/lib/Release /LIBPATH:C:/Users/
uilia/.conan2/p/libx2467abf8e4084d/p/lib /LIBPATH:C:/Users/uilia/.conan2/p/libx2467abf8e4084d/p/lib/Release /LIBPATH:C:/Users/uilia/.conan2/p/libmpe72870c5a46c1/p/lib /LIBPATH:C:/Users/uilia/.conan2/p/libmpe72870c5a46c1/p/lib/Release /
LIBPATH:C:/Users/uilia/.conan2/p/libfd61b6f933737f4/p/lib /LIBPATH:C:/Users/uilia/.conan2/p/libfd61b6f933737f4/p/lib/Release /LIBPATH:C:/Users/uilia/.conan2/p/libwe942a29318180e/p/lib /LIBPATH:C:/Users/uilia/.conan2/p/libwe942a29318180
e/p/lib/Release /LIBPATH:C:/Users/uilia/.conan2/p/libsv6a67acf4e6c1e/p/lib /LIBPATH:C:/Users/uilia/.conan2/p/libsv6a67acf4e6c1e/p/lib/Release /LIBPATH:C:/Users/uilia/.conan2/p/libao331c45d9705ac/p/lib /LIBPATH:C:/Users/uilia/.conan2/p/
libao331c45d9705ac/p/lib/Release /LIBPATH:C:/Users/uilia/.conan2/p/dav1d700eb731a70d1/p/lib /LIBPATH:C:/Users/uilia/.conan2/p/dav1d700eb731a70d1/p/lib/Release /LIBPATH:C:/Users/uilia/.conan2/p/bzip2b3d4fe1140f8f/p/lib /LIBPATH:C:/Users
/uilia/.conan2/p/bzip2b3d4fe1140f8f/p/lib/Release /LIBPATH:C:/Users/uilia/.conan2/p/freetb9c3df879d04f/p/lib /LIBPATH:C:/Users/uilia/.conan2/p/freetb9c3df879d04f/p/lib/Release /LIBPATH:C:/Users/uilia/.conan2/p/libpna91f222ccddcd/p/lib
/LIBPATH:C:/Users/uilia/.conan2/p/libpna91f222ccddcd/p/lib/Release /LIBPATH:C:/Users/uilia/.conan2/p/brotl95862d20d29b9/p/lib /LIBPATH:C:/Users/uilia/.conan2/p/brotl95862d20d29b9/p/lib/Release C:\Users\uilia\.conan2\p\b\ffmpe257a67ceb4
b25\p\lib\avdevice.lib C:\Users\uilia\.conan2\p\b\ffmpe257a67ceb4b25\p\lib\avfilter.lib C:\Users\uilia\.conan2\p\b\ffmpe257a67ceb4b25\p\lib\avformat.lib secur32.lib C:\Users\uilia\.conan2\p\b\ffmpe257a67ceb4b25\p\lib\avcodec.lib mfplat
.lib mfuuid.lib C:\Users\uilia\.conan2\p\b\ffmpe257a67ceb4b25\p\lib\swscale.lib C:\Users\uilia\.conan2\p\b\ffmpe257a67ceb4b25\p\lib\swresample.lib C:\Users\uilia\.conan2\p\b\ffmpe257a67ceb4b25\p\lib\postproc.lib C:\Users\uilia\.conan2\
p\b\ffmpe257a67ceb4b25\p\lib\avutil.lib crypt32.lib ws2_32.lib advapi32.lib user32.lib bcrypt.lib ole32.lib psapi.lib strmiids.lib uuid.lib oleaut32.lib shlwapi.lib gdi32.lib vfw32.lib kernel32.lib user32.lib gdi32.lib winspool.lib she
ll32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:"C:/Users/uilia/AppData/Local/Temp/ffmpeg-consume/build/Release/test_package.pdb" /SUBS
YSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/Users/uilia/AppData/Local/Temp/ffmpeg-consume/build/Release/test_package.lib" /MACHINE:X64 /machine:x64 test_package.dir\Release\main.obj
test_package.vcxproj -> C:\Users\uilia\AppData\Local\Temp\ffmpeg-consume\build\Release\test_package.exe
FinalizeBuildStatus:
Deleting file "test_package.dir\Release\test_package.tlog\unsuccessfulbuild".
Touching "test_package.dir\Release\test_package.tlog\test_package.lastbuildstate".
Done Building Project "C:\Users\uilia\AppData\Local\Temp\ffmpeg-consume\build\test_package.vcxproj" (default targets).
PrepareForBuild:
Creating directory "x64\Release\ALL_BUILD\".
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(544,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could
lead to issues with incremental build. [C:\Users\uilia\AppData\Local\Temp\ffmpeg-consume\build\ALL_BUILD.vcxproj]
Creating directory "x64\Release\ALL_BUILD\ALL_BUILD.tlog\".
InitializeBuildStatus:
Creating "x64\Release\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
Building Custom Rule C:/Users/uilia/AppData/Local/Temp/ffmpeg-consume/CMakeLists.txt
FinalizeBuildStatus:
Deleting file "x64\Release\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild".
Touching "x64\Release\ALL_BUILD\ALL_BUILD.tlog\ALL_BUILD.lastbuildstate".
Done Building Project "C:\Users\uilia\AppData\Local\Temp\ffmpeg-consume\build\ALL_BUILD.vcxproj" (default targets).
Build succeeded.
"C:\Users\uilia\AppData\Local\Temp\ffmpeg-consume\build\ALL_BUILD.vcxproj" (default target) (1) ->
"C:\Users\uilia\AppData\Local\Temp\ffmpeg-consume\build\ZERO_CHECK.vcxproj" (default target) (2) ->
(PrepareForBuild target) ->
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(544,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it coul d lead to issues with incremental build. [C:\Users\uilia\AppData\Local\Temp\ffmpeg-consume\build\ZERO_CHECK.vcxproj]
"C:\Users\uilia\AppData\Local\Temp\ffmpeg-consume\build\ALL_BUILD.vcxproj" (default target) (1) ->
"C:\Users\uilia\AppData\Local\Temp\ffmpeg-consume\build\test_package.vcxproj" (default target) (3) ->
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(544,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it coul d lead to issues with incremental build. [C:\Users\uilia\AppData\Local\Temp\ffmpeg-consume\build\test_package.vcxproj]
"C:\Users\uilia\AppData\Local\Temp\ffmpeg-consume\build\ALL_BUILD.vcxproj" (default target) (1) ->
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(544,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it coul d lead to issues with incremental build. [C:\Users\uilia\AppData\Local\Temp\ffmpeg-consume\build\ALL_BUILD.vcxproj]
3 Warning(s)
0 Error(s)
Time Elapsed 00:00:00.86
> build\conanrun.bat
> build\Release\test_package.exe
configuration: --enable-shared --disable-static --prefix=/ --bindir=/bin --libdir=/lib --pkg-config-flags=--static --disable-doc --disable-cross-compile --enable-asm --enable-shared --disable-static --enable-pic --enable-avdevice --enable-avcodec --enable-avformat --enable-swresample --enable-swscale --enable-postproc --enable-avfilter --enable-bzlib --enable-zlib --enable-lzma --enable-iconv --enable-libopenjpeg --enable-libopenh264 --enable-libvorbis --enable-libopus --disable-libzmq --disable-sdl2 --enable-libx264 --enable-libx265 --enable-libvpx --enable-libmp3lame --enable-libfdk-aac --enable-libwebp --enable-libaom --enable-openssl --disable-alsa --disable-libpulse --disable-vaapi --disable-libdrm --disable-vdpau --disable-libxcb --disable-libxcb-shm --disable-libxcb-shape --disable-libxcb-xfixes --disable-appkit --disable-avfoundation --disable-coreimage --disable-audiotoolbox --disable-videotoolbox --disable-securetransport --disable-vulkan --enable-libdav1d --disable-jni --disable-mediacodec --disable-xlib --disable-cuda --disable-cuvid --enable-nonfree --enable-gpl --enable-libsvtav1 --arch=x86_64 --cc=cl.exe --cxx=cl.exe --pkg-config=/c/users/uilia/.conan2/p/pkgcoe6fcefd89afdc/p/bin/pkgconf.exe --toolchain=msvc --extra-cflags='-MD -O2 -Ob2 -FS'
avcodec version: 60.31.102
avfilter version: 9.12.100
avdevice version: 60.3.100
swresample version: 4.12.100
swscale version: 7.5.100
cmake_minimum_required(VERSION 3.15)
project(test_package LANGUAGES CXX)
find_package(ffmpeg REQUIRED CONFIG)
add_executable(${PROJECT_NAME} main.cpp)
target_link_libraries(${PROJECT_NAME} PRIVATE ffmpeg::avutil)
if (TARGET ffmpeg::avdevice)
target_compile_definitions(${PROJECT_NAME} PRIVATE HAVE_FFMPEG_AVDEVICE)
target_link_libraries(${PROJECT_NAME} PRIVATE ffmpeg::avdevice)
endif ()
if (TARGET ffmpeg::avfilter)
target_compile_definitions(${PROJECT_NAME} PRIVATE HAVE_FFMPEG_AVFILTER)
target_link_libraries(${PROJECT_NAME} PRIVATE ffmpeg::avfilter)
endif ()
if (TARGET ffmpeg::avformat)
target_compile_definitions(${PROJECT_NAME} PRIVATE HAVE_FFMPEG_AVFORMAT)
target_link_libraries(${PROJECT_NAME} PRIVATE ffmpeg::avformat)
endif ()
if (TARGET ffmpeg::avcodec)
target_compile_definitions(${PROJECT_NAME} PRIVATE HAVE_FFMPEG_AVCODEC)
target_link_libraries(${PROJECT_NAME} PRIVATE ffmpeg::avcodec)
endif ()
if (TARGET ffmpeg::swscale)
target_compile_definitions(${PROJECT_NAME} PRIVATE HAVE_FFMPEG_SWSCALE)
target_link_libraries(${PROJECT_NAME} PRIVATE ffmpeg::swscale)
endif ()
if (TARGET ffmpeg::swresample)
target_compile_definitions(${PROJECT_NAME} PRIVATE HAVE_FFMPEG_SWRESAMPLE)
target_link_libraries(${PROJECT_NAME} PRIVATE ffmpeg::swresample)
endif ()
if (TARGET ffmpeg::postproc)
target_compile_definitions(${PROJECT_NAME} PRIVATE HAVE_FFMPEG_POSTPROC)
target_link_libraries(${PROJECT_NAME} PRIVATE ffmpeg::postproc)
endif ()
[requires]
ffmpeg/6.1.1
[options]
*/*:shared=False
[generators]
CMakeToolchain
CMakeDeps
VirtualRunEnv
#ifdef __cplusplus
extern "C" {
#endif
#ifdef HAVE_FFMPEG_AVCODEC
# include <libavcodec/avcodec.h>
#endif
#ifdef HAVE_FFMPEG_AVFORMAT
# include <libavformat/avformat.h>
#endif
#ifdef HAVE_FFMPEG_AVFILTER
# include <libavfilter/avfilter.h>
#endif
#ifdef HAVE_FFMPEG_AVDEVICE
# include <libavdevice/avdevice.h>
#endif
#ifdef HAVE_FFMPEG_SWRESAMPLE
# include <libswresample/swresample.h>
#endif
#ifdef HAVE_FFMPEG_SWSCALE
# include <libswscale/swscale.h>
#endif
#include <libavutil/hwcontext.h>
#ifdef __cplusplus
}
#endif
#include <cstdio>
#include <cstdlib>
int main()
{
#ifdef HAVE_FFMPEG_AVCODEC
printf("configuration: %s\n", avcodec_configuration());
printf("avcodec version: %d.%d.%d\n", AV_VERSION_MAJOR(avcodec_version()), AV_VERSION_MINOR(avcodec_version()), AV_VERSION_MICRO(avcodec_version()));
#else
printf("avcodec is disabled!\n");
#endif
#ifdef HAVE_FFMPEG_AVFILTER
printf("avfilter version: %d.%d.%d\n", AV_VERSION_MAJOR(avfilter_version()), AV_VERSION_MINOR(avfilter_version()), AV_VERSION_MICRO(avfilter_version()));
#else
printf("avfilter is disabled!\n");
#endif
#ifdef HAVE_FFMPEG_AVDEVICE
avdevice_register_all();
printf("avdevice version: %d.%d.%d\n", AV_VERSION_MAJOR(avdevice_version()), AV_VERSION_MINOR(avdevice_version()), AV_VERSION_MICRO(avdevice_version()));
#else
printf("avdevice is disabled!\n");
#endif
#ifdef HAVE_FFMPEG_SWRESAMPLE
printf("swresample version: %d.%d.%d\n", AV_VERSION_MAJOR(swresample_version()), AV_VERSION_MINOR(swresample_version()), AV_VERSION_MICRO(swresample_version()));
#else
printf("swresample is disabled!\n");
#endif
#ifdef HAVE_FFMPEG_SWSCALE
printf("swscale version: %d.%d.%d\n", AV_VERSION_MAJOR(swscale_version()), AV_VERSION_MINOR(swscale_version()), AV_VERSION_MICRO(swscale_version()));
#else
printf("swscale is disabled!\n");
#endif
return EXIT_SUCCESS;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment