Name

oe_check_compiler — determines whether each of the compilers that OpenECU supports is available and, if applicable, licensed.

Synopsis

oe_check_compiler

Description

OE_CHECK_COMPILER determines whether each of the compilers that OpenECU supports is available and licensed.

Checks are made against various compiler versions to ensure that when a model build is initiated, the compiler is available.

Checks performed include:

  • the environment variable pointing to the compiler do not contain spaces;

  • the environment variable pointing to the compiler ends in a trailing '\';

  • the compiler executable can be found and executed;

  • the compiler version matches;

  • the compiler can access a license.

If there is one compiler version installed, the user may add the path to the compiler's executable to the system PATH environment variable. If there is more than one compiler version installer, the user must set an environment variable for each version.

CompilerEnvironment variable
Diab 5.5.1.0OPENECU_DIAB_5_5_1_0
Diab 5.8.0.0OPENECU_DIAB_5_8
Diab 5.9.0.0OPENECU_DIAB_5_9
GCC 4.7.3Not applicable

GCC comes packaged with the OpenECU installer. It does not require an environment variable or a license for use.

Each environment variable must in the short DOS format, e.g.:

c:\program files\windriver\diab\5.5.1.0\win32\bin\

would be shortened to:

c:\progra~1\windri~1\diab\5.5.1.0\win32\bin\

Each environment variable must end with a trailing '\' character.

Some versions of the Diab compiler will prompt the user for a license server or license file through a dialog window if a license cannot be found. The user may either fill out the license information or press the cancel button as required.