Libindi-0.9.6 and Kstars are built and installed.
I am trying to build the qhyccd driver for my qhy5 camera.
I got the latest version via svn
svn co svn.code.sf.net/p/indi/code/trunk/3rdparty/indi-qhy/
cmake -> ok
make -> failed
I got the errors :
indi-qhy # make
Scanning dependencies of target indi_qhy_ccd
[ 10%] Building CXX object CMakeFiles/indi_qhy_ccd.dir/qhyccd.o
In file included from /usr/local/share/indi-qhy/qhyccd.cpp:33:0:
/usr/local/share/indi-qhy/qhyccd.h:55:10: erreur: conflicting return type specified for ‘virtual bool QHYCCD::StartExposure(float)’
In file included from /usr/local/share/indi-qhy/qhyccd.h:31:0,
from /usr/local/share/indi-qhy/qhyccd.cpp:33:
/usr/include/libindi/indiccd.h:156:21: erreur: overriding ‘virtual int INDI::CCD::StartExposure(float)’
/usr/local/share/indi-qhy/qhyccd.cpp: In member function ‘virtual bool QHYCCD::initProperties()’:
/usr/local/share/indi-qhy/qhyccd.cpp:158:3: erreur: ‘Capability’ was not declared in this scope
/usr/local/share/indi-qhy/qhyccd.cpp:158:14: erreur: expected ‘;’ before ‘cap’
/usr/local/share/indi-qhy/qhyccd.cpp:160:3: erreur: ‘cap’ was not declared in this scope
/usr/local/share/indi-qhy/qhyccd.cpp:168:21: erreur: ‘SetCapability’ was not declared in this scope
/usr/local/share/indi-qhy/qhyccd.cpp: In member function ‘virtual bool QHYCCD::GuideWest(float)’:
/usr/local/share/indi-qhy/qhyccd.cpp:270:19: erreur: ‘HasST4Port’ was not declared in this scope
/usr/local/share/indi-qhy/qhyccd.cpp: In member function ‘virtual bool QHYCCD::GuideEast(float)’:
/usr/local/share/indi-qhy/qhyccd.cpp:277:19: erreur: ‘HasST4Port’ was not declared in this scope
/usr/local/share/indi-qhy/qhyccd.cpp: In member function ‘virtual bool QHYCCD::GuideNorth(float)’:
/usr/local/share/indi-qhy/qhyccd.cpp:284:19: erreur: ‘HasST4Port’ was not declared in this scope
/usr/local/share/indi-qhy/qhyccd.cpp: In member function ‘virtual bool QHYCCD::GuideSouth(float)’:
/usr/local/share/indi-qhy/qhyccd.cpp:291:19: erreur: ‘HasST4Port’ was not declared in this scope
make[2]: *** [CMakeFiles/indi_qhy_ccd.dir/qhyccd.o] Erreur 1
make[1]: *** [CMakeFiles/indi_qhy_ccd.dir/all] Erreur 2
make: *** [all] Erreur 2
In /usr/include/libindi/indiccd.h the StartExposure(float) function is declared as "int" but in indi-qhy/qhyccd.h (or cpp), the StartExposure(float) function is declared as "bool".
So, in qhyccd.h (and .cpp), i changed "bool" -> "int"
Some errors are now gone, but i still get the undeclared function (Capability, SetCapability, cap and HasST4Port).
Any idea ?
I always prefer installing Gentoo packages for skipping dependances problems.
So i installed libindi (indilib-0.9.6) and Kstars gentoo packages.
Ok, if there is no other solution, i'll uninstalled the indilib Gentoo package and build indi via svn.