This section describes the key steps of building your applications developed with the Drawings SDK. To learn how to download Drawings release libraries for a specific platform, see Downloading Drawings SDK.
For the list of supported platforms and compilers, see the Supported Platforms topic.
It is strongly recommended to compile your application code with compilers mentioned above to avoid possible link errors.
The header files required to build your application are located in the Drawing\Include (for .dwg functionality) and Dgn\Include (for DGN functionality) directories of a release package.
The path to this directory and its subdirectories must be provided to the compiler when building a client application.
Drawings libraries are available as static libraries on all supported platforms and as shared libraries on some platforms. Below are the mandatory steps to build the application using either of the configurations.
To compile a client application that uses Drawings SDK shared libraries, the following steps are required:
To build an application that uses the static configuration:
Client programs must define one or more platform-specific preprocessor symbols when building client applications (for some platforms these preprocessor symbols are defined automatically by the compiler). The effect of these symbols can be seen in the OdPlatform.h header file. Client programs must also use compiler settings that are compatible with the specific version of the ODA Platform that is being used.
For example, a Windows client application project must use the same RTL setting that was used to build the specified version of the ODA libraries for Windows:
For more about RTL settings, see the MSDN Library.
Example projects and configured files with all required settings can also be found in the release packages.
The link order is essential when linking libraries for UNIX-based platforms.
The following list represents an example of the link order for the set of ODA libraries:
Examples of link lists can be found in the configured CMakeLists.txt files for Drawings SDK example applications from the release packages.
Compiling Drawings SDK Sample Applications
Copyright © 2002 – 2020. Open Design Alliance. All rights reserved.
|