Skip to content

Error during make relating to "StreamFormats" #40

@johncblacker

Description

@johncblacker

Trying to build lccv again on my rpi. I have libcamera 0.5.1 with opencv4 4.6.0 and am getting an error during make. Error is:

[ 25%] Building CXX object CMakeFiles/liblccv.dir/src/lccv.cpp.o
In file included from /home/pi/github-projects/lccv/src/lccv.cpp:2:
/usr/include/opencv4/libcamera/libcamera/stream.h:25:7: error: redefinition of ‘class libcamera::StreamFormats’
25 | class StreamFormats
| ^~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
make[2]: *** [CMakeFiles/liblccv.dir/build.make:76: CMakeFiles/liblccv.dir/src/lccv.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/liblccv.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

Has anyone encountered this error; if so, what's the fix...if not I need some help.

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