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

mmal_component_create_core: could not find component 'vc.ril.camera' #10

Open
ajeyjoshi opened this issue Mar 21, 2021 · 3 comments
Open

Comments

@ajeyjoshi
Copy link

ajeyjoshi commented Mar 21, 2021

I am using raspbery Pi 4 SoC with Ubuntu 20.10 64bit OS and trying to use raspberry Pi HD Camera.

I am able to compile 'raspicam' and below example code successfully, but when I am running this test code it gives me error.
`

#include <raspicam/raspicam.h>
#include <raspicam/raspicamtypes.h>

int main()
{
raspicam::RaspiCam camera;
camera.open(true);
camera.grab();
return 0;
}
`

Error

mmal_component_create_core: could not find component 'vc.ril.camera'

On the same configuration I am able to run raspistill without any issues so camera is working fine.

@Bart-van-Ingen
Copy link

Have you been able to find a solution for your problem @ajeyjoshi ? I am running into the same thing!

@ajeyjoshi
Copy link
Author

Have you been able to find a solution for your problem @ajeyjoshi ? I am running into the same thing!

No I could not found any solution for this issue.

@vvaalleerraa
Copy link

This is a known buggy feature of userland building on Ubuntu 20 64bit. If you are building userland from https://github.com/6by9/userland/ banch 64bit_mmal
then just change file CMakeLists.txt:
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-multichar -Wall -Wno-unused-but-set-variable -fPIC")
to
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wl,--no-as-needed -Wno-multichar -Wall -Wno-unused-but-set-variable -fPIC")

then rebuild and reinstall userand libs
./buildme --aarch64
and rebuild your raspicam application

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

4 participants
@vvaalleerraa @ajeyjoshi @Bart-van-Ingen and others