You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When building openh264 natively on Windows, the generated pkg-config file has a reference to -lstdc++, which isn't used on native Windows targets.
This appears to be fixed upstream already: if I add HEAD_REF master to portfile.cmake and build with --head, the pkg-config file is correct. The fix was probably this PR merged in 2022.
Environment
OS: Windows
Compiler: Visual Studio 2022
To Reproduce
Steps to reproduce the behavior:
./vcpkg install openh264:x64-windows-static
Look at packages/openh264_x64-windows-static/lib/pkgconfig/openh264.pc and note that it includes:
Libs.private: -lstdc++
Run ./vcpkg install gstreamer[openh264]:x64-windows-static and it will fail with:
LINK : fatal error LNK1181: cannot open input file 'stdc++.lib'
If you build for x64-windows instead of x64-windows-static, the pkg-config file is still incorrect, but it doesn't break gstreamer since Libs.private isn't used for dynamic linking.
The text was updated successfully, but these errors were encountered:
This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 180 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.
This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 180 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.
Describe the bug
When building
openh264
natively on Windows, the generated pkg-config file has a reference to-lstdc++
, which isn't used on native Windows targets.This appears to be fixed upstream already: if I add
HEAD_REF master
toportfile.cmake
and build with--head
, the pkg-config file is correct. The fix was probably this PR merged in 2022.Environment
To Reproduce
Steps to reproduce the behavior:
./vcpkg install openh264:x64-windows-static
packages/openh264_x64-windows-static/lib/pkgconfig/openh264.pc
and note that it includes:./vcpkg install gstreamer[openh264]:x64-windows-static
and it will fail with:If you build for
x64-windows
instead ofx64-windows-static
, the pkg-config file is still incorrect, but it doesn't break gstreamer sinceLibs.private
isn't used for dynamic linking.The text was updated successfully, but these errors were encountered: