64,428
社区成员
发帖
与我相关
我的任务
分享
BUILDING ON WINDOWS
===================
Microsoft Visual Studio 7.1 (2003), 8.0 (2005) or 9.0 (2008) is required to build the
POCO C++ Libraries on Windows platforms. Solution and project files for all three versions
are included.
You can either build from within Visual Studio (Build->Batch Build->Select All;Rebuild)
or from the command line. To build from the command line, start the
Visual Studio .NET 2003 (or 2005/2008) Command Prompt and cd to the directory where you have
extracted the POCO C++ Libraries sources. Then, simply start the buildwin.cmd script
and pass as argument the version of visual studio (71, 80 or 90). You can customize
what is being built by buildwin.cmd by passing appropriate command line arguments to
it. Call buildwin.cmd without arguments to see what is available.
To disable certain components (e.g., NetSSL_OpenSSL or Data/MySQL) from the build,
edit the file named "components" and remove the respective lines.
Certain libraries, like NetSSL_OpenSSL, Crypto or Data/MySQL have dependencies
to other libraries. Since the build script does not know where to find the necessary
header files and import libraries, you have to either add the header file paths to
the INCLUDE environment variable and the library path to the LIB environment variable,
or you'll have to edit the buildwin.cmd script, where these environment variables can
be set as well.
In order to run the test suite and the samples, the top-most bin directory containing
the shared libraries must be in the PATH environment variable.
If you want to run the test suite or samples from within Visual Studio, we recommend that
you download and install the free Solution Build Environment for Visual Studio .NET 2003,
from <http://www.workspacewhiz.com/SolutionBuildEnvironmentReadme.html>.
You can then add the bin directory to the PATH environment variable in a .slnenv file,
using the following entry.
POCO_BASE=p:\poco
PATH=$(PATH);$(POCO_BASE)\bin
Of course you will have to change the path p:\poco so that it matches your environment.
IMPORTANT NOTE: Please make sure that the path to the directory containing the
POCO C++ Libraries source tree does not contain spaces. Otherwise, the Microsoft
message compiler will fail when building the Foundation library.