Replies: 5 comments
-
You need to install both "-static" and regular package.
IMO vcpkg should not allow such export. |
Beta Was this translation helpful? Give feedback.
-
@eundlswe Pay attention to this: You must manually change vcxproj if you want static to work correctly. <PropertyGroup Label="Globals">
<!-- .... -->
<VcpkgTriplet Condition="'$(Platform)'=='Win32'">x86-windows-static</VcpkgTriplet>
<VcpkgTriplet Condition="'$(Platform)'=='x64'">x64-windows-static</VcpkgTriplet>
</PropertyGroup> |
Beta Was this translation helpful? Give feedback.
-
@eundlswe , please do as the above description that NN-- commented.. |
Beta Was this translation helpful? Give feedback.
-
@NancyLi1013 Is there a solution for this ? |
Beta Was this translation helpful? Give feedback.
-
Sorry, there is no better solution for this. It is still a bug that needs to be fixed. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I created a nuget package using:
./vcpkg export --nuget libxml2:x86-windows-static boost-algorithm --output=i18nlib-deps --nuget-version=1.0.1
And installed it in my project using:
Install-Package i18nlib-deps -Source "C:\vcpkg"
Unfortunately, when I then compile my project, VC++ reports an error that the libxml2 header files that I use cannot be found.
But it works correctly when I instead build and install the nuget package using:
./vcpkg export --nuget libxml2 boost-algorithm --output=i18nlib-deps --nuget-version=1.0.1
And in my project:
Install-Package i18nlib-deps -Source "C:\vcpkg"
(having of course uninstalled the nuget package with the static libxml2 first.)
I had disabled vcpkg system integration prior to doing any of this.
Beta Was this translation helpful? Give feedback.
All reactions