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 building with qhy SDK arm64 23-01-11 fails #726

Closed
SebNik1 opened this issue Feb 13, 2023 · 2 comments
Closed

indi-qhy building with qhy SDK arm64 23-01-11 fails #726

SebNik1 opened this issue Feb 13, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@SebNik1
Copy link

SebNik1 commented Feb 13, 2023

Describe the bug
QHY Indi Driver was crushing after the latest indi update so I tried building libqhy (this one succesfully) and afterwards indi-qhy, which failed due to "error: ‘FITSRecord’ is not a member of ‘INDI’". I got all the dependencies excpet the no longer available libdc1394-22. I also reinstalled fitsio as it seemt to be missing. I spent several hours now and I'd be very happy for any advice. I did the distclean to get rid of all old qhy sdk versions and installed the latest version 23-01-11 clean.

To Reproduce
Exact steps to reproduce the behavior.

  1. get indi-3rdparty
  2. build libqhy and then indi-qhy
  3. See error

Expected behavior
build of indi-qhy and beeing able to connect to my camera (268c)

Desktop (please complete the following information):

  • OS: Ubuntu Mate ond RPI4b 8GB
  • Version 22.04.1 LTS

Log Files
xx@xxxxx: /Projects$ sudo apt-get -y install libnova-dev libcfitsio-dev libusb-1.0-0-dev zlib1g-dev libgsl-dev build-essential cmake git libjpeg-dev libcurl4-gnutls-dev libtiff-dev libfftw3-dev libftdi-dev libgps-dev libraw-dev libdc1394-22 libgphoto2-dev libboost-dev libboost-regex-dev librtlsdr-dev liblimesuite-dev libftdi1-dev libavcodec-dev libavdevice-dev
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
E: Paket libdc1394-22 kann nicht gefunden werden.
xx@xxxxx:
/Projects$ sudo apt-get -y install libnova-dev libcfitsio-dev libusb-1.0-0-dev zlib1g-dev libgsl-dev build-essential cmake git libjpeg-dev libcurl4-gnutls-dev libtiff-dev libfftw3-dev libftdi-dev libgps-dev libraw-dev libgphoto2-dev libboost-dev libboost-regex-dev librtlsdr-dev liblimesuite-dev libftdi1-dev libavcodec-dev libavdevice-dev
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
git ist schon die neueste Version (1:2.34.1-1ubuntu1.6).
libcurl4-gnutls-dev ist schon die neueste Version (7.81.0-1ubuntu1.7).
libtiff-dev ist schon die neueste Version (4.3.0-6ubuntu0.3).
zlib1g-dev ist schon die neueste Version (1:1.2.11.dfsg-2ubuntu9.2).
libgphoto2-dev ist schon die neueste Version (2.5.30+202301310850ubuntu22.04.1).
build-essential ist schon die neueste Version (12.9ubuntu3).
cmake ist schon die neueste Version (3.22.1-1ubuntu1.22.04.1).
libavcodec-dev ist schon die neueste Version (7:4.4.2-0ubuntu0.22.04.1).
libavdevice-dev ist schon die neueste Version (7:4.4.2-0ubuntu0.22.04.1).
libboost-dev ist schon die neueste Version (1.74.0.3ubuntu7).
libboost-regex-dev ist schon die neueste Version (1.74.0.3ubuntu7).
libcfitsio-dev ist schon die neueste Version (4.0.0-1).
libfftw3-dev ist schon die neueste Version (3.3.8-2ubuntu8).
libftdi-dev ist schon die neueste Version (0.20-4ubuntu1).
libftdi1-dev ist schon die neueste Version (1.5-5build3).
libgps-dev ist schon die neueste Version (3.22-4ubuntu2).
libgsl-dev ist schon die neueste Version (2.7.1+dfsg-3).
libjpeg-dev ist schon die neueste Version (8c-2ubuntu10).
liblimesuite-dev ist schon die neueste Version (20.10.0+dfsg-5).
libnova-dev ist schon die neueste Version (0.16-5).
libraw-dev ist schon die neueste Version (0.20.2-2ubuntu2).
librtlsdr-dev ist schon die neueste Version (0.6.0-4).
libusb-1.0-0-dev ist schon die neueste Version (2:1.0.25-1ubuntu2).
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
xx@xxxxx:
/Projects$ mkdir -p /Projects/build/indi-qhy
xx@xxxxx:
/Projects$ cd /Projects/build/indi-qhy
xx@xxxxx:
/Projects/build/indi-qhy$ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug /Projects/indi-3rdparty/indi-qhy
-- Found CFITSIO: /usr/lib/aarch64-linux-gnu/libcfitsio.so
-- Found libqhyccd: /usr/local/lib/libqhyccd.so
-- Found libnova: /usr/lib/aarch64-linux-gnu/libnova.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/sn/Projects/indi-3rdparty/indi-qhy
xx@xxxxx:
/Projects/build/indi-qhy$ make -j4
Consolidate compiler generated dependencies of target qhy_ccd_test
Consolidate compiler generated dependencies of target qhy_video_test
Consolidate compiler generated dependencies of target indi_qhy_ccd
[ 16%] Linking CXX executable qhy_ccd_test
[ 16%] Linking CXX executable qhy_video_test
[ 16%] Building CXX object CMakeFiles/indi_qhy_ccd.dir/qhy_ccd.cpp.o
/usr/bin/ld: /usr/local/lib/libqhyccd.so: undefined reference to cvReleaseImage' /usr/bin/ld: /usr/local/lib/libqhyccd.so: undefined reference to cvMinMaxLoc'
/usr/bin/ld: /usr/local/lib/libqhyccd.so: undefined reference to cvCopy' /usr/bin/ld: /usr/local/lib/libqhyccd.so: undefined reference to cvSetImageROI'
/usr/bin/ld: /usr/local/lib/libqhyccd.so: undefined reference to cvResize' /usr/bin/ld: /usr/local/lib/libqhyccd.so: undefined reference to cvRectangle'
/usr/bin/ld: /usr/local/lib/libqhyccd.so: undefined reference to cvSetImageCOI' /usr/bin/ld: /usr/local/lib/libqhyccd.so: undefined reference to cvCanny'
/usr/bin/ld: /usr/local/lib/libqhyccd.so: undefined reference to cvThreshold' /usr/bin/ld: /usr/local/lib/libqhyccd.so: undefined reference to cvInitFont'
/usr/bin/ld: /usr/local/lib/libqhyccd.so: undefined reference to cvResetImageROI' /usr/bin/ld: /usr/local/lib/libqhyccd.so: undefined reference to cvSum'
/usr/bin/ld: /usr/local/lib/libqhyccd.so: undefined reference to cvSetZero' /usr/bin/ld: /usr/local/lib/libqhyccd.so: undefined reference to cvCvtColor'
/usr/bin/ld: /usr/local/lib/libqhyccd.so: undefined reference to cvCreateImageHeader' /usr/bin/ld: /usr/bin/ld: /usr/local/lib/libqhyccd.so: undefined reference to /usr/local/lib/libqhyccd.socvAddS: undefined reference to ' cvReleaseImage' /usr/bin/ld: /usr/local/lib/libqhyccd.so: undefined reference to cvCreateImage'
/usr/bin/ld: /usr/local/lib/libqhyccd.so: undefined reference to cvAvgSdv' /usr/bin/ld: /usr/local/lib/libqhyccd.so: undefined reference to cvMinMaxLoc'
/usr/bin/ld: /usr/local/lib/libqhyccd.so: undefined reference to cvCopy' /usr/bin/ld: /usr/local/lib/libqhyccd.so: undefined reference to cvSetImageROI'
/usr/bin/ld: /usr/local/lib/libqhyccd.so: undefined reference to cvResize' /usr/bin/ld: /usr/local/lib/libqhyccd.so: undefined reference to cvRectangle'
collect2: error: ld returned 1 exit status
/usr/bin/ld: /usr/local/lib/libqhyccd.so: undefined reference to cvSetImageCOI' /usr/bin/ld: /usr/local/lib/libqhyccd.so: undefined reference to cvCanny'
/usr/bin/ld: /usr/local/lib/libqhyccd.so: undefined reference to cvThreshold' make[2]: *** [CMakeFiles/qhy_ccd_test.dir/build.make:99: qhy_ccd_test] Fehler 1 /usr/bin/ld: /usr/local/lib/libqhyccd.so: undefined reference to cvInitFont'
/usr/bin/ld: /usr/local/lib/libqhyccd.so: undefined reference to cvResetImageROI' make[1]: *** [CMakeFiles/Makefile2:113: CMakeFiles/qhy_ccd_test.dir/all] Fehler 2 make[1]: *** Auf noch nicht beendete Prozesse wird gewartet … /usr/bin/ld: /usr/local/lib/libqhyccd.so: undefined reference to cvSum'
/usr/bin/ld: /usr/local/lib/libqhyccd.so: undefined reference to cvSetZero' /usr/bin/ld: /usr/local/lib/libqhyccd.so: undefined reference to cvCvtColor'
/usr/bin/ld: /usr/local/lib/libqhyccd.so: undefined reference to cvCreateImageHeader' /usr/bin/ld: /usr/local/lib/libqhyccd.so: undefined reference to cvAddS'
/usr/bin/ld: /usr/local/lib/libqhyccd.so: undefined reference to cvCreateImage' /usr/bin/ld: /usr/local/lib/libqhyccd.so: undefined reference to cvAvgSdv'

collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/qhy_video_test.dir/build.make:99: qhy_video_test] Fehler 1
make[1]: *** [CMakeFiles/Makefile2:139: CMakeFiles/qhy_video_test.dir/all] Fehler 2
In file included from /home/sn/Projects/indi-3rdparty/indi-qhy/qhy_ccd.cpp:23:
/home/sn/Projects/indi-3rdparty/indi-qhy/qhy_ccd.h:91:75: error: ‘FITSRecord’ is not a member of ‘INDI’
91 | ddFITSKeywords(INDI::CCDChip *targetChip, std::vectorINDI::FITSRecord &fitsKeywords) override;
| ^~~~~~~~~~

/home/sn/Projects/indi-3rdparty/indi-qhy/qhy_ccd.h:91:75: error: ‘FITSRecord’ is not a member of ‘INDI’
/home/sn/Projects/indi-3rdparty/indi-qhy/qhy_ccd.h:91:85: error: template argument 1 is invalid
91 | ords(INDI::CCDChip *targetChip, std::vectorINDI::FITSRecord &fitsKeywords) override;
| ^

/home/sn/Projects/indi-3rdparty/indi-qhy/qhy_ccd.h:91:85: error: template argument 2 is invalid
/home/sn/Projects/indi-3rdparty/indi-qhy/qhy_ccd.h:91:14: error: ‘void QHYCCD::addFITSKeywords(INDI::CCDChip*, int&)’ marked ‘override’, but does not override
91 | void addFITSKeywords(INDI::CCDChip *targetChip, std::vectorINDI::FITSRecord &fitsKeywords) override;
| ^~~~~~~~~~~~~~~
/home/sn/Projects/indi-3rdparty/indi-qhy/qhy_ccd.cpp:2727:75: error: ‘FITSRecord’ is not a member of ‘INDI’
2727 | ddFITSKeywords(INDI::CCDChip *targetChip, std::vectorINDI::FITSRecord &fitsKeywords)
| ^~~~~~~~~~

