×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

indi-qsi and kstars build is failing on Raspberry Pi 5 bookworm

  • Posts: 437
  • Thank you received: 31
I am not sure if these are bookworm issues or something else.

build of indi-3rdparty indi-qsi
[ 50%] Building CXX object CMakeFiles/indi_qsi_ccd.dir/qsi_ccd.cpp.o
In file included from /home/indi/Projects/indi-3rdparty/indi-qsi/qsi_ccd.cpp:75:
/home/indi/Projects/indi-3rdparty/indi-qsi/qsi_ccd.h:71:79: error: ‘FITSRecord’ is not a member of ‘INDI’
71 | ddFITSKeywords(INDI::CCDChip *targetChip, std::vector<INDI::FITSRecord> &fitsKeywords) override;
| ^~~~~~~~~~

/home/indi/Projects/indi-3rdparty/indi-qsi/qsi_ccd.h:71:79: error: ‘FITSRecord’ is not a member of ‘INDI’
/home/indi/Projects/indi-3rdparty/indi-qsi/qsi_ccd.h:71:89: error: template argument 1 is invalid
71 | ords(INDI::CCDChip *targetChip, std::vector<INDI::FITSRecord> &fitsKeywords) override;
| ^

/home/indi/Projects/indi-3rdparty/indi-qsi/qsi_ccd.h:71:89: error: template argument 2 is invalid
/home/indi/Projects/indi-3rdparty/indi-qsi/qsi_ccd.h:71:18: error: ‘virtual void QSICCD::addFITSKeywords(INDI::CCDChip*, int&)’ marked ‘override’, but does not override
71 | virtual void addFITSKeywords(INDI::CCDChip *targetChip, std::vector<INDI::FITSRecord> &fitsKeywords) override;
| ^~~~~~~~~~~~~~~
/home/indi/Projects/indi-3rdparty/indi-qsi/qsi_ccd.cpp:913:75: error: ‘FITSRecord’ is not a member of ‘INDI’
913 | ddFITSKeywords(INDI::CCDChip *targetChip, std::vector<INDI::FITSRecord> &fitsKeywords)
| ^~~~~~~~~~

/home/indi/Projects/indi-3rdparty/indi-qsi/qsi_ccd.cpp:913:75: error: ‘FITSRecord’ is not a member of ‘INDI’
/home/indi/Projects/indi-3rdparty/indi-qsi/qsi_ccd.cpp:913:85: error: template argument 1 is invalid
913 | ords(INDI::CCDChip *targetChip, std::vector<INDI::FITSRecord> &fitsKeywords)
| ^

