×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

libindi_3rdparty_1.2.0 not compiling with gcc-6.2.1

  • Posts: 30
  • Thank you received: 0
Hallo,
on ARCH-Linux there is a problem with indiserver 1.3 and indi_gphoto_ccd. indiserver fails to start with gphoto driver.
indiserver -v indi_gphoto_ccd
2016-11-18T12:59:13: startup: indiserver -v indi_gphoto_ccd 
2016-11-18T12:59:13: Driver indi_gphoto_ccd: pid=15280 rfd=3 wfd=6 efd=7
2016-11-18T12:59:13: listening to port 7624 on fd 4
2016-11-18T12:59:13: Driver indi_gphoto_ccd: INDI::CCD::SetTemperature 0.00 -  Should never get here
2016-11-18T12:59:13: Driver indi_gphoto_ccd: stderr EOF
2016-11-18T12:59:13: Driver indi_gphoto_ccd: restart #1
indiserver 1.2 works like a charm.
I tried to compile the sources as a whole with gcc-6.2.1. but it fail in compiling indi_sx_ccd:
[ 31%] Building CXX object indi-sx/CMakeFiles/indi_sx_ccd.dir/sxccd.o
/home/cherno/AURinstall/libindi_3rdparty/src/libindi_3rdparty_1.2.0/indi-sx/sxccd.cpp: In member function 'virtual void SXCCD::TimerHit()':
/home/cherno/AURinstall/libindi_3rdparty/src/libindi_3rdparty_1.2.0/indi-sx/sxccd.cpp:383:57: error: call of overloaded 'abs(float)' is ambiguous
         if (abs(TemperatureRequest - TemperatureReported) < 1)
                                                         ^
In file included from /usr/include/c++/6.2.1/cstdlib:75:0,
                 from /usr/include/c++/6.2.1/stdlib.h:36,
                 from /usr/include/fitsio.h:76,
                 from /usr/include/libindi/indiccd.h:29,
                 from /home/cherno/AURinstall/libindi_3rdparty/src/libindi_3rdparty_1.2.0/indi-sx/sxccd.h:33,
                 from /home/cherno/AURinstall/libindi_3rdparty/src/libindi_3rdparty_1.2.0/indi-sx/sxccd.cpp:36:
/usr/include/stdlib.h:735:12: note: candidate: int abs(int)
 extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
Also the apogee driver did not compile.
I could compile the gphoto driver alone. This works for me, but I am not rally happy with this.

Cherno
7 years 4 months ago #12245

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

I'm downloading Antegros now and will try compiling it in a VM shortly.
7 years 4 months ago #12246

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

  • Posts: 171
  • Thank you received: 41
As you're trying to compile 1.2.0 instead of a newer release I think there are some fixes like github.com/indilib/indi/commit/7c6be6f50...fe663a16d25e75ab67fc missing. I'm building the Fedora packages and we have gcc 6.x for quite a while. Current release 1.3 compiles without additional fixes.

sourceforge.net/p/indi/patches/15/
The following user(s) said Thank You: Gebhard
Last edit: 7 years 4 months ago by Christian.
7 years 4 months ago #12247

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

  • Posts: 30
  • Thank you received: 0
I did not find libindi-3rdparty_1.3.0 anywhere, but with your help i could compile
indi_asi_ccd
indi_dsi_ccd
indi_fishcamp_ccd
indi_fli_ccd
indi_gphoto_ccd
indi_qsi_ccd
indi_sbig_ccd
indi_sx_ccd
I am not able to compile the drivers from the git sources.
Thank you your very quick response.

cherno
7 years 4 months ago #12251

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

There is no libindi-3rdparty_1.3.0, it's all now shipped as indi-1.3 so select from it which stuff you want to compile/package. I tried compiling under Arch but it seems libftdi is installed different and need to modify FindFTDI.cmake in order to find it. This is the first error there may be more. If you can find out other issues with GIT that prevents it from compiling on Arch, please create Pull Request and submit a patch.
7 years 4 months ago #12255

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

  • Posts: 30
  • Thank you received: 0
Ok knro, if have done it.
I could compile really all drivers from a clone of github.com/indilib/indi.
But I get an error trying indi_qhy_ccd and indi_sx_ccd.
2016-11-23T08:34:03: Driver indi_sx_ccd: read <getProperties device='SQM' name='SKY_QUALITY'>
2016-11-23T08:34:03: Driver indi_sx_ccd: snooping on SQM.SKY_QUALITY
2016-11-23T08:34:03: Driver indi_sx_ccd: stderr EOF
2016-11-23T08:34:03: Driver indi_sx_ccd: restart #4
Same with qhy.
libatik1.11 works well.
7 years 4 months ago #12579

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

  • Posts: 30
  • Thank you received: 0
I compiled a git clone from Nov. 25th and there are no errors so far. I could test the drivers qhy, atik ans sx. Only the sx driver has a minor problem (see another thred).
On ARCH Linux there are no devel packages. All you need is listed in www.archlinux.org/packages/extra/i686/libindi/. Maybe one should install gpsd, ftdi and ftdi-compat from the ARCH repository and Aravis from wiki.gnome.org/Projects/Aravis, depencies are fond here aur.archlinux.org/packages/aravis/.

Libindi is a really great project. Thanks to all contributors.

Cherno
7 years 4 months ago #12666

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

Time to create page: 0.766 seconds