Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
318 views
in Technique[技术] by (71.8m points)

c++ - How to export an x64 only package in vcpkg?

I have create a prebuilt package using vcpkg create command and then installed it on my system. I then tried to export this package so I can use it on other systems using the following command :

vcpkg export my-lib-static --zip

but this complains about the fact that the x86 version is not installed and I need to install it. This is not possible as we only deal with x64 binaries. How can I get around this issue and export my x64 only library?

question from:https://stackoverflow.com/questions/65918298/how-to-export-an-x64-only-package-in-vcpkg

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

The syntax for the new command is:

vcpkg export pkg1 pkg2 ... --[options] You have several options for the export format:

  • –zip
  • –7zip
  • –nuget
  • –raw (uncompressed folder)

When you specify a package to export, all its dependencies are also included in the exported archive. This means the exported packages can stand on their own – no additional dependencies are required.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...