-
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
Install on 64bit OS (not raspian) #540
Comments
PiCamera is just a wrapper over the top of the MMAL API for accessing the GPU functionality. MMAL does not support 64bit OSes at present, therefore PiCamera can't. You should be able to use the V4L2 driver under a 64bit OS. I haven't tried it personally, but I think all the hurdles stopping it have been resolved. As an API V4L2 is more restricted in functionality than MMAL, so you won't be able to do everything using it - sorry, that's the way it is. |
I will have a look into that thanks |
Since userland got updated for the 64 bit arch support in raspberrypi/userland#586 I've been able to get picamera running on Ubuntu 20.04 Server on a RPi 3B+. This guide had it pretty much nailed down step by step except I had to modify the CMakelists in userland/interface/mmal before running I added a You also need to add your user to the video group and make sure that |
Hi, really need some help. I am trying to follow your instructions but keep getting : what am i doing wrong? |
You have to install cmake |
Hi, I have same system version with you but on rpi 4. |
Same problem here. Apparently, mmal for 64 bits is buggy (race conditions and crashs). There are binaries one can download, but with this above problem (vc.camera_info). This link says we should add SET(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-as-needed") to the userland package that builds mmal, but it doesnt work (i.e. doesnt build) on 64bit. People suggest using libcamera but it makes picamera unusable as it takes full control of the device. So I gues we are stuck on 64 bits for now. Unfortunately ! |
raspberrypi/userland#688 Ubuntu have reinstated the 64bit MMAL patches in their distro. It will not be reinstated in the main Raspberry Pi userland repo until the cause of the issues have been identified and fixed as it causes issues with 32bit other MMAL use cases (video decoder in particular). |
I am using ubuntu server 64 bit, installed both libraspberrypi0 and libraspberrypi-bin. These packages provide the following files:
raspistill works:
So, apparently ubuntu did compile the 64 bit version, but forgot to add that suggested cmake directive ( CMAKE_SHARED_LINKER_FLAGS(-Wl, --no-as-needed)).
Do you suggest going to ubuntu 64 bits for raspberry and asking if they could just add the cmake directive, or try to compile locally ? |
Ok, I think I got it working. Did this:
then edited userland/interface/mmal/CMakeLists.txt, and added the directive:
....
Will test more and get posted. ./buildme --aarch64 |
Feel free to revert those commits and build for yourself, but at the present time you will not be getting support for that configuration from Pi Towers. |
It would make sense for this project to move to v4l2, then? It's the one used by a lot of other projects. |
Hi,
I'm using a 64 bit os for my raspberry pi so I can use libraries for projects where the 32bit versions would normally fallover (eg mongodb 2gb limit).
I want to use the camera module but Iv'e had massive difficulty getting it on any 64 bit os (worked out of the box fine for 32bit raspian).
I'm using this currently as my os: https://github.com/bamarni/pi64
I tried installing this even though i knew it would probably fail, by installing via pip. During pip install it errors out with this message: ValueError: Unable to determine if this system is a Raspberry Pi
Just wondering any futher info you might have on any alternative routes I could get towards this working. I'm wanting to work on some advanced computer vision projects but a 32bit os just won't cut it.
The text was updated successfully, but these errors were encountered: