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

indi_QHY libqhyccd.so.21: cannot open shared object file: No such file or directory #470

Closed
SebNik1 opened this issue Oct 10, 2021 · 6 comments

Comments

@SebNik1
Copy link

SebNik1 commented Oct 10, 2021

Dear INDI Community, since the latest update I cannot run the qhy indi driver anymore, neither from the scrip I wrote nor in kstars.

Terminal script shows this error:
2021-10-10T17:07:15: Driver indi_qhy_ccd: indi_qhy_ccd: error while loading shared libraries: libqhyccd.so.21: cannot open shared object file: No such file or directory

Kstars device manager says:
2021-10-10T17:15:13: startup: /usr/bin/indiserver -v -p 7625 -m 1024 -r 0 -f /tmp/indififod79a6a9a
2021-10-10T17:15:13: listening to port 7625 on fd 3
FIFO: start indi_qhy_ccd
FIFO: Starting driver indi_qhy_ccd
2021-10-10T17:15:13: Driver indi_qhy_ccd: pid=17849 rfd=4 wfd=7 efd=8
2021-10-10T17:15:13: Client 5: new arrival from 127.0.0.1:35612 - welcome!
2021-10-10T17:15:13: Driver indi_qhy_ccd: indi_qhy_ccd: error while loading shared libraries: libqhyccd.so.21: cannot open shared object file: No such file or directory
2021-10-10T17:15:13: Driver indi_qhy_ccd: stderr EOF
Child process 17849 died
2021-10-10T17:15:13: Driver indi_qhy_ccd: Terminated after #0 restarts.

I already uninstalled and reinstalled indi full and indi qhy and I tried the last thee versions of the qhy sdk for arm64

My system is a RPI4 8gb and I run ubuntu mate 20.04.3 LTS arm64.
Indi-qhy version: 2.7202109141438ubuntu20.04.1
indi-full version: 2.7202109141438ubuntu20.04.1

I'm very thankful for your advice. Thank you in advance!

@knro
Copy link
Collaborator

knro commented Oct 11, 2021

What about libqhy version? That must not be up to date.

@SebNik1
Copy link
Author

SebNik1 commented Oct 11, 2021

Thank you for the advice, do you mean the sdk from the qhy website? I tried cleaning and reinstallation of the qhy sdk. That did not fix it. In the zip package is only a file named libqhyccd.so.20 and another named libqhyccd.so.21.9.10.19 but no libqhyccd.so.21

I had an older copy of the indi 3rd party source on the rpi and build the indi-qhy from that source, that solved it for now.

Might it be that in the latest driver is a wrong reference to the .21 file?
Bildschirmfoto 2021-10-11 um 21 40 16

@knro
Copy link
Collaborator

knro commented Oct 12, 2021

No I mean from INDI. indi-qhy driver can be built and linked fine against libqhy. Try to install libqhy from Git.

@SebNik1
Copy link
Author

SebNik1 commented Oct 12, 2021

I hope I got you right. I downloaded the latest indi 3rd party source and build indi-qhy again. This seems to work, too. But it still shows the same version 2.8 with sdk 21.9.16

~/Projects/build/indi-qhy$ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/Projects/indi-3rdparty/indi-qhy
-- The CXX compiler identification is GNU 9.3.0
-- The C compiler identification is GNU 9.3.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found CFITSIO 3.47: /usr/lib/aarch64-linux-gnu/libcfitsio.so
-- Found INDI: /usr/lib/aarch64-linux-gnu/libindidriver.so;/usr/lib/aarch64-linux-gnu/libindiAlignmentDriver.so (found version "1.9.2")
-- Found QHY: /usr/local/lib/libqhyccd.so
-- Found ZLIB: /usr/lib/aarch64-linux-gnu/libz.so (found version "1.2.11")
-- Found NOVA: /usr/lib/aarch64-linux-gnu/libnova.so
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Found USB1: /usr/lib/aarch64-linux-gnu/libusb-1.0.so (found version "1.0.23")
-- Performing Test USB1_HAS_LIBUSB_ERROR_NAME
-- Performing Test USB1_HAS_LIBUSB_ERROR_NAME - Success
-- Looking for pthread.h
CMake Warning (dev) at /usr/share/cmake-3.16/Modules/CheckIncludeFile.cmake:80 (message):
Policy CMP0075 is not set: Include file check macros honor
CMAKE_REQUIRED_LIBRARIES. Run "cmake --help-policy CMP0075" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

CMAKE_REQUIRED_LIBRARIES is set to:

/usr/lib/aarch64-linux-gnu/libnova.so

For compatibility with CMake 3.11 and below this check is ignoring it.
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindThreads.cmake:128 (CHECK_INCLUDE_FILE)
CMakeLists.txt:14 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Performing Test COMPATIBLE_FORTIFY_SOURCE
-- Performing Test COMPATIBLE_FORTIFY_SOURCE - Success
-- Configuring done
-- Generating done
-- Build files have been written to: /home/xx/Projects/build/indi-qhy
xx@xxx:/Projects/build/indi-qhy$ make -j4
Scanning dependencies of target qhy_ccd_test
Scanning dependencies of target qhy_video_test
Scanning dependencies of target indi_qhy_ccd
[ 16%] Building CXX object CMakeFiles/qhy_ccd_test.dir/qhy_ccd_test.cpp.o
[ 33%] Building CXX object CMakeFiles/qhy_video_test.dir/qhy_video_test.cpp.o
[ 50%] Building CXX object CMakeFiles/indi_qhy_ccd.dir/qhy_ccd.cpp.o
[ 66%] Linking CXX executable qhy_ccd_test
[ 66%] Built target qhy_ccd_test
[ 83%] Linking CXX executable qhy_video_test
[ 83%] Built target qhy_video_test
[100%] Linking CXX executable indi_qhy_ccd
[100%] Built target indi_qhy_ccd
xx@xxxxx:/Projects/build/indi-qhy$ sudo make install
[sudo] Passwort für xx:
[ 33%] Built target qhy_video_test
[ 66%] Built target qhy_ccd_test
[100%] Built target indi_qhy_ccd
Install the project...
-- Install configuration: "Debug"
-- Installing: /usr/bin/indi_qhy_ccd
-- Set runtime path of "/usr/bin/indi_qhy_ccd" to ""
-- Installing: /usr/share/indi/indi_qhy.xml
-- Installing: /usr/bin/qhy_ccd_test
-- Set runtime path of "/usr/bin/qhy_ccd_test" to ""
-- Installing: /usr/bin/qhy_video_test
-- Set runtime path of "/usr/bin/qhy_video_test" to ""

@xsnrg
Copy link
Collaborator

xsnrg commented Oct 12, 2021

libqhy is in a different folder. You would need to build libqhy first, and then when you re-build indi_qhy_ccd, link against your fresh libqhy.

@SebNik1
Copy link
Author

SebNik1 commented Oct 12, 2021

Oh I see, sorry! Thank you very much for the explanation!

I build libqhy and then I deleted the old build of indi-qhy and build and installed it again. Its showing version 2.8 and the latest sdk 21.9.16 and the camera is also working now. So I think I'm good

P.S. 21.10.12 SDK came out today! this Update also worked for me

@knro knro closed this as completed Oct 13, 2021
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

3 participants