Download HALCON Programmer`s Guide

Transcript
214
HDevEngine in C++ Applications
• Link the following libraries on Windows systems
/libpath:"$(HALCONROOT)\lib\$(HALCONARCH)" hdevenginecpp.lib halconcpp.lib
and on Linux systems
-L$(HALCONROOT)/lib/$(HALCONARCH) -lhdevenginecpp -lhalconcpp -lhalcon
and on Mac OS X system
-framework HDevEngineCpp -framework HALCONCpp
HDevEngine XL applications: If you want to use HDevEngine XL, link the following libraries
on Windows systems
/libpath:"$(HALCONROOT)/lib/$(HALCONARCH)" hdevenginecppxl.lib halconcppxl.lib
and on Linux systems
-L$(HALCONROOT)/lib/$(HALCONARCH) -lhdevenginecppxl -lhalconcppxl -lhalconxl
and on Mac OS X system
-framework HDevEngineCppxl -framework HALCONCppxl
HALCON/C++ (legacy)
If you want to use HDevEngine with HALCON/C++ (legacy), note the following changes:
• HALCON/C++ (legacy) uses a different namespace:
using namespace Halcon;
• To compile the application, use the following include paths on Windows systems
/I "$(HALCONROOT)\include" /I "$(HALCONROOT)\include\hdevengine10"
and on Linux systems
-I$(HALCONROOT)/include -I$(HALCONROOT)/include/hdevengine10
• Link the following libraries on Windows systems
/libpath:"$(HALCONROOT)\lib\$(HALCONARCH)" hdevenginecpp10.lib halconcpp10.lib
and on Linux systems
-L$(HALCONROOT)/lib/$(HALCONARCH) -lhdevenginecpp10 -lhalconcpp10 -lhalcon