Skip to content

compile opencv on Rpi #8

@RuolunWeng

Description

@RuolunWeng

Hi,

I want to test OF + Raspbian Rpi 3B with ofxOMXCamera,

  • simple example demo mode works for me
  • but the example-ofxCv compiled with errur like:
    "
    In file included from ../../../libs/openFrameworks/app/ofAppEGLWindow.h:13,
    from /home/pi/openFrameworks/addons/ofxOMXCamera/src/ofxOMXVideoGrabber.h:11,
    from /home/pi/openFrameworks/apps/myApps/example-ofxCv/src/ofApp.h:5,
    from /home/pi/openFrameworks/apps/myApps/example-ofxCv/src/main.cpp:2:
    /usr/include/opencv2/stitching.hpp: At global scope:
    /usr/include/opencv2/stitching.hpp:128:10: error: expected identifier before ‘int’
    enum Status
    ^~~~~~
    In file included from /usr/include/opencv2/opencv.hpp:86,
    from /home/pi/openFrameworks/addons/ofxCv/src/ofxCv.h:4,
    from /home/pi/openFrameworks/apps/myApps/example-ofxCv/src/ofApp.h:6,
    from /home/pi/openFrameworks/apps/myApps/example-ofxCv/src/main.cpp:2:
    /usr/include/opencv2/stitching.hpp:129:5: error: expected unqualified-id before ‘{’ token
    {
    ^
    make[1]: *** [../../../libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:223: obj/linuxarmv6l/Release/src/main.o] Error 1
    make[1]: Leaving directory '/home/pi/openFrameworks/apps/myApps/example-ofxCv'
    make: *** [../../../libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:129: Release] Error 2

"

I've installed ofxCv already..
Any Idea?

Best

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