-
Hi, I have a question about static linking rnpgp library and its dependencies to my application. Using Linux, GCC Vcpkg setup. I have installed rnpgp library and its dependencies (json-c and botan-3) using vcpkg. However, when I try to deploy my application using qtdeploy, I find that the shared libraries of rnpgp and its dependencies are not copied to the binary folder. This causes my application to fail to run on other machines that do not have these libraries installed. I want to enable static linking for rnpgp library and its dependencies, so that I can distribute my application as a single executable file. I have tried to modify the CMakeLists.txt file of rnpgp library to use static linking instead of INTERFACE_LINK_LIBRARIES, but I get errors during the compilation process. Is this an issue? How can I enable static linking for rnpgp library and its dependencies using vcpkg and CMake? Do you have any examples or documentation that I can refer to? I appreciate your help and support. Logs and data
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
RNP's CMake parameter |
Beta Was this translation helpful? Give feedback.
-
Thanks, log
the Thanks |
Beta Was this translation helpful? Give feedback.
-
@shemeshg As @ni4 noted, there are various build scenarious implemented and tested in GHA workflows albeight not exactly yours. You may find Windows action scrip useful since it is vcpkg based. Thank you |
Beta Was this translation helpful? Give feedback.
RNP's CMake parameter
DBUILD_SHARED_LIBS=Off
should help here, If I'm not mistaken. Examples are available Github workflow files. Or does this inflict some problems? It's attempt to 'quick answer', if it doesn't help I'll look into a problem a bit later (or maybe @maxirmx could be willing to help here).