[portaudio] Fix build on windows#13982
Conversation
Hoikas
left a comment
There was a problem hiding this comment.
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
NancyLi1013
left a comment
There was a problem hiding this comment.
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