/home/indi/Projects/indi-3rdparty/indi-qsi/qsi_ccd.cpp:913:85: error: template argument 2 is invalid
/home/indi/Projects/indi-3rdparty/indi-qsi/qsi_ccd.cpp: In member function ‘virtual void QSICCD::addFITSKeywords(INDI::CCDChip*, int&)’:
/home/indi/Projects/indi-3rdparty/indi-qsi/qsi_ccd.cpp:915:31: error: no matching function for call to ‘QSICCD::addFITSKeywords(INDI::CCDChip*&, int&)’
915 | INDI::CCD::addFITSKeywords(targetChip, fitsKeywords);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/indi/Projects/indi-3rdparty/indi-qsi/qsi_ccd.h:35:
/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/indi/Projects/indi-3rdparty/indi-qsi/qsi_ccd.cpp:933:18: error: request for member ‘push_back’ in ‘fitsKeywords’, which is of non-class type ‘int’
933 | fitsKeywords.push_back({"EPERADU", electronsPerADU, 3, "Electrons per ADU"});
| ^~~~~~~~~
make[2]: *** [CMakeFiles/indi_qsi_ccd.dir/build.make:76: CMakeFiles/indi_qsi_ccd.dir/qsi_ccd.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/indi_qsi_ccd.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

build of kstars
[ 7%] Building CXX object kstars/CMakeFiles/KStarsLib.dir/fitsviewer/fitstab.cpp.o
In file included from /home/indi/Projects/kstars/kstars/fitsviewer/fitstab.h:25,
from /home/indi/Projects/kstars/kstars/fitsviewer/fitstab.cpp:7:
/home/indi/Projects/kstars/kstars/ekos/auxiliary/solverutils.h:9:10: fatal error: stellarsolver.h: No such file or directory
9 | #include <stellarsolver.h>
| ^~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [kstars/CMakeFiles/KStarsLib.dir/build.make:614: kstars/CMakeFiles/KStarsLib.dir/fitsviewer/fitstab.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/indi/Projects/kstars/kstars/fitsviewer/fitstab.h:25,
from /home/indi/Projects/kstars/kstars/fitsviewer/fitsviewer.cpp:15:
/home/indi/Projects/kstars/kstars/ekos/auxiliary/solverutils.h:9:10: fatal error: stellarsolver.h: No such file or directory
9 | #include <stellarsolver.h>
| ^~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [kstars/CMakeFiles/KStarsLib.dir/build.make:586: kstars/CMakeFiles/KStarsLib.dir/fitsviewer/fitsviewer.cpp.o] Error 1
In file included from /home/indi/Projects/build/kstars/kstars/KStarsLib_autogen/GB6ZSSQLTO/../../../../../kstars/kstars/fitsviewer/fitstab.h:25,
from /home/indi/Projects/build/kstars/kstars/KStarsLib_autogen/GB6ZSSQLTO/moc_fitstab.cpp:10,
from /home/indi/Projects/build/kstars/kstars/KStarsLib_autogen/mocs_compilation.cpp:49:
/home/indi/Projects/kstars/kstars/ekos/auxiliary/solverutils.h:9:10: fatal error: stellarsolver.h: No such file or directory
9 | #include <stellarsolver.h>
| ^~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [kstars/CMakeFiles/KStarsLib.dir/build.make:558: kstars/CMakeFiles/KStarsLib.dir/KStarsLib_autogen/mocs_compilation.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1534: kstars/CMakeFiles/KStarsLib.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 7%] Built target pofiles-adce09dc0369cccc41618d007d7eef25
make: *** [Makefile:146: all] Error 2
4 months 1 week ago #97687

Please Log in or Create an account to join the conversation.

  • Posts: 362
  • Thank you received: 114
Did you build base INDI first? This looks like version mismatch between base INDI and 3rdparty.
4 months 1 week ago #97691

Please Log in or Create an account to join the conversation.

  • Posts: 53
  • Thank you received: 11
This looks like missing an installation of libqsi. This is an educated guess, but there is a libqsi directory in indi-3rdparty and although it is not explicitly mentioned in indi-qsi documentation, I will bet that it is a pre-requisite.
It is exactly the case with QHY drivers: there are both indi-qhy and libqhy, and libqhy needs to be built/installed before indi-qhy.
4 months 1 week ago #97692

Please Log in or Create an account to join the conversation.

  • Posts: 437
  • Thank you received: 31
Yes, INDI built without issues, and libqsi but failed for indi-qsi.
4 months 1 week ago #97695

Please Log in or Create an account to join the conversation.

  • Posts: 437
  • Thank you received: 31
Yes, libqsi is a prerequisite and it builds without issues.

I was thinking this might be a bookworm issue, but no idea really.

I know when building from source I often pick up issues.

Paul
4 months 1 week ago #97696

Please Log in or Create an account to join the conversation.

  • Posts: 53
  • Thank you received: 11
Sorry for a silly question, but after building libqsi, you sure have installed it, right?
The errors really look like some declarations/definitions are missing, and usually those are in headers that get installed into system code include locations with `make install`.
4 months 1 week ago #97697

Please Log in or Create an account to join the conversation.

  • Posts: 437
  • Thank you received: 31
Just to make sure I have run sudo make install for libqsi and the make still fails for indi-qsi.

Paul
4 months 1 week ago #97698

Please Log in or Create an account to join the conversation.

  • Posts: 118
  • Thank you received: 19
Paul,

Something has changed here,

I have an build error in INDI 3rd-party as well, on Bullseye so slightly different to yours.

I'm using Nou's astro-soft-build stable script, it normally works fine without error, I've tried on a git pull origin update and on a new build, same result.

[ 78%] Building CXX object indi-dreamfocuser/CMakeFiles/indi_dreamfocuser_focus.dir/dreamfocuser.cpp.o
/usr/bin/ld: CMakeFiles/indi_weewx_json.dir/indi_weewx_json.cpp.o: in function `WeewxJSON::initProperties()':
/home/alan/astro-soft-stable/indi-3rdparty/indi-weewx-json/indi_weewx_json.cpp:88: undefined reference to `INDI::PropertyBasic<_IText>::operator[](long) const'
/usr/bin/ld: CMakeFiles/indi_weewx_json.dir/indi_weewx_json.cpp.o: in function `WeewxJSON::updateWeather()':
/home/alan/astro-soft-stable/indi-3rdparty/indi-weewx-json/indi_weewx_json.cpp:268: undefined reference to `INDI::PropertyBasic<_IText>::operator[](long) const'
/usr/bin/ld: /home/alan/astro-soft-stable/indi-3rdparty/indi-weewx-json/indi_weewx_json.cpp:299: undefined reference to `INDI::PropertyBasic<_IText>::operator[](long) const'
/usr/bin/ld: /home/alan/astro-soft-stable/indi-3rdparty/indi-weewx-json/indi_weewx_json.cpp:293: undefined reference to `INDI::PropertyBasic<_IText>::operator[](long) const'
collect2: error: ld returned 1 exit status
make[2]: *** [indi-weewx-json/CMakeFiles/indi_weewx_json.dir/build.make:108: indi-weewx-json/indi_weewx_json] Error 1
make[1]: *** [CMakeFiles/Makefile2:3159: indi-weewx-json/CMakeFiles/indi_weewx_json.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 78%] Building CXX object indi-nightscape/CMakeFiles/nstest.dir/nschannel-u.cpp.o
[ 78%] Building CXX object indi-nightscape/CMakeFiles/nstest.dir/nsmsg.cpp.o
[ 78%] Building CXX object indi-nightscape/CMakeFiles/indi_nightscape_ccd.dir/nschannel-u.cpp.o
[ 79%] Building CXX object indi-nightscape/CMakeFiles/indi_nightscape_ccd.dir/nsmsg.cpp.o
[ 79%] Linking CXX executable indi_dreamfocuser_focus
[ 79%] Built target indi_dreamfocuser_focus
[ 80%] Building CXX object indi-nightscape/CMakeFiles/nstest.dir/nsdownload.cpp.o
[ 80%] Building CXX object indi-nightscape/CMakeFiles/indi_nightscape_ccd.dir/nsdownload.cpp.o
[ 80%] Building CXX object indi-nightscape/CMakeFiles/nstest.dir/nsstatus.cpp.o
[ 80%] Building CXX object indi-nightscape/CMakeFiles/indi_nightscape_ccd.dir/nsstatus.cpp.o
[ 80%] Building CXX object indi-nightscape/CMakeFiles/nstest.dir/nstest-main.cpp.o
[ 81%] Building CXX object indi-nightscape/CMakeFiles/indi_nightscape_ccd.dir/nightscape.cpp.o
[ 82%] Linking CXX executable nstest
[ 82%] Built target nstest
[ 82%] Linking CXX executable indi_nightscape_ccd
[ 82%] Built target indi_nightscape_ccd
make: *** [Makefile:171: all] Error 2
INDI 3rd-party compilation failed

Cheers

Alan
4 months 1 week ago #97704

Please Log in or Create an account to join the conversation.

  • Posts: 437
  • Thank you received: 31
Today I did another pull for indi and there were some additional changes which after compiling and installing the indi-qsi build is now working.

This has also fixed the kstars build.

At the moment I only have a problem with building phd2, but that is for another forum :)

Paul
4 months 1 week ago #97705

Please Log in or Create an account to join the conversation.

  • Posts: 362
  • Thank you received: 114
Tested on Debian 12 x86_64 virtual machine. I also got some linking errors. But when I deleted build-* directories and run stable build again it went smoothly. So try delete your build directories and try again. Seems like something is not correctly rebuild even though it should.

And yes latest master sometimes can't be build because not everything was up to date.
The following user(s) said Thank You: Alan Archer
Last edit: 4 months 1 week ago by nou.
4 months 1 week ago #97706

Please Log in or Create an account to join the conversation.

  • Posts: 437
  • Thank you received: 31
This was a brand new install for testing on bookworm on a Raspberry Pi 5.

Paul
4 months 1 week ago #97707

Please Log in or Create an account to join the conversation.

Time to create page: 1.271 seconds