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)
Of Course! It’s been a while i don’t use it, and i don’t have the camera here to try if i’m sending the right project. Please try it and let me know if it works for you.
you will have to add PvAPI inside src/ofxVideoGrabberProscilica/libs
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?
thanks,
stephan.
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'
1st i had to turn off my airport.
2nd make sure my ethernet is set to use DHCP
3rd since my prosilica model is gc650c i need to set Prosilica.initGrabber(659,493, true); not 640x480
I had to add the libPvAPI.dylib to the core framework list.
I think i am using the x86 version that i got from the AVT GigE SDK download.
In addition i noticed that before I always had to turn off my airport in order for the proslicia to be detected on my ethernet connection. Now I can leave my airport on.
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
…
Dyld Error Message:
Library not loaded: libPvAPI.dylib
Referenced from: /Applications/of_preRelease_v0061_osx_FAT/apps/devel OF/Oeil/bin/Oeil.app/Contents/MacOS/Oeil
Reason: image not found
I go to Target/myApp/run script, ask the informations and add
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.
PvAPI also works for 64bit (but is deprecated now and marked legacy, Allied Vision uses new Vimba SDK)
The errors in your post all seem to be related to the PvAPI library built for the wrong architecture (32bit). Try to clean an rebuild, also rebuild the specific lib if possible.
I tried a clean rebuild of my Xcode project but this did not help.
I looked around the net for a 64 bit version. I found the PVAPI SDK but simply placing their .a files did not help.
i made some progress in getting the PvAPI working on OF 0.9.0 with OS X 10.10
i got he 64bit version of the api from here:
put libImagelib.a and libPvAPI.dylib in to ofxMyAddonName/libs/PvAPI/lib/osx/x64
made a clean build via shift command k and command b
i also had to copy libPvAPI.dylib in to myApp.app/Contents/MacOS/
otherwise i would get this error:
dyld: Library not loaded: @loader_path/libPvAPI.dylib
pvapi Reason: image not found
now the app starts, the avt prosilica is found and the cam image looks good too.
@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.
A:
in my current setup i replaced the files i got from cinder (.a and .dylib) with yours but got lots of compile errors. similar to the ones i got when using my old OF 0.8.4 PvAPI files
B:
i also tried pressing your files in to a standard ofxaddon structure but this file is not found tiffio.h when compiling