Giter Site home page Giter Site logo

Build fails about raspindi HOT 6 CLOSED

raspberry-pi-camera avatar raspberry-pi-camera commented on July 29, 2024
Build fails

from raspindi.

Comments (6)

AlvinVrolijk avatar AlvinVrolijk commented on July 29, 2024

+1

from raspindi.

bgaster avatar bgaster commented on July 29, 2024

Is there an answer to this issue?

from raspindi.

nettings avatar nettings commented on July 29, 2024

Same here, latest bookworm 12.4. This is due to some renaming in libcamera - I guess they did not intend their libcamera-apps headers to be used by third parties. I'm not familiar with cmake, so I solved it with some horrible shotgun debugging.

  1. Do not use the libcamera-apps headers shipped with raspindi, because they do not match the libraries that are getting linked later, causing the errors reported above. Instead, use the headers installed with the system:
cd include
rm -rf core/ encoder/ image/ output/ post_processing_stages/ preview/
ln -s /usr/include/libcamera-apps/* .

This is not a proper solution, but I do not know how to sort out C++ headers with CMake.
It should be possible to just include the system headers directly.

  1. Edit src/main.cpp:
    2.1 Replace #include "core/libcamera_encoder.hpp" with #include "core/rpicam_encoder.hpp"
    2.1 Search and replace every occurrence of LibcameraEncoder with RPiCamEncoder.
  2. Follow the normal build process.

from raspindi.

rf152 avatar rf152 commented on July 29, 2024

This will be libcamera changing its api (again). Apologies for the delay in response, it was hectic up to Christmas, and then obviously there was Christmas and New Year!

The libcamera headers were not originally available as a package (hence including them in the source tree here).

I'll try to review this properly this week!

from raspindi.

github-actions avatar github-actions commented on July 29, 2024

No update to this issue for 30 days. Closing

from raspindi.

bgaster avatar bgaster commented on July 29, 2024

any update on this?

from raspindi.

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.