-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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] fix up the pkgconfig files #15127
Conversation
Co-authored-by: Billy O'Neal <[email protected]>
@jmoguillansky-gpsw Can you please test this PR? Thanks. |
string(REGEX MATCH "${PATH_NAME}=[^\n]*\n" PATH_VALUE "${PKGCONFIG_CONTENT}") | ||
string(REPLACE "${PATH_NAME}=" "" PATH_VALUE "${PATH_VALUE}") | ||
string(REPLACE "\n" "" PATH_VALUE "${PATH_VALUE}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think regular expressions can be more beautiful, but I don’t know how to do it
Thanks @JackBoos , -- Downloading https://www.tortall.net/projects/yasm/snapshots/v1.3.0.6.g1962/yasm-1.3.0.6.g1962.exe... Failed. Status: 28;"Timeout was reached" |
@jmoguillansky-gpsw Can you please try again? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me but waiting to merge until the issue submitter confirms that the fix works for them
It looks ok to me.
Thanks,
Jeff
Get Outlook for Android<https://aka.ms/ghei36>
…________________________________
From: BillyONeal <[email protected]>
Sent: Monday, December 21, 2020 2:07:28 PM
To: microsoft/vcpkg <[email protected]>
Cc: Jeffrey Moguillansky <[email protected]>; Mention <[email protected]>
Subject: Re: [microsoft/vcpkg] [ffmpeg] fix up the pkgconfig files (#15127)
@BillyONeal approved this pull request.
This looks good to me but waiting to merge until the issue submitter confirms that the fix works for them
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#15127 (review)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AO3BUEZAN55JCJSUE6C2M6TSV7BKBANCNFSM4U35YNKA>.
|
Thanks! |
[ffmpeg] fix up the pkgconfig files (microsoft#15127)
I think there's room to simplify the logic.
The current logic (with this PR) if I understand correctly:
1) check if cygwin is present
2) if has cygwin generate cygwin paths, else generate windows paths
3) convert cygwin paths to windows paths using regex.
Maybe we can add a user param to choose cygwin or windows paths?
Get Outlook for Android<https://aka.ms/ghei36>
…________________________________
From: Be <[email protected]>
Sent: Friday, January 22, 2021 10:53:49 PM
To: microsoft/vcpkg <[email protected]>
Cc: Jeffrey Moguillansky <[email protected]>; Mention <[email protected]>
Subject: Re: [microsoft/vcpkg] [ffmpeg] fix up the pkgconfig files (#15127)
I think there's still more to do on this issue. Using ffmpeg from vcpkg fails with:
CMake Error at C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.18/Modules/FindPkgConfig.cmake:75 (set):
Syntax error in cmake code at
C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.18/Modules/FindPkgConfig.cmake:75
when parsing string
\a\mixxx\mixxx\build\vcpkg_installed\x64-windows\lib\pkgconfig/../..
Invalid character escape '\a'.
Call Stack (most recent call first):
C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.18/Modules/FindPkgConfig.cmake:102 (_pkgconfig_set)
C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.18/Modules/FindPkgConfig.cmake:828 (_pkgconfig_invoke)
C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.18/Modules/FindPkgConfig.cmake:564 (pkg_get_variable)
C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.18/Modules/FindPkgConfig.cmake:733 (_pkg_check_modules_internal)
cmake/modules/FindFFMPEG.cmake:82 (pkg_check_modules)
cmake/modules/FindFFMPEG.cmake:124 (find_component)
build/vcpkg_installed/x64-windows/share/ffmpeg/vcpkg-cmake-wrapper.cmake:4 (_find_package)
vcpkg/scripts/buildsystems/vcpkg.cmake:597 (include)
CMakeLists.txt:2252 (find_package)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#15127 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AO3BUE746VSKYPK6W7KCJGDS3JW73ANCNFSM4U35YNKA>.
|
Since ffmpeg is built using cygin on windows, cygpath format is used instead of local path format when generating pkgconfig, fix this issue.
Fixes #15111.