10.07.2015 Views

HALCON Extension Package Programmer's Manual

HALCON Extension Package Programmer's Manual

HALCON Extension Package Programmer's Manual

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

108 CHAPTER 7. CREATING A NEW <strong>HALCON</strong> PACKAGETo create a Parallel <strong>HALCON</strong> version of your application, just link the objectfiles to the Parallel <strong>HALCON</strong> version of the libraries (e.g., ÐÔÖÔº×Ó,ÐÔÖÔº×Ó, ÐÔÖÐÓÒº×Ó, andÐÔÖÐÓÒº×Ó in case of a C application).You can use the same object files as for creating the standard <strong>HALCON</strong> application.The directory °ÀÄÇÆÊÇÇÌ»ÜÑÔÐ×»ÜØÒ×ÓÒ Ô»ÐÓÒÙ×Ö contains two examplemakefiles: ÑÐ creates the example package halconuser, both for standard HAL-CON and for Parallel <strong>HALCON</strong>. ÑÐ Ø×ØÔÖÓ creates the example applications basedon the package halconuser, again for both <strong>HALCON</strong> versions. Both makefiles include the fileѺ×ÔÖ¹×ÙÒ¹×ÓÐÖ× which sets architecture-dependent variables.7.2.5.4 Generating <strong>Package</strong>s Under IRIXIn order to activate a package, its complete path, e.g.°ÀÄÇÆÊÇÇÌ»ÜÑÔÐ×»ÜØÒ×ÓÒ Ô»ÐÓÒÙ×Ömust be included in the environment variable ÀÄÇÆÌÆËÁÇÆË .IntheUNIXversionthepackage paths in ÀÄÇÆÌÆËÁÇÆË are separated by colons. Please see also the commentson installing a <strong>HALCON</strong> package on a IRIX system on page 8.¯ Creating the operator library ÐÔº×Ó:To create the operator library ÐÔº×Ó containing new <strong>HALCON</strong> operators theobject files containing the corresponding supply and action procedures must be linked.The linkage of shared libraries is done withÐ ¹Ö×ØÖÝ »Ù×ֻл×ÓÐÓØÓÒ× ¹×ÖSpecify the desired name ÐÔº×Ó and location of the library with the Ð option¹Ó. To allow the location of such a library 2 to be resolved by the operating system duringruntime (using Ä ÄÁÊÊ ÈÌÀ) also specify ¹×ÓÒÑ ÐÔº×Ó.¯ Creating the C interface library ÐÔº×Ó:To create the C interface library ÐÔº×Ó providing the interface to new<strong>HALCON</strong> operators, the object file ÀÔºÓ and the new operator libraryÐÔº×Ó must be linked.¯ Creating the C++ interface library ÐÔÔÔº×Ó:To create the C++ interface library ÐÔÔÔº×Ó providing the interface to new<strong>HALCON</strong> operators, the object files ÀÈÈÔºÓ and ÀÈÈÔÐÓкÓ, andthe new operator lib ÐÔº×Ó must be linked.¯ Creating new applications:In order to create new application programs (written in C or C++) you must linkÐÔº×Ó and ÐÔº×Ó or ÐÔÔÔº×Ó to your objects (besidesÐÐÓÒº×Ó and ÐÐÓÒº×Ó or ÐÐÓÒÔÔº×Ó as for any HAL-CON application). Furthermore, you must add the package library subdirectory2 Of course this has to be done for ÐÔº×Ó (¹×ÓÒÑ ÐÔº×Ó)andÐÔÔÔº×Ó(¹×ÓÒÑ ÐÔÔÔº×Ó) as well.<strong>HALCON</strong> <strong>Extension</strong> <strong>Package</strong> Interface / 2000-11-16

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!