A HALCON package resides in a directory with the same name as the
package itself. In our example this is the directory halconuser
in %HALCONEXAMPLES%\extension_package. This
directory must at least contain the following subdirectories
- bin\%HALCONARCH%:
For Windows, this subdirectory has to contain the DLLs package.dll,
packagec.dll, and packagecpp.dll, corresponding to the
above libraries (and their HALCON XL versions). We also recommend to place
compiled example programs or additional utilities of a package in this
subdirectory.
- lib\%HALCONARCH%:
In this subdirectory the libraries encapsulating the new operators (package) and the corresponding C and C++ language interfaces
(packagec, packagecpp)
reside3),
together with their HALCON XL versions. Note, that neither the name
of these libraries nor their position within the package should be
changed. Otherwise, the HALCON system cannot load the package. The
environment variable HALCONARCH is set during the installation of HALCON; it
describes the platform HALCON is running on.
See the Installation Guide for
details.
- bin\dotnet:
This subdirectory has to contain the extension package's .NET assembly
packagedotnet.dll (and its HALCON XL version, packagedotnetxl.dll).
- help:
This subdirectory contains files with data for the online
access to the knowledge base. They must be generated and placed
in this directory in order to use a package inside of HDevelop.
Without these files HDevelop cannot retrieve the information needed
to access the operators of a package.
We also recommend to provide additional subdirectories:
- def:
In this directory the def-file(s) with the description of the operators of a
package should be placed.
- include:
In this directory the generated include files
containing the prototypes for the operators of a package should be
placed.
- doc:
In this directory the documentation of the package
should be placed (see also %HALCONROOT%\doc for comparison).
Especially, it is necessary to put the generated HTML files in
doc\html\reference in order
to enjoy the online help from the operator window of HDevelop.
- examples:
This directory might contain some typical example programs (e.g.,
HDevelop dev-files) demonstrating the use of the new operators.
- images:
If the provided examples need specific images, they should be placed
in this directory. In that case we recommend to include the path to
this subdirectory in the environment variable HALCONIMAGES in order
to allow access to these images without using an absolute file path
in the programs.
3) For Linux/macOS
systems the prefix lib has to be added to the libraries resulting
in libpackage, libpackagec, and libpackagecpp
|