-
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
[portaudio] Fix build on windows #13982
Conversation
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 doesn't look right. It would be better, I think, to forgo the patch and instead set -DPA_BUILD_SHARED
correctly in the vcpkg_configure_cmake
call in portfile.cmake
. You could figure out the correct value by doing something like:
string(COMPARE EQUAL ${VCPKG_LIBRARY_LINKAGE} dynamic PA_BUILD_SHARED)
But the static build add a -static to the library name, when reading the vcpkg documentation its written that its better to have 1 name for both static and dynamic libs. |
Ok. Looking at the upstream CMakeLists.txt, if It does look like we need to appropriately set string(COMPARE EQUAL ${VCPKG_LIBRARY_LINKAGE} static PA_BUILD_STATIC) |
When I built it on linux, I got 1 static and 1 dynamic libraries even if the LINKAGE was static. I triied to set PA_BUILD_STATIC and PA_BUILD_SHARED but it still exports the library as portaudio_static
even if the output name is actually portaudio.a
|
6e48b92
to
0f5e9a6
Compare
0f5e9a6
to
cabe5d0
Compare
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.
Please also update version in CONTROL file.
Update
Version: 2020-02-02
as
Version: 2020-02-02
Port-Version: 1
.
Please see https://github.com/microsoft/vcpkg/blob/master/docs/maintainers/maintainer-guide.md#update-the-port-version-field-in-the-manifest-file-of-any-modified-ports
Woops, yes sorry, I forgot to push it. |
As the ogre ( microsoft/vcpkg#14006 ) and portaudio ( microsoft/vcpkg#13982 ) problems were fixed.
* Install directly gts as a Gazebo dependency As microsoft/vcpkg#10422 was fixed. * Gazebo and Ignition dependencies: use released version Fix #26 . * Bump vcpkg to recent commit As the ogre ( microsoft/vcpkg#14006 ) and portaudio ( microsoft/vcpkg#13982 ) problems were fixed.
Describe the pull request