I am trying to debug issues I have with our ASI2600MC camera and I ran into a curious situation concerning the ASI driver provided by the libasi package. I am on a Raspberry Pi 4 running Ubuntu Mate 20.04 64 bit:
$> uname -a
Linux mulder 5.4.0-1028-raspi #31-Ubuntu SMP PREEMPT Wed Jan 20 11:30:45 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux
As you can see I am looking at the package built last night:
$> dpkg -l libasi
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-===============================-============-======================================================
ii libasi 1.12~202102230338~ubuntu20.04.1 arm64 Library for ASI Cameras, Filter Wheel, Focuser and ST4
When I look at the contents of the libasi package I get this:
Looking into CMakeLists.txt for libasi, the only thing I see is that the .bin file corresponding to the system architecture gets copied to a file with the name ending in .so but that doesn't explain the difference in file size. So my questions are:
Why is there a difference in file size?
Can I simply take the .bin file for my architecture and copy that over the .so file in the /usr/lib/aarch64-linux-gnu directory and will the driver work?
I guess I can try out copying the .bin file after making a backup of the existing .so file but that still doesn't explain the difference in file size.