Code Monkey home page Code Monkey logo

Comments (5)

johncblacker avatar johncblacker commented on September 15, 2024

I perused the libcamera repo and found that "StreamRoles" was basically an alias for StreamRole and was removed because "it is no longer strictly necessary." Therefore, I would surmise that references to "StreamRoles" be changed to "StreamRole" instead and line 53 in the source can be deleted. I'm going to give that a shot and see what happens.

from lccv.

johncblacker avatar johncblacker commented on September 15, 2024

The "fix" I came up with is:
1.) Remove line 84 in libcamera_app.cpp
2.) Change line 85 in libcamera_app.cpp to:
configuration_ = camera_->generateConfiguration({StreamRole::StillCapture, StreamRole::Raw}) ;
3.) Remove line 129 in libcamera_app.cpp
4.) Change line 130 in libcamera_app.cpp to:
configuration_ = camera_->generateConfiguration({ StreamRole::Viewfinder });

5.) Remove line 53 in libcamera_app.hpp

Also, I added: link_directories(/usr/local/lib/arm-linux-gnueabihf)
immediately following the Include_directories statement in the CMakeLists.txt
so that the build would find the requisite libcamera libraries for linker. (verify on your system) My libcamera version is 0.0.5 on raspberry pi 4b bullseye 32-bit.

from lccv.

chrisd-mso avatar chrisd-mso commented on September 15, 2024

Everything worked without problem a few weeks ago, but yesterday while rebuilding LCCV I hit this problem. So I assume something changed in libcamera headers in an update (apt-get update/upgrade). My solution was to change line 53 in libcamera-app to
using StreamRoles = std::vectorlibcamera::StreamRole;
which matches libcamera-app.hpp in https://github.com/raspberrypi/libcamera-apps. It now compiles and works for my small program

from lccv.

bjajoh avatar bjajoh commented on September 15, 2024

Added a PR @kbarni

from lccv.

kbarni avatar kbarni commented on September 15, 2024

@bjajoh thanks for the PR, will test it and merge later this week.

from lccv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.