Noarkhh
Membrane Core Team
Hi,
I am trying to build a library that wraps some functions provided by libcamera-apps. For this I need the libcamera-apps headers, but they are not present in my ~/.nerves/artifacts/nerves_system_rpi4-portable-1.24.1/staging/usr/include/ directory. It’s the place I would expect them to be, since libcamera headers are present here. Another thing that confuses me is that none of the libcamera-apps executables are in staging/usr/bin/ (e.g. libcamera-vid and libcamera-jpeg), but are present on the generated firmware, so I’m not sure where do they even come from.
Are the libcamera-apps headers provided in the precompiled system? Where do libcamera-apps executables come from?
My system is MacOS, my target is rpi4.
Thanks!
Trending in Questions
Hello everyone!
I am new to coding with Elixir/Erlang. And i am looking for some utilities for fuzzing testing like AFL++.
Does anyone ...
New
I’m very new to Elixir, so sorry if this is a silly question:
I am wondering what happens to the mailbox of a process when the machine i...
New
How do I tell Hologram not to escape HTML when substituting into templates?
{Textile.render(@product.long_description)}
escapes the HTM...
New
Background
When trying to execute mix release on a Windows 11 machine for a Phoenix project I get the following error:
* assembling mark...
New
I load tested a plain Phoenix chat app backed by Postgres with 100 million messages in it, everything on default settings, to see what br...
New
I’d like to create a file with 600 permissions (rw-------), but there’s a race condition if I create it and then change the permissions. ...
New
Is there a way to import record definitions in the iex shell for pretty printing (similar to the rr command in the erl shell)? This woul...
New
Other Trending Topics
Edit: 2026 May 15 - This post is archived.
Mob is alive!!
Main docs: mob v0.7.11 — Documentation
A bit of explanation for the slightly c...
New
Hey there,
I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first.
...
New
Hi everyone :waving_hand:
I wanted to share something I’ve been building — NowBlind, a random chat app designed to help people discover ...
New
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly)
AI dream has many faces, but general...
New
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #code-sync
- #discussion
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #ai
- #elixirconf-us
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #blog-post
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #security
- #elixirconf-eu
- #processes
- #api
- #forms
- #hex











Showing Posts 1 to 6- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
Noarkhh
After getting to know Buildroot better I have more insight into the problem. It seems that for a package to be included in staging (where headers are present) there needs to be a line in it’s
.mkfile specifying it -${PKG}_INSTALL_STAGING.It seems that this option is not configurable through
make menuconfig, so I wonder whether it’s possible to modify/override.mkfiles from the level of nerves configuraiton without modifying the buildroot release that nerves downloads? I tried usingexternal.mk, but the building process doesn’t allow for two.mkfiles with the same name.Thanks!
AlexanderRoempke
just for understanding
the libcamera and libcamera packages from the menueconfig don’t work?
did you follow:
After
make menuconfig: Runmake savedefconfig?AlexanderRoempke
try that for yourselfe
iex(5)> cmd(“cd lib && ls”)
vintage_net_wifi-0.11.7
vintage_net_ethernet-0.11.2
vintage_net_direct-0.10.7
vintage_net-0.13.5
uboot_env-1.0.1
toolshed-0.3.1
stdlib-5.1.1
ssh_subsystem_fwup-0.6.1
ssh-5.0.1
shoehorn-0.9.1
sasl-4.2.1
runtime_tools-2.0
ring_logger-0.10.5
public_key-1.14.1
property_table-0.2.4
one_dhcpd-2.0.2
nerves_uevent-0.1.0
nerves_time-0.4.6
nerves_ssh-0.4.3
nerves_runtime-0.13.6
nerves_pack-0.7.0
nerves_motd-0.1.13
nerves_logging-0.2.2
muontrap-1.3.2
mdns_lite-0.8.8
logger-1.15.6
libcameras-0.1.0
kernel-9.1
iex-1.15.6
gen_state_machine-3.0.0
elixir-1.15.6
crypto-5.3
compiler-8.4.1
circular_buffer-0.4.1
beam_notify-1.1.0
asn1-5.2
0
AlexanderRoempke
iex(20)> System.cmd(“libcamera-raw”, [“-h”])
Valid options for
libcamera-raw:-h [ --help ]: Print this help message.--version: Displays the build version number.--list-cameras: Lists the available cameras attached to the system.--camera: Chooses the camera to use. To list the available indexes, use the--list-camerasoption.-v [ --verbose ]: Set verbosity level. Level 0 is no output, 1 is default, 2 is verbose.-c [ --config ]: Read the options from a file. Defaults toconfig.txtif no filename is specified. Only long form options are allowed in the config file.--info-text: Sets the information string on the titlebar. Available values include%frame(frame number),%fps(framerate),%exp(shutter speed),%ag(analogue gain),%dg(digital gain),%rg(red color gain),%bg(blue color gain),%focus(focus FoM value),%aelock(AE locked status),%lp(lens position, if known),%afstate(AF state, if supported).--width: Set the output image width (0 = use default value).--height: Set the output image height (0 = use default value).-t [ --timeout ]: Time (in ms) for which program runs.-o [ --output ]: Set the output file name.--post-process-file: Set the file name for configuring the post-processing.--rawfull: Force use of full resolution raw frames.-n [ --nopreview ]: Do not show a preview window.-p [ --preview ]: Set the preview window dimensions, given as x,y,width,height e.g. 0,0,640,480.-f [ --fullscreen ]: Use a fullscreen preview window.--qt-preview: Use Qt-based preview window (WARNING: causes heavy CPU load, fullscreen not supported).--hflip: Request a horizontal flip transform.--vflip: Request a vertical flip transform.--rotation: Request an image rotation, 0 or 180.--roi: Set region of interest (digital zoom) e.g. 0.25,0.25,0.5,0.5.--shutter: Set a fixed shutter speed in microseconds.--analoggain: Set a fixed gain value (synonym for ‘gain’ option).--gain: Set a fixed gain value.--metering: Set the metering mode (centre, spot, average, custom).--exposure: Set the exposure mode (normal, sport).--ev: Set the EV exposure compensation, where 0 = no change.--awb: Set the AWB mode (auto, incandescent, tungsten, fluorescent, indoor, daylight, cloudy, custom).--awbgains: Set explicit red and blue gains (disable the automatic AWB algorithm).--flush: Flush output data as soon as possible.--wrap: When writing multiple output files, reset the counter when it reaches this number.--brightness: Set the brightness.Noarkhh
I have
libcamera-appsexecutables available in the target system and I am also able to enable or disable them in the menuconfig (as is shown in the screenshot). The thing I am intersted in arelibcamera-appsheaders that would allow me to write NIFs that use thelibcamera-appsAPI. As far as I’m aware to get access to them the package would need to be installed to staging, which is enabled by settingLIBCAMERA_APPS_INSTALL_STAGING = YESin thelibcamera-apps.mkfile before compiling the system.Right now I worked around it by just invoking
libcamera-vidusing an Elixir Port and getting the stream from stdout, but I’m still interested whetherlibcamera-appsheaders can be installed to staging without too much effort.AlexanderRoempke
ok you clearly have a far better understanding than i have.
i just use raspistill with cmd.
because i got an error with libcamera that i use legacy camera setup.