Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ffmpeg[openssl]] build failure on Windows #9693

Closed
traumedy opened this issue Jan 15, 2020 · 4 comments · Fixed by #9695
Closed

[ffmpeg[openssl]] build failure on Windows #9693

traumedy opened this issue Jan 15, 2020 · 4 comments · Fixed by #9695
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@traumedy
Copy link

Host Environment

  • OS: Windows 10
  • Compiler: Visual Studio 2017 Enterprise

To Reproduce
Steps to reproduce the behavior:
vcpkg install ffmpeg[openssl]:x64-windows

Failure logs

-- Building ffmpeg for Release
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:72 (message):
    Command failed: D:/vcpkg/downloads/tools/msys2/msys64/usr/bin/bash.exe --noprofile --norc D:/vcpkg/ports/ffmpeg\build.sh D:/vcpkg/buildtrees/ffmpeg/x64-windows-rel D:/vcpkg/buildtrees/ffmpeg/src/n4.2-02d8c63f80 D:/vcpkg/packages/ffmpeg_x64-windows "--enable-asm --enable-yasm --disable-doc --enable-debug --enable-runtime-cpudetect --enable-nonfree --enable-openssl --disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-libvpx --disable-libx264 --disable-opencl --disable-lzma --disable-bzlib --enable-avresample  --disable-static --enable-shared --extra-cflags=-DHAVE_UNISTD_H=0  --extra-cflags=-MD --extra-cxxflags=-MD"
    Working Directory: D:/vcpkg/buildtrees/ffmpeg/x64-windows-rel
    Error code: 1
    See logs for more information:
      D:\vcpkg\buildtrees\ffmpeg\build-x64-windows-rel-out.log
...
D:\vcpkg>type D:\vcpkg\buildtrees\ffmpeg\build-x64-windows-rel-out.log
=== CONFIGURING ===
ERROR: openssl not found
...

Additional context
This started failing in the last day or two. All other ffmpeg features still build fine with x64-windows.

@traumedy traumedy added the category:port-bug The issue is with a library, which is something the port should already support label Jan 15, 2020
@Neumann-A
Copy link
Contributor

ffmpeg checks for SSL_library_init in configure and this has been deprecated in 1.1.0. Maybe someone should tell them to update their configure script....
you can use this patch to make it work (just drop the .txt extension and drop it into the ffmpeg port folder)
0002-detect-openssl.patch.txt

@pierrextardif
Copy link

pierrextardif commented Feb 22, 2022

Patches from @Neumann-A still needed when using FFmpeg 5.0.
This ias a special case as I'm doing manual compilation with msys2, rather than vcpkg ffmpeg.
Thanks anyways v useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants
@traumedy @pierrextardif @PhoebeHui @Neumann-A and others