can any body guide us on how to build static version of the Poco C++ libraries ?
To build the static library, select Build > Build Solution on the menu bar. The build creates a static library, MathLibrary. lib, that can be used by other programs.
A static library (also known as an archive) consists of routines that are compiled and linked directly into your program. When you compile a program that uses a static library, all the functionality of the static library that your program uses becomes part of your executable.
in the cmake-build directory to install POCO to /usr/local . The install directory can be changed by passing the -DCMAKE_INSTALL_PREFIX=/path/to/directory option to CMake during the configuration step. See the top-level CMakeLists. txt for a list of supported options for enabling and disabling specific libraries.
Assuming you use you use autotools to build Poco, run ./configure
with the --static
flag.
$ ./configure --static
See ./configure --help
for a full list of flags.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With