Open CASCADE Technology
7.4.0
|
|
This file describes steps to build OCCT libraries from sources using Code::Blocks, a cross-platform IDE, using project files generated by OCCT legacy tool genproj. It can be used as an alternative to CMake build system (see Building with CMake) for all supported platforms.
Before building OCCT, make sure to have all the needed third-party libraries installed, see Building OCCT from sources.
Before building it is necessary to set up build environment.
The environment is defined in the file custom.sh (on Linux and OS X) or custom.bat (on Windows) which can be edited directly:
Alternatively, or when custom.sh or custom.bat does not exist, you can launch genconf tool to configure environment interactively:
Click "Save" to store the specified configuration in custom.sh or custom.bat file.
Launch genproj tool with option cbp to update content of inc folder and generate project files after changes in OCCT code affecting layout or composition of source files:
The generated Code::Blocks project are placed into subfolder adm/<OS>/cbp.
To start Code::Blocks, launch script codeblocks.sh.
To build all toolkits, click Build->Build workspace in the menu bar.
To start DRAWEXE, which has been built with Code::Blocks on Mac OS X, run the script
Option d is used if OCCT has been built in Debug mode.