Menu

#67 Error building lib_indi_3rdparty in Debian Jessie

1.2.X
open
nobody
None
1
2016-02-13
2016-02-13
No

Error building lib_indi_3rdparty from svn (r2683) in Debian Jessie

$ cmake -DCMAKE_INSTALL_PREFIX=/usr .
...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/git/libindi_3rdparty_1.2.0
$ make
...
Linking CXX executable indi_eqmod_telescope
CMakeFiles/indi_eqmod_telescope.dir/eqmod.o: In function EQMod::EQMod()': eqmod.cpp:(.text+0x417): undefined reference toINDI::Telescope::SetTelescopeCapability(unsigned int, unsigned char)'
CMakeFiles/indi_eqmod_telescope.dir/eqmod.o: In function EQMod::getLst(double, double)': eqmod.cpp:(.text+0xb74): undefined reference torange24'
CMakeFiles/indi_eqmod_telescope.dir/eqmod.o: In function EQMod::initProperties()': eqmod.cpp:(.text+0xd3d): undefined reference toINDI::Telescope::SetParkDataType(INDI::Telescope::TelescopeParkData)'
eqmod.cpp:(.text+0xd68): undefined reference to INDI::DefaultDevice::setDriverInterface(unsigned short)' CMakeFiles/indi_eqmod_telescope.dir/eqmod.o: In functionEQMod::updateProperties()':
eqmod.cpp:(.text+0x1877): undefined reference to INDI::Telescope::GetAxis1Park()' eqmod.cpp:(.text+0x18c3): undefined reference toINDI::Telescope::GetAxis2Park()'
CMakeFiles/indi_eqmod_telescope.dir/eqmod.o: In function EQMod::ReadScopeStatus()': eqmod.cpp:(.text+0x2dab): undefined reference torange24'
eqmod.cpp:(.text+0x2ec5): undefined reference to range360' eqmod.cpp:(.text+0x3cef): undefined reference toINDI::Telescope::SetParked(bool)'
CMakeFiles/indi_eqmod_telescope.dir/eqmod.o: In function EQMod::EncodersToRADec(unsigned long, unsigned long, double, double*, double*, double*)': eqmod.cpp:(.text+0x405b): undefined reference torangeHA'
eqmod.cpp:(.text+0x4076): undefined reference to range24' eqmod.cpp:(.text+0x4091): undefined reference torangeDec'
CMakeFiles/indi_eqmod_telescope.dir/eqmod.o: In function EQMod::EncoderToHours(unsigned long, unsigned long, unsigned long, EQMod::Hemisphere)': eqmod.cpp:(.text+0x4219): undefined reference torange24'
eqmod.cpp:(.text+0x4242): undefined reference to range24' CMakeFiles/indi_eqmod_telescope.dir/eqmod.o: In functionEQMod::EncoderToDegrees(unsigned long, unsigned long, unsigned long, EQMod::Hemisphere)':
eqmod.cpp:(.text+0x43aa): undefined reference to range360' eqmod.cpp:(.text+0x43c7): undefined reference torange360'
CMakeFiles/indi_eqmod_telescope.dir/eqmod.o: In function EQMod::EncoderFromHour(double, unsigned long, unsigned long, EQMod::Hemisphere)': eqmod.cpp:(.text+0x441b): undefined reference torange24'
CMakeFiles/indi_eqmod_telescope.dir/eqmod.o: In function EQMod::EncoderFromRA(double, double, double, unsigned long, unsigned long, EQMod::Hemisphere)': eqmod.cpp:(.text+0x4716): undefined reference torange24'
CMakeFiles/indi_eqmod_telescope.dir/eqmod.o: In function EQMod::SideOfPier(double)': eqmod.cpp:(.text+0x4b53): undefined reference torangeHA'
CMakeFiles/indi_eqmod_telescope.dir/eqmod.o: In function EQMod::EncoderTarget(EQMod::GotoParams*)': eqmod.cpp:(.text+0x4c27): undefined reference torangeHA'
eqmod.cpp:(.text+0x4ca6): undefined reference to range24' eqmod.cpp:(.text+0x4cf1): undefined reference torange24'
eqmod.cpp:(.text+0x4f69): undefined reference to range24' CMakeFiles/indi_eqmod_telescope.dir/eqmod.o: In functionEQMod::Goto(double, double)':
eqmod.cpp:(.text+0x57af): undefined reference to range360' CMakeFiles/indi_eqmod_telescope.dir/eqmod.o: In functionEQMod::Park()':
eqmod.cpp:(.text+0x617a): undefined reference to INDI::Telescope::isParked()' eqmod.cpp:(.text+0x62d6): undefined reference toINDI::Telescope::GetAxis1Park()'
eqmod.cpp:(.text+0x6322): undefined reference to INDI::Telescope::GetAxis2Park()' CMakeFiles/indi_eqmod_telescope.dir/eqmod.o: In functionEQMod::UnPark()':
eqmod.cpp:(.text+0x66b5): undefined reference to INDI::Telescope::SetParked(bool)' CMakeFiles/indi_eqmod_telescope.dir/eqmod.o: In functionEQMod::Sync(double, double)':
eqmod.cpp:(.text+0x687f): undefined reference to rangeHA' eqmod.cpp:(.text+0x68cd): undefined reference torange24'
CMakeFiles/indi_eqmod_telescope.dir/eqmod.o: In function EQMod::SetCurrentPark()': eqmod.cpp:(.text+0xdc8d): undefined reference toINDI::Telescope::SetAxis1Park(double)'
eqmod.cpp:(.text+0xdccd): undefined reference to INDI::Telescope::SetAxis2Park(double)' CMakeFiles/indi_eqmod_telescope.dir/eqmod.o: In functionEQMod::SetDefaultPark()':
eqmod.cpp:(.text+0xddb5): undefined reference to INDI::Telescope::GetAxis1ParkDefault()' eqmod.cpp:(.text+0xddfb): undefined reference toINDI::Telescope::GetAxis2ParkDefault()'
eqmod.cpp:(.text+0xde75): undefined reference to INDI::Telescope::SetAxis1Park(double)' eqmod.cpp:(.text+0xdeb5): undefined reference toINDI::Telescope::SetAxis2Park(double)'
CMakeFiles/indi_eqmod_telescope.dir/eqmod.o:(.rodata._ZTV5EQMod[_ZTV5EQMod]+0x20): undefined reference to INDI::DefaultDevice::getDriverInterface()' CMakeFiles/indi_eqmod_telescope.dir/eqmod.o:(.rodata._ZTV5EQMod[_ZTV5EQMod]+0x78): undefined reference toINDI::DefaultDevice::loadConfig(bool, char const*)'
CMakeFiles/indi_eqmod_telescope.dir/eqmod.o:(.rodata._ZTV5EQMod[_ZTV5EQMod]+0x80): undefined reference to INDI::DefaultDevice::saveConfig(bool)' CMakeFiles/indi_eqmod_telescope.dir/eqmod.o:(.rodata._ZTV5EQMod[_ZTV5EQMod]+0x138): undefined reference toINDI::Telescope::SetSlewRate(int)'
CMakeFiles/indi_eqmod_telescope.dir/eqmod.o:(.rodata._ZTV5EQMod[_ZTV5EQMod]+0x190): undefined reference to INDI::GuiderInterface::GuideComplete(INDI_EQ_AXIS)' CMakeFiles/indi_eqmod_telescope.dir/skywatcher.o: In functionSkywatcher::Init()':
skywatcher.cpp:(.text+0x173e): undefined reference to INDI::Telescope::InitPark()' skywatcher.cpp:(.text+0x1796): undefined reference toINDI::Telescope::SetAxis1Park(double)'
skywatcher.cpp:(.text+0x17e3): undefined reference to INDI::Telescope::SetAxis1ParkDefault(double)' skywatcher.cpp:(.text+0x1830): undefined reference toINDI::Telescope::SetAxis2Park(double)'
skywatcher.cpp:(.text+0x187d): undefined reference to INDI::Telescope::SetAxis2ParkDefault(double)' skywatcher.cpp:(.text+0x18cf): undefined reference toINDI::Telescope::SetAxis1ParkDefault(double)'
skywatcher.cpp:(.text+0x191c): undefined reference to INDI::Telescope::SetAxis2ParkDefault(double)' skywatcher.cpp:(.text+0x1932): undefined reference toINDI::Telescope::isParked()'
skywatcher.cpp:(.text+0x19d5): undefined reference to INDI::Telescope::GetAxis2Park()' skywatcher.cpp:(.text+0x19f0): undefined reference toINDI::Telescope::GetAxis1Park()'
skywatcher.cpp:(.text+0x1a9a): undefined reference to INDI::Telescope::GetAxis1Park()' skywatcher.cpp:(.text+0x1b31): undefined reference toINDI::Telescope::GetAxis2Park()'
collect2: error: ld returned 1 exit status
indi-eqmod/CMakeFiles/indi_eqmod_telescope.dir/build.make:363: recipe for target 'indi-eqmod/indi_eqmod_telescope' failed
make[2]: *** [indi-eqmod/indi_eqmod_telescope] Error 1
CMakeFiles/Makefile2:75: recipe for target 'indi-eqmod/CMakeFiles/indi_eqmod_telescope.dir/all' failed
make[1]: *** [indi-eqmod/CMakeFiles/indi_eqmod_telescope.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2

Discussion

  • Jasem Mutlaq

    Jasem Mutlaq - 2016-02-13

    Did you build and install libindi v1.2.0 first?

     
  • Joaquin Bogado

    Joaquin Bogado - 2016-02-13

    Yes I did.
    $ indiserver -v
    2016-02-13T20:31:04: startup: indiserver -v
    Usage: indiserver [options] driver [driver ...]
    Purpose: server for local and remote INDI drivers
    INDI Library: 1.2.0
    Code $Rev: 2039 $. Protocol 1.7.
    Options:
    -l d : log driver messages to <d>/YYYY-MM-DD.islog
    -m m : kill client if gets more than this many MB behind, default 64
    -p p : alternate IP port, default 7624
    -f path : Path to fifo for dynamic startup and shutdown of drivers.
    -v : show key events, no traffic
    -vv : -v + key message content
    -vvv : -vv + complete xml
    driver : executable or device@host[:port]</d>

     
  • Jasem Mutlaq

    Jasem Mutlaq - 2016-02-13

    Most likely cause if that the 3rd party is being built against an older version of libindi. If you installed libindi before via apt-get, the library files are installed here /usr/lib/x86_64-linux-gnu (for 64bit). Check if you have libindidriver.so. libindi.so. libindiAlignmentDriver.so.1..etc. If they're there, then delete them, and then delete the contents of the 3rd party build directory, then run cmake again.

     

Log in to post a comment.

Monday.com Logo