Menu

#1 astroberry drivers make fails in rpi_goto.cpp

1.0
closed
nobody
None
2015-07-27
2015-07-27
pauledd
No

Hi there

I just tried to compile latest astroberry drivers.
What I did so far on my raspbian-wheezy:
-install indilib (but not compiled 3rdparty)
-install astroberry deps (bcm2835 for focuser only)
-svn checkout svn://svn.code.sf.net/p/astroberry/svn/
-cd into astroberry,mkdir build, cd build, cmake -DCMAKE_INSTALL_PREFIX=/usr ..

now doing "make" gives this error:

Scanning dependencies of target indi_goto
[ 14%] Building CXX object CMakeFiles/indi_goto.dir/rpi_goto.o
/home/pi/build/indi-code/3rdparty/indi-astroberry/rpi_goto.cpp: In function ‘int main(int, char*)’:
/home/pi/build/indi-code/3rdparty/indi-astroberry/rpi_goto.cpp:50:31: error: cannot allocate an object of abstract type ‘MyClient’
/home/pi/build/indi-code/3rdparty/indi-astroberry/rpi_goto.h:29:7: note: because the following virtual functions are pure within ‘MyClient’:
/usr/local/include/libindi/indibase.h:76:18: note: virtual void INDI::BaseMediator::removeDevice(INDI::BaseDevice
)
CMakeFiles/indi_goto.dir/build.make:54: recipe for target 'CMakeFiles/indi_goto.dir/rpi_goto.o' failed
make[2]: *** [CMakeFiles/indi_goto.dir/rpi_goto.o] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/indi_goto.dir/all' failed
make[1]: *** [CMakeFiles/indi_goto.dir/all] Error 2
Makefile:113: recipe for target 'all' failed
make: *** [all] Error 2

do I miss something? Is there a cmake switch to build the focuser only?

greets
Paul

Discussion

  • Radek Kaczorek

    Radek Kaczorek - 2015-07-27

    Mosaic driver requires major redesign and will be removed from the source code soon. You can build any other driver by running make for the driver you want to compile e.g. make indi_rpifocus
    The easiest way to disable Mosiac code compilation is to edit CMakeList.txt file and remove all the lines from "################ Astroberry Mosaic ################" (line #63) to the end of the file. After this operation you need to rerun cmake in your build directory and run make to compile the code.

     
  • Radek Kaczorek

    Radek Kaczorek - 2015-07-27
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB