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.

7.2. GENERATING <strong>HALCON</strong> PACKAGES 103by Parallel <strong>HALCON</strong>, a second version of the library must be created, with the additional prefixÔÖ to the name. Please refer to section 7.2.5 and the documentation of your programmingenvironment for more details (also about the following sections).Under Windows NT or Windows 2000 the generated DLLs must be placed in the subdirectoryÒÒ±ÊÀÁÌÌÍʱ, the libraries in the subdirectory ÐÒ±ÊÀÁÌÌÍʱ. Under UNIX,the generated shared libraries must be placed in the subdirectory ÐÒ±ÊÀÁÌÌÍʱ, binariesin the subdirectory ÒÒ±ÊÀÁÌÌÍʱ of the package.7.2.2 Creating the C InterfaceTo access new <strong>HALCON</strong> operators inside a package within C programs or from ÀÚÐÓÔ youmust create a C interface library Ô residing in the subdirectory ÐÒ±ÊÀÁÌÌÍʱof the package. This library is based on a single C file ÀÔº which is generated viaÓÑÔ ¹ ¹ÔÔ ¹Ð´×µfrom the -file(s) of your new operators. Note, that ÓÑÔ simultanously generates the fileÀÔº containing the C prototypes of your new operators. Include this file in your Cprograms using these operators.7.2.3 Creating the C++ InterfaceTo access new <strong>HALCON</strong> operators inside a package within C++ programs you must create aC++ interface library ÔÔÔ residing in the subdirectory ÐÒ±ÊÀÁÌÌÍʱ of thepackage. This library is based on the files ÀÈÈÔºÔÔ and ÀÈÈÔÐÓкÔÔgenerated viaÓÑÔ ¹ ¹ÔÔ ¹Ð´×µfrom the -file(s) of your self developed operators. Note, that ÓÑÔ simultanously generatesthe file ÀÈÈÔº containing the C++ prototypes of your new operators. Include this filein your C++ programs using these operators.7.2.4 Creating New ApplicationsIn order to create new application programs (written in C or C++) based on your own HAL-CON operators you must link the corresponding language interface libraries Ô orÔÔÔ to your objects. Furthermore, you will need the <strong>HALCON</strong> library itself and the<strong>HALCON</strong>/C or <strong>HALCON</strong>/C++ library (as for any <strong>HALCON</strong> application).7.2.5 Additional Information for Specific ArchitecturesThe previous sections summarized the generation of <strong>HALCON</strong> extensions in general. Thissection contains additional information for specific architectures. The main differences concernthe name handling and the generation of shared libraries / DLLs.<strong>HALCON</strong> 6.0

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

Saved successfully!

Ooh no, something went wrong!