Thanks Theo, I’m pretty sure I installed correctly, and the Vimba SKD version is 6.0 which matches the addon repo tested version. I tried with an older version of OF 0.11.2 to match the tested addon also and 32 and 64bit builds.
In the process I found the 64bit build works if I start the app/build without the camera connected and once started then connect the camera it is detected and image feed starts up.
Doesn’t work if camera is connected during startup, disconnected and reconnected.
I’m now trying to find in the code what’s causing this issue.
The code runs to line 27 of Discovery::start() in addons\ofxVimba\libs\OosVim\src\Discovery.cpp
with a notice of “Listening for camera to connect”.
If camera is then connected the camera is detected and image feed windows opens.
I’d like it to run without needing to start app with the camera disconnected.
Any ideas would be much appreciated.
I’ve tried a delay before calling grabber.setup(ofGetWindowWidth(), ofGetWindowHeight(), true); in ofApp::setup which didn’t help.
With a slight adjustment the sample code from Vimba SDK docs ran OK in setup as you suggested, so I will also look into further into that.
AVT::VmbAPI::VimbaSystem& system = AVT::VmbAPI::VimbaSystem::GetInstance();
if (VmbErrorSuccess == system.Startup())
if (VmbErrorSuccess == system.GetCameras(cameras))
for (AVT::VmbAPI::CameraPtrVector::iterator iter = cameras.begin();
cameras.end() != iter;
if (VmbErrorSuccess == (*iter)->Open(VmbAccessModeFull))
std::cout << "Camera opened" << std::endl;