keepassxreboot / keepassxc

KeePassXC is a cross-platform community-driven port of the Windows application “Keepass Password Safe”.
https://keepassxc.org/
Other
21.43k stars 1.48k forks source link

How to solve the problem that the vpack package does not include dependencies when compiling VS2022 on windows10 #11359

Closed code-horse closed 1 month ago

code-horse commented 1 month ago

Summary

The compilation and packaging commands are as follows mkdir build cd build cmake -DWITH_XC_ALL=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=C:\vcpkg\scripts\buildsystems\vcpkg.cmake .. cmake --build . --config Release cpack

Examples

The package has no dependencies, but all files are in the ./src/Release directory

Context

Unable to package

Please help me, do I need to modify a certain configuration or how to do it, thank you.

droidmonkey commented 1 month ago

You need to add this to your cmake command run: -DX_VCPKG_APPLOCAL_DEPS_INSTALL=ON

You can also use the release-tool.ps1 to orchestrate a build/package effort: ./release-tool.ps1 -Build -Version 2.7.10 -Snapshot -Vcpkg "C:\vcpkg"

code-horse commented 1 month ago

Thankyou