Skip to content

Compiling Steps Issues // Win, VS2015 and ofF0.9.8 // webcam, ofxSpinnaker #11

@carlesgutierrez

Description

@carlesgutierrez

Hello @elliotwoods , So great addon here 👍

I'm trying to get it working and check if I'm doing right the VS steps to have a Flir camera working with ofxSpinnaker:

  1. Add the ofxMachineVisionLib/ofxMachineVisionLib.vcxproj project to your solution

ok

  1. Go to your project properties, go to 'Common Properties' at the top of the tree on the left, select 'Add New Reference...' and add the ofxMachineVisionLib project.
    Using VS2015 I've only saw this option: right Click over my example project, add Reference
    3. Add the props file from your camera driver to your project:
    Go to Property Manager tab
    Right click on your project
    'Add Existing Property Sheet...'
    Select the property sheet for your camera driver addon (e.g. addons/ofxXimea/ofxXimea.props)
    ok
  2. Add the source files from your camera driver to your project (.cpp, .h)
    How might be done this? Using ProjectGenerator and adding the ofxSpinnaker? Or just dragging the ofxSpinaker.h, Spinnaker.h and Spinnaker.cpp into my source project ( next to testApp.h ) without forgot to add Aditional Include Directories: "../../../addons/ofxSpinnaker/src" and "..\..\..\addons\ofxSpinnaker\src\ofxMachineVision\Device"
  3. Include the camera driver header in your testApp.h (e.g. ofxXimea.h) or as appropriate
    ok
  4. Denote your camera driver's Device class when instantiating ofxMachineVison::Grabbers (e.g. ofxMachineVision::SimpleGrabberofxXimea::Device grabber;)
    `ok, "ofxMachineVision::SimpleGrabberofxSpinnaker::Device camera;"

I've followed all this steps, but without success. I've got following errors:

With ofxSpinnaker:

3>c1xx : fatal error C1083: Cannot open source file: '..\..\..\addons\ofxMachineVision\src\ofxMachineVision\Device\StillImages.cpp': No such file or directory 3> VideoPlayer.cpp 3> Frame.cpp 3>d:\develop\of\of_v0.9.8_vs_release\addons\ofxspinnaker\src\ofxMachineVision/Device/Spinnaker.h(5): fatal error C1083: Cannot open include file: 'spinnaker/Spinnaker.h': No such file or directory (compiling source file src\testApp.cpp) 3> Base.cpp 3>d:\develop\of\of_v0.9.8_vs_release\addons\ofxspinnaker\src\ofxMachineVision/Device/Spinnaker.h(5): fatal error C1083: Cannot open include file: 'spinnaker/Spinnaker.h': No such file or directory (compiling source file src\main.cpp)

Doing less steps for Device::Webcam, I've got also this other error:
1>D:\develop\oF\of_v0.9.8_vs_release\addons\ofxMachineVision\src\ofxMachineVision.h(49): error C2664: 'void ofxMachineVision::Grabber::Base::setDevice(ofxMachineVision::DevicePtr)': cannot convert argument 1 from 'std::shared_ptr<ofxMachineVision::Device::Type>' to 'ofxMachineVision::DevicePtr'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions