7.2.1   Creating the Operator Libraries

The supply and action procedures must be encapsulated in a DLL (Windows), shared library (Linux) or dynamic library (macOS). The name of this shared object must be consistent with the package name (plus file extension). For the use by HALCON XL, a second version of the library must be created, with the additional suffix xl to the name. Please refer to section “Additional Information for Specific Platforms” and the documentation of your programming environment for more details (also about the following sections).

Under Windows the generated DLLs must be placed in the subdirectory bin\%HALCONARCH%, the libraries in the subdirectory lib\%HALCONARCH%. Under Linux/macOS, the generated shared libraries must be placed in the subdirectory lib/$HALCONARCH, binaries in the subdirectory bin/$HALCONARCH of the package. .NET assemblies must be placed in the subdirectory bin\dotnet.

Independent of whether you want to use the package in HDevelop or in a programming language, you must create the main interface library package. This library is based on a single C file Hpackage.c, which is generated via

  hcomp -H -ppackage def-file(s)