Skip to content

[ffmpeg] Fix bug #13511: arm64-linux build failure#13512

Merged
ras0219-msft merged 1 commit intomicrosoft:masterfrom
x-projs:fix-13511
Sep 14, 2020
Merged

[ffmpeg] Fix bug #13511: arm64-linux build failure#13512
ras0219-msft merged 1 commit intomicrosoft:masterfrom
x-projs:fix-13511

Conversation

@x-projs
Copy link
Contributor

@x-projs x-projs commented Sep 13, 2020

Describe the pull request

[ffmpeg:arm64-linux] Fix bug #13511: [ffmpeg:arm64-linux] build failure.
Root cause:
In ffmpeg/portfile.cmake, --target-os=win32 is applied to all arm or arm64 targets.
This is wrong.

Fix:
Only apply "--target-os=win32" if VCPKG_TARGET_IS_WINDOWS.

Verify:
Run ./vcpkg install ffmpeg on arm64-linux host, make sure the generated libraries are *.a not *.lib.

…ild failure.

Root cause:
In `ffmpeg/portfile.cmake`, `--target-os=win32` is applied to all arm or arm64 targets.
This is wrong.

Fix:
Only apply "--target-os=win32" if VCPKG_TARGET_IS_WINDOWS.

Verify:
Run `./vcpkg install ffmpeg` on arm64-linux host, make sure the generated libraries are *.a not *.lib.
@cenit
Copy link
Contributor

cenit commented Sep 13, 2020

I’d add that also implying cross-compile if win+arm64 is another mistake too (it will become a common setup soon)

@JackBoosY JackBoosY self-assigned this Sep 14, 2020
@JackBoosY JackBoosY linked an issue Sep 14, 2020 that may be closed by this pull request
@JackBoosY JackBoosY added the category:port-bug The issue is with a library, which is something the port should already support label Sep 14, 2020
@JackBoosY JackBoosY added the info:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this. label Sep 14, 2020
@JackBoosY JackBoosY changed the title [ffmpeg:arm64-linux] Fix bug #13511: [ffmpeg:arm64-linux] build failure. [ffmpeg] Fix bug #13511: arm64-linux build failure Sep 14, 2020
@ras0219-msft ras0219-msft merged commit 5c9e670 into microsoft:master Sep 14, 2020
@ras0219-msft
Copy link
Contributor

LGTM, thanks for the improvement!

@x-projs x-projs deleted the fix-13511 branch October 17, 2020 14:17
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 info:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ffmpeg:arm64-linux] build failure

5 participants