This section describes the key steps of building your applications developed with the Kernel API. To learn how to download Kernel libraries for a specific platform, see Downloading Kernel.
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 Kernel\Include directory of a release package.
The path to this directory and its subdirectories must be provided to the compiler when building a client application.
ODA Kernel platform is delivered as a set of 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 Kernel shared libraries, the following steps are required:
To build an application that uses the static Kernel 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 software 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 Kernel 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 the Kernel libraries:
Examples of link lists can be found in the configured CMakeLists.txt files for Kernel example applications from the release packages.
Compiling Kernel Sample Applications
Copyright © 2002 – 2020. Open Design Alliance. All rights reserved.
|