-
Notifications
You must be signed in to change notification settings - Fork 355
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
"Failed to create MMAL component vc.camera_info: Function not implemented" on Yocto image #334
Comments
Sounds like raspberrypi/userland#178 |
Hey @6by9, thanks for the hint. Currently I use Also wondering if it's somehow related to the fact that |
I'm afraid this is all rather beyond my knowledge (I've never dealt with the The manner of picamera's installation shouldn't make any difference; the deb on Raspbian is effectively the result of running pip install, and it certainly won't change the manner in which it accesses libmmal. |
It seems that picamera uses
It certainly isn't a bug in |
NOTE: applying raspberrypi/userland#459 locally still gave me the same results as using |
The linker flags are needed when compiling picamera, not libmmal. raspberrypi/userland#459 only changes the dependencies of the standard apps, not the libraries. libmmal does NOT depend on libmmal_vc_client. If you wish to use the VPU components then your application needs to link against it, and to NOT over optimise and end up removing the constructor. |
That's ... odd; picamera isn't compiled (in any meaningful sense). It's just dynamically loading what it needs from the C libs identified in picamera/mmal.py. I'm not entirely familiar with the guts of CPython's ctypes module but I'd guess ultimately it's just calling dlopen and dlsym to grab what it needs from libmmal and libbcm_host. I'm afraid I can't shed much more light on this! |
I am also facing a similar error after building userland. All working fine till this morning, until I built userland for cec-client. Error: |
Where do i have to put the following to avoid this error? |
I tried the following and the issue is resolved.
The contents of /opt/vc folder is recreated. This resolves the issue. |
I'm also experiencing this issue with a self-compiled version of the raspberry userland repo on the latest Ubuntu Server image for the Raspberry Pi 4. I've added
Does anyone have another hint here? Thanks! |
Not a very good fix, but copying libmmal.so from a working version of Raspbian (/opt/vc/lib/libmmal.so) to /usr/lib/arm-linux-gnueabihf/libmmal.so on Ubuntu Mate 20.04 worked for me. |
There is a chance that something wrong with the Yocto image itself, but it looks very weird that
raspistill
(IIRC it also useslibmmal
under the hood) works andpicamera
doesn't. Do you have any idea @waveform80? Thanks!python-pip
;Linux raspberrypi2 4.4.23 #1 SMP Tue Oct 4 14:55:18 UTC 2016 armv7l armv7l armv7l GNU/Linux
;ldconfig
:Everything works fine with
raspistill
- no problems whatsoever. But the following code is failing (Python 2.7,picamera 1.12
installed viapip install picamera[array]
):Here is a verbose python output:
The text was updated successfully, but these errors were encountered: