-
Notifications
You must be signed in to change notification settings - Fork 465
Add libcamera and libcamera-apps to recipes-multimedia #963
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
bc9d216
25dfb94
788b192
53de20b
4ea20c2
2e68295
f835093
87898c8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| SUMMARY = "Raspberry libcamera-apps" | ||
|
|
||
| LICENSE = "BSD-2-Clause" | ||
| LIC_FILES_CHKSUM = "file://license.txt;md5=a0013d1b383d72ba4bdc5b750e7d1d77" | ||
|
|
||
| SRC_URI = "git://github.com/raspberrypi/libcamera-apps.git;branch=main;protocol=https" | ||
|
|
||
| PV = "1.0+git${SRCPV}" | ||
| SRCREV = "11c5203a202777ddc339bba1dd8f85b53b60c279" | ||
|
|
||
| S = "${WORKDIR}/git" | ||
|
|
||
| DEPENDS = "libcamera opencv boost libjpeg-turbo libexif tiff" | ||
| RDEPENDS:${PN} = "libcamera opencv boost libjpeg-turbo libexif tiff python3-core" | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need these RDEPENDS? The packaging should be able to infer them without having them explicit. Any issues with that? |
||
|
|
||
| inherit cmake pkgconfig | ||
|
|
||
| EXTRA_OECMAKE = "${@bb.utils.contains("DISTRO_FEATURES", "x11", "-DENABLE_X11=1", "-DENABLE_X11=0", d)} \ | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This would be nicer to handle as a |
||
| ${@bb.utils.contains("MACHINE", "raspberrypi3", "-DENABLE_COMPILE_FLAGS_FOR_TARGET=armv8-neon", "", d)} \ | ||
| ${@bb.utils.contains("MACHINE", "raspberrypi4", "-DENABLE_COMPILE_FLAGS_FOR_TARGET=armv8-neon", "", d)} \ | ||
| " | ||
|
|
||
| PACKAGECONFIG[qt] = "-DENABLE_QT=1" | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we have the explicit disable as well for all these PACKAGECONFIG entries? |
||
| PACKAGECONFIG[opencv] = "-DENABLE_OPENCV=1" | ||
| PACKAGECONFIG[tensorflow-lite] = "-DENABLE_TFLITE=1" | ||
|
|
||
| COMPATIBLE_MACHINE = "^rpi$" | ||
|
|
||
| FILES:${PN}-dev = "${includedir} ${libdir}/pkgconfig" | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be in by default hence not needed. |
||
| FILES:${PN} += "${libdir}/libpreview.so" | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can remove this and all the following using |
||
| FILES:${PN} += "${libdir}/libencoders.so" | ||
| FILES:${PN} += "${libdir}/liboutputs.so" | ||
| FILES:${PN} += "${libdir}/libimages.so" | ||
| FILES:${PN} += "${libdir}/libpost_processing_stages.so" | ||
| FILES:${PN} += "${libdir}/libcamera_app.so" | ||
agherzan marked this conversation as resolved.
Show resolved
Hide resolved
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no such version as far as I can see. I don't see any 1.0 tags in the repo. Just use
gitin the recipe filename.