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

install.sh does not work - part 2 #2

Closed
abeckers opened this issue Oct 12, 2022 · 4 comments
Closed

install.sh does not work - part 2 #2

abeckers opened this issue Oct 12, 2022 · 4 comments

Comments

@abeckers
Copy link

after changing the checkout directory to raspicam-build, cmake complains:

Could not find mmal libraries

Could you add to the docs how to install?

@abeckers
Copy link
Author

I followed the advice in https://stackoverflow.com/questions/27777547/missing-libmmal-so-with-picamera-library to update the firmware

sudo rpi-update

and end with the following errors:

[ 36%] Linking CXX shared library libraspicam_cv.so
/usr/bin/ld: /opt/vc/lib/libmmal_core.so: error adding symbols: file in wrong format
collect2: error: ld returned 1 exit status
make[2]: *** [src/CMakeFiles/raspicam_cv.dir/build.make:248: src/libraspicam_cv.so] Fehler 1
make[1]: *** [CMakeFiles/Makefile2:170: src/CMakeFiles/raspicam_cv.dir/all] Fehler 2
make: *** [Makefile:149: all] Fehler 2
[  4%] Linking CXX shared library libraspicam_cv.so
/usr/bin/ld: /opt/vc/lib/libmmal_core.so: error adding symbols: file in wrong format
collect2: error: ld returned 1 exit status
make[2]: *** [src/CMakeFiles/raspicam_cv.dir/build.make:248: src/libraspicam_cv.so] Fehler 1
make[1]: *** [CMakeFiles/Makefile2:170: src/CMakeFiles/raspicam_cv.dir/all] Fehler 2
make: *** [Makefile:149: all] Fehler 2

@bluskript
Copy link
Owner

bluskript commented Oct 12, 2022

Are you using 64 bit Raspbian? MMAL is notoriously.. messed up on x64.
Historically raspberry pis would always be running in 32 bit

@bluskript
Copy link
Owner

bluskript commented Oct 12, 2022

Ironically the raspberry pi team appears to have moved on to use libcamera since I last used their camera stack.

In its current state, though, libcamera feels much like a Wayland sort of deal. MMAL is proprietary but it is better at offloading to the camera's onboard GPU. If you truly want the best performance, I'd recommend using the legacy camera stack. However, this unfortunately means that 64 bit is out of the question for this package because MMAL doesn't support it. I have added a notice about it.

raspberrypi/userland#688

@abeckers
Copy link
Author

Yes, I'm on 64 bit. Performance isn't an issue in my project. I think I will write my own wrapper around libcamera.

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

2 participants