Skip to content

[ffmpeg] fix link debug bzip2#6570

Merged
cbezault merged 1 commit intomicrosoft:masterfrom
cbezault:icedream2linxi-pr/ffmpeg-link-debug-bzip2
May 23, 2019
Merged

[ffmpeg] fix link debug bzip2#6570
cbezault merged 1 commit intomicrosoft:masterfrom
cbezault:icedream2linxi-pr/ffmpeg-link-debug-bzip2

Conversation

@cbezault
Copy link
Copy Markdown
Contributor

@cbezault cbezault commented May 22, 2019

Closes #4250

@cbezault
Copy link
Copy Markdown
Contributor Author

/azp run

@cbezault cbezault merged commit 52dfee0 into microsoft:master May 23, 2019
@emptyVoid
Copy link
Copy Markdown
Contributor

@cbezault, this doesn't seem to work.

I'm trying to build ffmpeg with:

.\vcpkg.exe install ffmpeg[bzip2]

Your patch does not get applied:

-- Applying patch fixed-debug-bzip2-link.patch
-- Applying patch failed. This is expected if this patch was previously applied.

Here's the contents of patch-x64-windows-6-err.log:

Checking patch configure...
error: while searching for:
enable $subarch
enabled spic && enable_weak pic

# OS specific
case $target_os in
    aix)

error: patch failed: configure:4753
error: configure: patch does not apply

Debug configuration fails to build:

-- Building ffmpeg for Debug
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:56 (message):
    Command failed: D:/Temp/vcpkg/downloads/tools/msys2/msys64/usr/bin/bash.exe;--noprofile;--norc;D:/Temp/vcpkg/ports/ffmpeg\build.sh;D:/Temp/vcpkg/buildtrees/ffmpeg/x64-windows-dbg;D:/Temp/vcpkg/buildtrees/ffmpeg/src/ffmpeg-4-7abad339c8;D:/Temp/vcpkg/packages/ffmpeg_x64-windows/debug;--enable-asm --enable-yasm --disable-doc --enable-debug --enable-runtime-cpudetect --disable-openssl --disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-libx264 --disable-opencl --disable-lzma --enable-bzlib --extra-cflags=-DHAVE_UNISTD_H=0 --disable-static --enable-shared  --extra-cflags=-MDd --extra-cxxflags=-MDd

Here's the contents of build-x64-windows-dbg-out.log:

=== CONFIGURING ===
ERROR: bzlib requested but not found

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.

@cbezault
Copy link
Copy Markdown
Contributor Author

cbezault commented May 29, 2019

Hmmm, I managed to get it to build on my system I'll fix this issue asap (today).

Edit: Ah, I made an embarrassing mistake. I checked out the version of vcpkg that #4250 was based on (or older) and used the changes from that PR as my starting point, and obviously a newer version of ffmpeg is being used now, so the patch fails. The CI did not fail because it only attempts to build the default features of a port.

I think @cenit made a suggestion concerning failing on failed patch application that would have caught this in the CI. This makes me more inclined to agree with his take that failure to apply a patch should be a build failure.

@cenit
Copy link
Copy Markdown
Contributor

cenit commented May 29, 2019

@cbezault yes that’s the goal of #6578. It’s necessary to finish it before transforming the status message into a fatal_error one, otherwise many ports would fail. It was not designed as a fatal error since the beginning only because vcpkg was missing some source-recycling mechanisms. Now that they are available, I think it’s better to move to fail. Many mistakes and problems would be avoided, with no counter problem afaik

@cbezault
Copy link
Copy Markdown
Contributor Author

@emptyVoid we're going to be making a change to bzip so that we don't add the "d" suffix, once that is done I'll submit a PR that should add bzip2 support on windows and all other platforms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants