i was trying to just link it and compile but i got this error:
/PROGRAM_09b/OF/of_preRelease_v0.05_xcode_FAT/apps/addonsExamples/allTestExample 2/…/…/…/addons/ofxVideoGrabberProsilica/libs/PvAPI/include/PvApi.h:103:26: error: #error Define PVDECL to be your compiler keyword for “standard call”
/PROGRAM_09b/OF/of_preRelease_v0.05_xcode_FAT/apps/addonsExamples/allTestExample 2/…/…/…/addons/ofxVideoGrabberProsilica/libs/PvAPI/include/PvApi.h:368:2: error: #error Define specific data types for your platform.
I might be doing an extremely beginner mistake … i did not use addons many times, and my OF knowledge is kind of… beginning
Here is what i did:
copy ofxVideoGrabberProsilica folder to my addons folder
open allTestExample (to compile the addon)
drag ofxVideoGrabberProsilica folder to addons tree on Xcode (and accept without looking much)
I am on Mac OX 10.6 (snow leopard) and i am trying to compile your project files but i get at lot of errors like this. see below.
i am using OF 0061.
i have the whole ofxvideograbberprosilica folder included, with all the libs and stuff.
do i have to add some extra linking?
include/PvApi.h:103:26: error: #error Define PVDECL to be your compiler keyword for "standard call"
include/PvApi.h:368:2: error: #error Define specific data types for your platform.
include/PvApi.h:259: error: expected `)' before '*' token
include/PvApi.h:353: error: expected `)' before '*' token
include/PvApi.h:443: error: expected initializer before 'PvVersion'
include/PvApi.h:463: error: expected initializer before 'PvInitialize'
include/PvApi.h:476: error: expected initializer before 'PvUnInitialize'
include/PvApi.h:510: error: expected initializer before 'PvLinkCallbackRegister'
include/PvApi.h:533: error: expected initializer before 'PvLinkCallbackUnRegister'
I get it to work with a GC750 (debayer=false, and 752x480).
Actually it was reaaly difficult as AVT has fixed the ip of the camera to something not in the subnet 169.254 (which is the one they pretend to use) and without a pc with windows I can’t manage to run the little piece of software that helps to change the ip of the camera.
The curious thing is I got :
30 fps with a macbookpro late 2008 2,4 Ghz and
60 fps with a macbookpro 2011.
This camera is due to give 60 fps at 752x480 and cpu is running at 50% with the macbookpro 2008
i am try to get my prosilica working with OF 0.9.0 (OS X 10.10) but i get a whole bunch of PvAPI compile errors.
i am wondering if the PvAPI is only good for 32 bit apps?
but even if i switch to compile in 32bit mode i get similar errors.
i think it might be something about the C++ standard libraries. but not sure.
@stephanschulz - here is some code we made for OF 0.8.0 for the allied vision cameras.
We used this code for running 3 allied vision cameras over GigE - but it should work with any PvAPI supported camera.
Let me know if you have any questions.
At the very least the libs for PvAPI are static so should be easier to link than the ones from Cinder.