/home/sn/Projects/indi-3rdparty/indi-qhy/qhy_ccd.cpp:2727:75: error: ‘FITSRecord’ is not a member of ‘INDI’
/home/sn/Projects/indi-3rdparty/indi-qhy/qhy_ccd.cpp:2727:85: error: template argument 1 is invalid
2727 | ords(INDI::CCDChip *targetChip, std::vectorINDI::FITSRecord &fitsKeywords)
| ^

/home/sn/Projects/indi-3rdparty/indi-qhy/qhy_ccd.cpp:2727:85: error: template argument 2 is invalid
/home/sn/Projects/indi-3rdparty/indi-qhy/qhy_ccd.cpp: In member function ‘void QHYCCD::addFITSKeywords(INDI::CCDChip*, int&)’:
/home/sn/Projects/indi-3rdparty/indi-qhy/qhy_ccd.cpp:2729:31: error: no matching function for call to ‘QHYCCD::addFITSKeywords(INDI::CCDChip*&, int&)’
2729 | INDI::CCD::addFITSKeywords(targetChip, fitsKeywords);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/sn/Projects/indi-3rdparty/indi-qhy/qhy_ccd.h:25,
from /home/sn/Projects/indi-3rdparty/indi-qhy/qhy_ccd.cpp:23:
/usr/include/libindi/indiccd.h:508:22: note: candidate: ‘virtual void INDI::CCD::addFITSKeywords(INDI::CCDChip*)’
508 | virtual void addFITSKeywords(CCDChip * targetChip);
| ^~~~~~~~~~~~~~~
/usr/include/libindi/indiccd.h:508:22: note: candidate expects 1 argument, 2 provided
/home/sn/Projects/indi-3rdparty/indi-qhy/qhy_ccd.cpp:2733:22: error: request for member ‘push_back’ in ‘fitsKeywords’, which is of non-class type ‘int’
2733 | fitsKeywords.push_back({"GAIN", GainN[0].value, 3, "Gain"});
| ^~~~~~~~~
/home/sn/Projects/indi-3rdparty/indi-qhy/qhy_ccd.cpp:2738:22: error: request for member ‘push_back’ in ‘fitsKeywords’, which is of non-class type ‘int’
2738 | fitsKeywords.push_back({"OFFSET", OffsetN[0].value, 3, "Offset"});
| ^~~~~~~~~
/home/sn/Projects/indi-3rdparty/indi-qhy/qhy_ccd.cpp:2743:22: error: request for member ‘push_back’ in ‘fitsKeywords’, which is of non-class type ‘int’
2743 | fitsKeywords.push_back({"AMPGLOW", IUFindOnSwitch(&AMPGlowSP)->label, "Mode"});
| ^~~~~~~~~
/home/sn/Projects/indi-3rdparty/indi-qhy/qhy_ccd.cpp:2748:22: error: request for member ‘push_back’ in ‘fitsKeywords’, which is of non-class type ‘int’
2748 | fitsKeywords.push_back({"READMODE", ReadModeN[0].value, 1, "Read Mode"});
| ^~~~~~~~~
/home/sn/Projects/indi-3rdparty/indi-qhy/qhy_ccd.cpp:2755:22: error: request for member ‘push_back’ in ‘fitsKeywords’, which is of non-class type ‘int’
2755 | fitsKeywords.push_back({"GPS_SFLG", GPSHeader.start_flag, "StartFlag"});
| ^~~~~~~~~
/home/sn/Projects/indi-3rdparty/indi-qhy/qhy_ccd.cpp:2757:22: error: request for member ‘push_back’ in ‘fitsKeywords’, which is of non-class type ‘int’
2757 | fitsKeywords.push_back({"GPS_SS", GPSHeader.start_sec, "StartShutterSeconds"});
| ^~~~~~~~~
/home/sn/Projects/indi-3rdparty/indi-qhy/qhy_ccd.cpp:2759:22: error: request for member ‘push_back’ in ‘fitsKeywords’, which is of non-class type ‘int’
2759 | fitsKeywords.push_back({"GPS_SU", GPSHeader.start_us, 3, "StartShutterMicroSeconds"});
| ^~~~~~~~~
/home/sn/Projects/indi-3rdparty/indi-qhy/qhy_ccd.cpp:2761:22: error: request for member ‘push_back’ in ‘fitsKeywords’, which is of non-class type ‘int’
2761 | fitsKeywords.push_back({"GPS_ST", GPSDataStartT[GPS_DATA_START_TS].text, "StartShutterTime"});
| ^~~~~~~~~
/home/sn/Projects/indi-3rdparty/indi-qhy/qhy_ccd.cpp:2765:22: error: request for member ‘push_back’ in ‘fitsKeywords’, which is of non-class type ‘int’
2765 | fitsKeywords.push_back({"GPS_EFLG", GPSHeader.end_flag, "EndFlag"});
| ^~~~~~~~~
/home/sn/Projects/indi-3rdparty/indi-qhy/qhy_ccd.cpp:2767:22: error: request for member ‘push_back’ in ‘fitsKeywords’, which is of non-class type ‘int’
2767 | fitsKeywords.push_back({"GPS_ES", GPSHeader.end_sec, "EndShutterSeconds"});
| ^~~~~~~~~
/home/sn/Projects/indi-3rdparty/indi-qhy/qhy_ccd.cpp:2769:22: error: request for member ‘push_back’ in ‘fitsKeywords’, which is of non-class type ‘int’
2769 | fitsKeywords.push_back({"GPS_EU", GPSHeader.end_us, 3, "EndShutterMicroSeconds"});
| ^~~~~~~~~
/home/sn/Projects/indi-3rdparty/indi-qhy/qhy_ccd.cpp:2771:22: error: request for member ‘push_back’ in ‘fitsKeywords’, which is of non-class type ‘int’
2771 | fitsKeywords.push_back({"GPS_ET", GPSDataStartT[GPS_DATA_END_TS].text, "EndShutterTime"});
| ^~~~~~~~~
/home/sn/Projects/indi-3rdparty/indi-qhy/qhy_ccd.cpp:2775:22: error: request for member ‘push_back’ in ‘fitsKeywords’, which is of non-class type ‘int’
2775 | fitsKeywords.push_back({"GPS_NFLG", GPSHeader.now_flag, "NowFlag"});
| ^~~~~~~~~
/home/sn/Projects/indi-3rdparty/indi-qhy/qhy_ccd.cpp:2777:22: error: request for member ‘push_back’ in ‘fitsKeywords’, which is of non-class type ‘int’
2777 | fitsKeywords.push_back({"GPS_NS", GPSHeader.now_sec, "NowShutterSeconds"});
| ^~~~~~~~~
/home/sn/Projects/indi-3rdparty/indi-qhy/qhy_ccd.cpp:2779:22: error: request for member ‘push_back’ in ‘fitsKeywords’, which is of non-class type ‘int’
2779 | fitsKeywords.push_back({"GPS_NU", GPSHeader.now_us, 3, "NowShutterMicroSeconds"});
| ^~~~~~~~~
/home/sn/Projects/indi-3rdparty/indi-qhy/qhy_ccd.cpp:2781:22: error: request for member ‘push_back’ in ‘fitsKeywords’, which is of non-class type ‘int’
2781 | fitsKeywords.push_back({"GPS_NT", GPSDataStartT[GPS_DATA_NOW_TS].text, "NowShutterTime"});
| ^~~~~~~~~
/home/sn/Projects/indi-3rdparty/indi-qhy/qhy_ccd.cpp:2784:22: error: request for member ‘push_back’ in ‘fitsKeywords’, which is of non-class type ‘int’
2784 | fitsKeywords.push_back({"GPS_PPSC", GPSHeader.max_clock, "PPSCounter"});
| ^~~~~~~~~
/home/sn/Projects/indi-3rdparty/indi-qhy/qhy_ccd.cpp:2795:22: error: request for member ‘push_back’ in ‘fitsKeywords’, which is of non-class type ‘int’
2795 | fitsKeywords.push_back({"GPS_LONG", GPSHeader.longitude, "GPS Longitude"});
| ^~~~~~~~~
/home/sn/Projects/indi-3rdparty/indi-qhy/qhy_ccd.cpp:2798:22: error: request for member ‘push_back’ in ‘fitsKeywords’, which is of non-class type ‘int’
2798 | fitsKeywords.push_back({"GPS_LAT", GPSHeader.latitude, "GPS Latitude"});
| ^~~~~~~~~
/home/sn/Projects/indi-3rdparty/indi-qhy/qhy_ccd.cpp:2801:22: error: request for member ‘push_back’ in ‘fitsKeywords’, which is of non-class type ‘int’
2801 | fitsKeywords.push_back({"GPS_SEQ", GPSHeader.seqNumber, "Sequence Number"});
| ^~~~~~~~~
/home/sn/Projects/indi-3rdparty/indi-qhy/qhy_ccd.cpp:2804:22: error: request for member ‘push_back’ in ‘fitsKeywords’, which is of non-class type ‘int’
2804 | fitsKeywords.push_back({"GPS_TMP", GPSHeader.tempNumber, "Temporary Sequence Number"});
| ^~~~~~~~~
make[2]: *** [CMakeFiles/indi_qhy_ccd.dir/build.make:76: CMakeFiles/indi_qhy_ccd.dir/qhy_ccd.cpp.o] Fehler 1
make[1]: *** [CMakeFiles/Makefile2:87: CMakeFiles/indi_qhy_ccd.dir/all] Fehler 2
make: *** [Makefile:136: all] Fehler 2

@SebNik1 SebNik1 added the bug Something isn't working label Feb 13, 2023
@knro
Copy link
Collaborator

knro commented Feb 14, 2023

You're using /usr/local so that's usually a red flag that it's getting compiled against the wrong library.

@SebNik1
Copy link
Author

SebNik1 commented Feb 16, 2023 via email

@knro knro closed this as completed Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants