FlyCapture2 VS2010 Configuration

Add in the system Path:

C:Program Files (x86)Point Grey ResearchFlyCapture2in

Project->Project Property->Configuration Properties->VC++Directories ->Include Directories:

C:Program Files (x86)Point Grey ResearchFlyCapture2include
C:Program Files (x86)Point Grey ResearchFlyCapture2includeFC1
C:Program Files (x86)Point Grey ResearchFlyCapture2includeC

Project->Project Property->Configuration Properties->VC++Directories ->Library Directories:

C:Program Files (x86)Point Grey ResearchFlyCapture2lib
C:Program Files (x86)Point Grey ResearchFlyCapture2libC
C:Program Files (x86)Point Grey ResearchFlyCapture2libFC1

Project->Project Property->Configuration Properties->C/C++ ->Preprocessor->Preprocessor Definitions:

WIN32
_DEBUG
_CONSOLE

Project->Project Property->Configuration Properties->Linker->Input:

FlyCapture2_C.lib
FlyCapture2GUI_C.lib
FlyCapture2.lib
FlyCapture2GUI.lib
FlyCapture2GUId.lib

Include in the headfile:

#include "FlyCapture2.h"
#include "FlyCapture2_C.h"

------------------------------------------------------------------------------------------------------------------------------------------

If we install the SDK at "C:PointGreyResearch" in order to get rid of spaces

Only use C API, then do the following:

Project->Project Property->Configuration Properties->VC++Directories ->Include Directories:

C:PointGreyResearchFlyCapture2include

Project->Project Property->Configuration Properties->VC++Directories ->Library Directories:
C:PointGreyResearchFlyCapture2libC

Project->Project Property->Configuration Properties->Linker->Input:

FlyCapture2_C.lib
FlyCapture2_Cd.lib
FlyCapture2GUI_C.lib
FlyCapture2GUI_Cd.lib

Include in the headfile:

#include "C/FlyCapture2_C.h"

Only use C++ API, then do the following:

Project->Project Property->Configuration Properties->VC++Directories ->Include Directories:

C:PointGreyResearchFlyCapture2include

Project->Project Property->Configuration Properties->VC++Directories ->Library Directories:
C:PointGreyResearchFlyCapture2lib

Project->Project Property->Configuration Properties->Linker->Input:
FlyCapture2.lib
FlyCapture2d.lib
FlyCapture2GUI.lib
FlyCapture2GUId.lib

Include in the headfile:

#include "FlyCapture2.h"

原文地址:https://www.cnblogs.com/grandyang/p/4263490.html