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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

7.2. GENERATING <strong>HALCON</strong> PACKAGES 109лÑÔ×¹×¹Öܺ to the environment variable Ä ÄÁÊÊ ÈÌÀ , otherwise theloader will fail to access the libraries.The directory °ÀÄÇÆÊÇÇÌ»ÜÑÔÐ×»ÜØÒ×ÓÒ Ô»ÐÓÒÙ×Ö contains two examplemakefiles: ÑÐ creates the example package halconuser for standard <strong>HALCON</strong>.ÑÐ Ø×ØÔÖÓ creates the exampleapplications based on the package halconuser.Bothmakefiles include the file ѺÑÔ×¹×¹Öܺ which sets architecture-dependent variables.7.2.5.5 Generating <strong>Package</strong>s Under HP-UXIn 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 HP-UX system on page 8.¯ Compiling the source code:In order to generate shared libraries you must produce position independent code. For the» compiler this is done using the option ·.¯ Creating the operator library ÐÔº×Ð:To create the operator library ÐÔº×Ð containing new <strong>HALCON</strong> operators,the object files containing the corresponding supply and action procedures must belinked. The linkage of shared libraries is done with Ð ¹. Specify the desired nameÐÔº×Ð and location of the library with the Ð option ¹Ó. To allow the location ofsuch a library 3 to be resolved by the operating system during runtime (using ËÀÄÁ ÈÌÀ)also specify the Ð option ·×.¯ 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 subdirectoryлÔÔ½º½¹Ô¹ÔÙܽ¼ to the environment variable ËÀÄÁ ÈÌÀ , otherwise the loaderwill fail to access the libraries.3 Of course this has to be done for ÐÔº×Ð and ÐÔÔÔº×Ð as well.<strong>HALCON</strong> 6.0

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

Saved successfully!

Ooh no, something went wrong!