I ran into this same error on Linux and was able to work around it. This was with a recent GigaE Blackfly. Hopefully when I get a moment I can document how. But in case I forget the steps involved...
- Changing the ofxVideoGrabberPtgrey. to default to the FlyCapture header rather than the dc1394.
- moving entirely from the example codeblocks project into a project I created from scratch using the OF 'projectGenerator'.
- Creating a addon_config.mk for the ofxVideoGrabberPtygrey addon and setting it so that it ignores the libs/FlyCapture directory it came with and instead loads the includes from /usr/lib/flycapture (the pointgrey installed sdk location).
- Modify ofxVideoGrabberFlyCapture.cpp/.h to reference getPixelsRef. This is the reason for the error you ran into.
- Modified ofxVideoGrabberFlyCapture.cpp and commented out all of the camera settings changes (leaving with the standard defaults).
from addon_config.mk
linux64:
ADDON_SOURCES_EXCLUDE += src/ofxVideoGrabberDc1394.cpp
ADDON_INCLUDES_EXCLUDE += libs/FlyCapture/%
ADDON_INCLUDES += src
ADDON_CFLAGS = -I/usr/include/flycapture
ADDON_LDFLAGS = -lflycapture
From addons/ofxVideoGrabberPtgrey/src/ofxVideGrabberPtgrey.h
#if defined( TARGET_OSX ) || defined( TARGET_LINUX )
#include "ofxVideoGrabberFlyCapture.h"
//#include "ofxVideoGrabberDc1394.h"
#elif defined( TARGET_WIN32 )
#include "ofxVideoGrabberFlyCapture.h"
#endif
to ofxVideoGrabberFlyCapture.h:
ofPixels & getPixelsRef();
to ofxVideoGrabberFlyCapture.cpp
ofPixels & ofxVideoGrabberPtgrey::getPixelsRef(){
// return videoPixels;
}