worlickwerx / sbig-util

Linux utility for Santa Barbara Instrument Group cameras for astronomy
GNU General Public License v3.0
5 stars 2 forks source link

sbig-util on arm64 can't find libsbigudrv.so.2.1.1 #41

Open StefanBaar opened 4 years ago

StefanBaar commented 4 years ago

Thanks for your great work and the support so far.

I am currently trying to run sbig-util on an Nvidia Jetson TX2 with ubuntu 18.

sbig-util compiles without problems. However, when running sbig-util info ccd, I get the following error:

sbig-info: libsbigudrv.so.2.1.1: cannot open shared object file: No such file or directory

The problem is probably that, I can't get libsbigudrv2 to install via apt because of the Jetson having armV8 64bit cpu.

I downloaded the source and compiled it, but this only produces libsbigudrv.so.2.0.0.

Is it possible to use libsbigudrv.so.2.0.0 with sbig-util?

I also tried to get my hands on the drivers from Diffraction Limited, but their link doesn't seem work anymore.

garlick commented 4 years ago

You can try setting the SBIG_UDRV environment variable to point to that so, e.g. (bash):

SBIG_UDRV=./libsbigudrv.so.2.0.0 ./sbig info ccd imaging

However I was not aware that libsbigudrv has been released as open source. Where did you find source?

In the past one could request a build of sbigudrv on the DL forums. I haven't had to do that in a long time because the INDI project has packaged the binaries as debs, so another route would be to ask them for one (they may know the best procedure in modern times).

StefanBaar commented 4 years ago

thank you for the quick reply.

I tried SBIG_UDRV=./libsbigudrv.so.2.0.0 ./sbig info ccd, with SBIG_UDRV pointing to the correct path of libsbigudrv.so.2.0.0 ... but still get the same error: cannot open shared object file: No such file or directory

I have got the libsbigudrv2 source from the mutlaqja repo, via "apt-get source libsbigudrv2 " on ubuntu 18. Than used "cmake .. && make" to build

garlick commented 4 years ago

The deb source package just contains precompiled binaries but "file" reports all the ARM ones as 32-bit:

$ file libsbig*.bin
libsbig32.bin:      ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, BuildID[sha1]=4570956887882867f029238e8df94127145487ad, with debug_info, not stripped
libsbig64.bin:      ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=3c55e39b4ff243a0cf0f3c293615426b5266ab7d, with debug_info, not stripped
libsbig_arm_v6.bin: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, BuildID[sha1]=528fc76db40b83e7787089d11e01b9d76c71abd9, with debug_info, not stripped
libsbig_arm_v7.bin: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, BuildID[sha1]=429aacdcdfeab52a3d9b30900fb5ff439e16cea9, with debug_info, not stripped
libsbig_arm_v8.bin: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, BuildID[sha1]=0130cde1cc0f1aca5b23cdf72eba975f64ae2e71, with debug_info, not stripped

So I think the only route for that board would be to request a build... It's a rather sad state of affairs, unfortunately.

StefanBaar commented 4 years ago

ok, I will try that and report back when I know more ... thank you very much

StefanBaar commented 4 years ago

Just wanted to let you know that I asked for a 64bit arm driver (libsbig_arm_v8.bin) at the diffraction limited forum. The response came quickly and stated that the driver is in the works.

Link to the thread:

https://forum.diffractionlimited.com/threads/linux-drivers-for-arm-v8-64bit.6290/