Reposting from https://github.com/ArduCAM/MIPI_Camera/issues/72 as possibly not an issue, rather something I don’t understand how to do.
I’m running a clean install of Raspberry pi OS 64bit. When I run make clean && make I get the following error:
I have run sudo rpi-update and added the libraries to the linker path. I have libmmal_core.so, libmmal_util.so, libmmal_vc_client.so, libvcsm.so all linked. Running ldd /usr/lib/libarducam_mipicamera.so shows:
From what I understand, the .0 refers to a specific version of the library? I am a bit out of my depth and don’t know how to get the specific libraries and how to link them. Thanks
You should install the libarducam_mipicamera.so firstly get the lib here
just run the command “sudo cp MIPI_Camera/ RPI/lib/aarch64/libarducam_mipicamera.so” /usr/lib/ ‘’
I did this, and followed the instructions on the Github, but it won’t work because I’m missing those libraries as in the second screenshot of my post
Don’t worry and I will try it and reply you as soon as possible.
Please attach me the firmware download link and I will use your system and try to help you compile it
I’m using Raspbian 64bit OS from here:
I updated the firmware using sudo rpi-update
Hello, I have helped you compiled the 64bit libarducam_mipicamera.so and test it.
Please download and try it again. I have not update the system.
I’m still getting the same problem with the libraries not linking. It’s asking for libmmal_core.so.0, libmmal_util.so.0, libmmal_vc_client.so.0, libvcsm.so.0. I don’t know how to get these libraries. I have libmmal_core.so, libmmal_util.so, libmmal_vc_client.so, libvcsm.so installed and linked, but not the .so.0 versions.
I’m running version 5.4.73-v8+ and previously ran sudo rpi-update in an attempt to fix the above; not sure if these affect this. I would like to avoid starting with a fresh installation as installing all the other things I need took a couple of days.
The steps I took to install were
- clone the github repository
- install the library with sudo install -m 644 lib/aarch64/libarducam_mipicamera.so /usr/lib
- enable i2c
- run make clean && install (this is where I get the message that the libraries were not found)
Thanks for your help
the library like the libmmal_core.so is the library the rpi provided, there is nothing to do with our mipi_camera lib. I think it is due the the rpi’s issue when update. Have you test the old version firmware without update?
I’ve tried downgrading the firmware, but it didn’t work. I can’t find a firmware version with .so.0 extensions for the libraries listed above. On your installation, do you have them under /opt/vc/lib ? If so I might have to try a fresh installation.
I download the firmware and don’t need to install any other library. I just need to install our libarducam_mipicamera.so library.
I’m using a fresh install now, on the same version as you. The libraries are linked properly now but I get some warnings during make clean && make:
Unfortunately, seems it means ./arducamstill -? doesn’t work (segmentation fault)
Just ignore the warnings. segmentation fault means maybe the power en is no power. Please try to use the camera_i2c script which is under MIPI_Camera/RPI/utils/ path to check if you can see the i2c address.
i2c is enabled, but doesn’t come up with camera_i2c script:
The HAT has a light on so it must be receiving some power? The RPI definitely has enough - I am using the official power supply and nothing is plugged into the pi except the HAT.
If your image is working, do you think it would be possible to share it?
For Pi4, I have the same issue with you.When I run camera_i2c, I also can’t see the address. I think it is due to the i2cset tool has compatible issue on Pi4 platform. It does not influence the camera work. after you have run camera_i2c script, do you still can’t run the arducamstill command?
I’m using RPI 3b+. After running ./camera_i2c, ./arducamstill -? still says segmentation fault
Following: Running Ubuntu Mate 20 (64 bit) and stuck on the libraries issues after installing libarducam. How did you solve it?
I’ve tried using the board with 32bit Raspbian. I get “init camera status = 4100” when running “arducamstill -?”. I tried looking at the other forum posts with the same issue, but could not get it working.
“./camera_i2c” script gives the same output as in the screenshot in https://www.arducam.com/forums/topic/cannot-mae-clean-make/#post-30542
I have definitely followed the instructions on the git repo exactly, so unsure whats wrong.
Sorry for my late reply.
Please attach me your hardware connection diagram.