×

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

Bi-monthly release with minor bug fixes and improvements

Building qhyccd problems

  • Posts: 13
  • Thank you received: 0
Hello,

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 ?

Thanks very much,

Cheers,

--
Jacques
10 years 3 months ago #464

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

QHY SVN depends on INDI from SVN as well. So you need to build and install libindi from SVN TRUNK.
svn co http://svn.code.sf.net/p/indi/code/trunk/libindi
cd libindi
cmake -DCMAKE_INSTALL_PREFIX=/usr .
sudo make install
Last edit: 10 years 3 months ago by Jasem Mutlaq.
10 years 3 months ago #465

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

  • Posts: 13
  • Thank you received: 0

Replied by MONTIER on topic Building qhyccd problems

Thanks knro,

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.

--
Jacques
10 years 3 months ago #467

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

If you're planning on using Ekos, then I'd also recommend you build KStars from GIT as well.
10 years 3 months ago #468

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

  • Posts: 13
  • Thank you received: 0

Replied by MONTIER on topic Building qhyccd problems

OK,
Thanks !

Cheers,

--
Jacques
10 years 3 months ago #469

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

Time to create page: 0.414 seconds