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.

110 CHAPTER 7. CREATING A NEW <strong>HALCON</strong> PACKAGEIf you use or for linking specify the option ¹Ïи·× in order to allow the usage ofthe environment variable ËÀÄÁ ÈÌÀ for resolving the location of shared libraries by theloader.The directory °ÀÄÇÆÊÇÇÌ»ÜÑÔÐ×»ÜØÒ×ÓÒ Ô»ÐÓÒÙ×Ö contains two examplemakefiles: ÑÐ creates the example package halconuser for standard <strong>HALCON</strong>.ÑÐ Ø×ØÔÖÓ creates the example applications based on the package halconuser. Bothmakefiles include the file ѺÔÔ½º½¹Ô¹ÔÙܽ¼ which sets architecture-dependent variables.7.2.5.6 Generating <strong>Package</strong>s Under DIGITAL UNIX (Tru64 UNIX)In 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 DIGITAL UNIX (now called Tru64 UNIX) system onpage 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¹Ó. In order to allow a checking of referenced symbols also include¹ÒÓÒ ¹Ð½½ ¹Ð ¹ÐÑ ¹ÐÐÓÒat the end of the Ð command (see the example makefile).¯ 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. In order to allow a checking of referenced symbolsalso include¹ÒÓÒ ¹Ð½½ ¹Ð ¹ÐÑ ¹ÐÐÓÒ ¹ÐÐÓÒat the end of the Ð command (see the example makefile).¯ 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. In order to allow a checking ofreferenced symbols also include¹ÒÓÒ ¹Ð½½ ¹ÐÜÜ ¹ÐÑ ¹ÐÐÓÒ ¹ÐÐÓÒÔÔ<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!