Based on libPvAPI.dylib (as the libPvAPI.a won't compile with of >= 0.9). The PvApi.h must be slightly modified.
ofxPvAPI::Camera is modelled after, but not completely compatible with, ofVideoGrabber. ofxPvAPI::ParamCam adds ofParameters and an ofParameterGroup to the Camera, for easy use with ofxGui. ofxPvAPI::ParamCamExt adds extended functionality such as flip, rotate 90º, homography warp and mono to RGB conversion
Tested with the Prosilica GC750 and the MAKO G-223B (monochrome) and the MAKO G125C (color) on OSX 10.13 with of 0.10.
tested on macOS 10.13 with OF 0.10.0 and Xcode 9.3
ofxPvAPI
to your addons folder/bin-pc/x64/libPvAPI.dylib
into /ofxPvAPI/libs/PvAPI/lib/osx/
/inc-pc/PvApi.h
into /ofxPvAPI/libs/PvAPI/include
# Copy libPvAPI and change install directory for PvAPI to run
rsync -aved "$OF_PATH/addons/ofxPvAPI/libs/PvAPI/lib/osx/libPvAPI.dylib" "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Frameworks/";
install_name_tool -change libPvAPI.dylib @executable_path/../Frameworks/libPvAPI.dylib "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/MacOS/$PRODUCT_NAME";
../../../addons/ofxPvAPI/libs/PvAPI/lib/osx/libPvAPI.dylib
-D_x64
to Project -> Build Settings -> Other C++ Flags-D_OSX
to Project -> Build Settings -> Other C++ Flagstested on Ubuntu 18.10 using make
ofxPvAPI
to your addons folder/lib-pc/x64/4.7/libPvAPI.a
into /ofxPvAPI/libs/PvAPI/lib/linux/
/inc-pc/PvApi.h
into /ofxPvAPI/libs/PvAPI/include
NOT TESTED FOR A LONG TIME below the obsolete intructions for OF 0.8.x and Windows 7, maybe they will be of some help
Add ofxPvAPI
to your addons folder
Download the legacy SDK from Allied Vision and copy the following files from the SDK to the addon.
/inc-pc/PvApi.h
into /ofxPvAPI/libs/PvAPI/include
/lib-pc/PvAPI.lib
into /ofxPvAPI/libs/PvAPI/lib/win32/
PvAPI.dll
into /ofxPvAPI/libs/PvAPI/lib/win32/
IN Properties -> C/C++ -> additional include directories ADD
..\..\..\addons\ofxPvAPI\src
..\..\..\addons\ofxPvAPI\libs\PvAPI\include
IN Properties -> Linker -> Additional Lybrary Directories ADD
copy PvAPI.dll
: IN Build Events -> Post Build Event - > Command Line ADD
xcopy /y "$(ProjectDir)..\..\..\addons\ofxPvAPI\libs\PvAPI\lib\win32\PvAPI.dll" "$(ProjectDir)bin"
Turn off the Firewall (cameras don't work otherwise)