Comments (5)
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.
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.
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.
Added a PR @kbarni
from lccv.
@bjajoh thanks for the PR, will test it and merge later this week.
from lccv.
Related Issues (20)
- Discussion points HOT 2
- libcamera_app.cpp fd.fd() change to fd.get() HOT 2
- 640x480 cropped HOT 2
- Unable to compile after update of libcamera HOT 9
- FrameBufferAllocator undefined symbol
- Compilation breaks on kernel version 5.15.84 HOT 7
- question
- get highest resolution? HOT 1
- Error trying to run sample takevideo HOT 2
- How to use to read a video .avi file? HOT 1
- Cannot compile with newer libcamera version
- Cannot find the dynamic library
- Debian 12(bookworm), gcc-12, atomic and memory_order HOT 1
- Unable to compile HOT 7
- Discussion: Fast RAW image acquisition HOT 1
- Implementation of Manual Focus Control for Raspberry V3 Cameras HOT 1
- Forcing raw video stream HOT 4
- Memcpy should be avoided.
- libcamera capitalisation throughout HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lccv.