Skip to content
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

Package request: libcamera #180

Open
1 of 5 tasks
sonelu opened this issue May 10, 2024 · 5 comments
Open
1 of 5 tasks

Package request: libcamera #180

sonelu opened this issue May 10, 2024 · 5 comments

Comments

@sonelu
Copy link

sonelu commented May 10, 2024

Package name

libcamera

Operating System(s)

  • linux-64
  • linux-aarch64
  • osx-64
  • osx-arm64
  • win-64

Additional context (optional)

I see it is included in the vinca file for aarch64, but does't seem to have been build.

Links and references (optional)

It's needed for camera_ros, which seems to be the only ros package that work with the new libcamera on Raspberry Pi.

@Tobias-Fischer
Copy link
Contributor

Hi @sonelu - that's an interesting one. It uses meson as build tool, and we don't have a template for that. I just added a warning message to vinca for easier debugging in the future (RoboStack/vinca@8109f12).

/cc @traversaro @wolfv - have you built packages using meson before? Do you think it would be easy enough to add a template for RoboStack in vinca?

@traversaro
Copy link
Member

traversaro commented Jul 22, 2024

/cc @traversaro @wolfv - have you built packages using meson before? Do you think it would be easy enough to add a template for RoboStack in vinca?

Yes, I maintain https://github.com/conda-forge/spral-feedstock/ (and probably a few other, I can't remember). The meson workflow is quite similar to the CMake one (configure/build/install), so I would guess it should doable.

@Tobias-Fischer
Copy link
Contributor

@sonelu would you be interested in contributing this? It shouldn’t be too hard, but time on the core RoboStack contributors is very constrained at the moment and other things like a rebuild have higher priority.

@sonelu
Copy link
Author

sonelu commented Jul 26, 2024

@Tobias-Fischer certainly I could.

The background for this is that camera_ros uses libcamera, and is the only ROS package that I could find that works with Raspberry Pi since the change to libcamera. The issue is that apt installed libcamera in the os is not detected by the conda installed ros (ex. from Robostack) and compilation of camera_ros fails. I had managed to get over that by symlinking the /usr/lib/aarch-linux-gnu/pkgconfig/libcamera* defintions to /home/USER/miniforge3/envs/ENV/lib/pkgconfig. You have more experience in dealing with system libraries when building under a conda environment. Maybe we don't need to package it at all, just fix the compilation of camera_ros (which is the one we need to include in RoboStack).

Alreantively, for libcamera I think it would be better if it would packaged in conda-forge rather than RoboStack. What do you think?

@Tobias-Fischer
Copy link
Contributor

Yes that’s a good point - it’s probably better in conda-forge and that should be less complicated to do as well; simply follow the same recipe structure as in e.g. https://github.com/conda-forge/spral-feedstock/

@sonelu sonelu mentioned this issue Aug 20, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants