Any one succeeded in compiling indi-eqmod on raspberry (version 0.9.9)
I have compiled indilib and indi-gphoto-ccd with succes by following the instructions here at the forum. I can control my Canon 1100D from raspberry by my labtop and kstats/ekos.
But I have no succes in compiling indi-eqmod and get the following error when doing a sudo make install:
pi@raspberrypi ~/Projects/build/indi-eqmod $ sudo make install
Scanning dependencies of target indi_eqmod_telescope
[ 8%] Building CXX object CMakeFiles/indi_eqmod_telescope.dir/eqmod.o
In file included from /home/pi/Projects/trunk/3rdparty/indi-eqmod/eqmod.h:33:0,
from /home/pi/Projects/trunk/3rdparty/indi-eqmod/eqmod.cpp:48:
/home/pi/Projects/trunk/3rdparty/indi-eqmod/scope-limits/scope-limits.h:51:21: error: invalid use of non-static data member ‘HorizonLimits::errorline’
/home/pi/Projects/trunk/3rdparty/indi-eqmod/scope-limits/scope-limits.h:52:21: error: from this location
/home/pi/Projects/trunk/3rdparty/indi-eqmod/scope-limits/scope-limits.h:52:31: sorry, unimplemented: non-static data member initializers
/home/pi/Projects/trunk/3rdparty/indi-eqmod/scope-limits/scope-limits.h:52:31: error: ‘constexpr’ needed for in-class initialization of static data member ‘sline’ of non-integral type
CMakeFiles/indi_eqmod_telescope.dir/build.make:54: recipe for target 'CMakeFiles/indi_eqmod_telescope.dir/eqmod.o' failed
make[2]: *** [CMakeFiles/indi_eqmod_telescope.dir/eqmod.o] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/indi_eqmod_telescope.dir/all' failed
make[1]: *** [CMakeFiles/indi_eqmod_telescope.dir/all] Error 2
Makefile:113: recipe for target 'all' failed
make: *** [all] Error 2
and that fixed part of it. I now get the following error:
pi@raspberrypi ~/Projects/build/indi-eqmod $ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/Projects/trunk/3rdparty/indi-eqmod
-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is GNU 4.7.2
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
-- checking for module 'libindi'
-- found libindi, version 0.9.8
-- Found INDI: /usr/include/libindi (found version "0.9.8")
-- Found NOVA: /usr/lib/arm-linux-gnueabihf/libnova.so
-- Found ZLIB: /usr/lib/arm-linux-gnueabihf/libz.so (found version "1.2.7")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/Projects/build/indi-eqmod
pi@raspberrypi ~/Projects/build/indi-eqmod $ sudo make install
Scanning dependencies of target indi_eqmod_telescope
[ 8%] Building CXX object CMakeFiles/indi_eqmod_telescope.dir/eqmod.o
[ 16%] Building CXX object CMakeFiles/indi_eqmod_telescope.dir/eqmoderror.o
[ 25%] Building CXX object CMakeFiles/indi_eqmod_telescope.dir/skywatcher.o
[ 33%] Building CXX object CMakeFiles/indi_eqmod_telescope.dir/simulator/simulator.o
[ 41%] Building CXX object CMakeFiles/indi_eqmod_telescope.dir/simulator/skywatcher-simulator.o
[ 50%] Building CXX object CMakeFiles/indi_eqmod_telescope.dir/align/align.o
[ 58%] Building CXX object CMakeFiles/indi_eqmod_telescope.dir/align/pointset.o
[ 66%] Building C object CMakeFiles/indi_eqmod_telescope.dir/align/htm.o
[ 75%] Building CXX object CMakeFiles/indi_eqmod_telescope.dir/align/triangulate.o
[ 83%] Building CXX object CMakeFiles/indi_eqmod_telescope.dir/align/triangulate_chull.o
[ 91%] Building C object CMakeFiles/indi_eqmod_telescope.dir/align/chull/chull.o
[100%] Building CXX object CMakeFiles/indi_eqmod_telescope.dir/scope-limits/scope-limits.o
make[2]: *** No rule to make target '/usr/lib/arm-linux-gnueabihf/libindi.so', needed by 'indi_eqmod_telescope'. Stop.
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/indi_eqmod_telescope.dir/all' failed
make[1]: *** [CMakeFiles/indi_eqmod_telescope.dir/all] Error 2
Makefile:113: recipe for target 'all' failed
make: *** [all] Error 2
I wonder why it says (found version "0.9.8"), when the lib and include files are actually 0.9.9?
Got a little further and stopping with this error:
(...)
Linking CXX executable indi_eqmod_telescope
/usr/bin/ld: CMakeFiles/indi_eqmod_telescope.dir/eqmod.o: undefined reference to symbol 'clock_gettime@@GLIBC_2.4'
//lib/arm-linux-gnueabihf/librt.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
(...)