×

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

Bi-monthly release with minor bug fixes and improvements

Can't compile indi-eqmod on raspbarry

  • Posts: 47
  • Thank you received: 0
Hi there!

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

Any sugestions?

Best Steen
9 years 6 months ago #1993

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

  • Posts: 47
  • Thank you received: 0
I read this post:

You need to use g++-4.7, not the default g++-4.6. I just installed g++-4.7 und gcc-4.7 and set them as the default compilers

apt-get install gcc-4.7 g++-4.7
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 40 --slave /usr/bin/g++ g++ /usr/bin/g++-4.7
update-alternatives --config gcc

In last step choose gcc-4.7.

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?

Best
Steen
9 years 6 months ago #1994

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

  • Posts: 47
  • Thank you received: 0
The error was

/usr/lib/arm-linux-gnueabihf/libindi.so (libindi.so.0->

was not copied from /usr/lib ??

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
(...)

/steen
9 years 6 months ago #1995

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

Yeah I just saw the error yesterday, will try to release 0.9.9 Raspian packages soon.
9 years 6 months ago #1998

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

  • Posts: 47
  • Thank you received: 0
Thanks for the quick reply!

/steen
9 years 6 months ago #2003

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

INDI Library v0.9.9 along with all 3rd party drivers for Raspberry PI is available for Download now!
The following user(s) said Thank You: Steen
Last edit: 9 years 6 months ago by Jasem Mutlaq.
9 years 6 months ago #2013

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

Time to create page: 0.536 seconds