×

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

Bi-monthly release with minor bug fixes and improvements

libindi-0.9.6 fails to compile

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

I am working under Gentoo Linux and i can't compile libindi-0.9.6 from sources.
I followed the INSTALL instructions in /usr/local/share :
1) # tar xzvf libindi.tar.gz
2) # mkdir libindi_build
3) # cd libindi_build
4) # cmake -DCMAKE_INSTALL_PREFIX=/usr . ../libindi-0.9.6
5) # make install

It stops at the 89% step with the error :
Linking CXX executable tutorial_dome
libindidriver.so.0.9.6: undefined reference to `uncompress'
collect2: ld a retourné 1 code d'état d'exécution
make[2]: *** [tutorial_dome] Erreur 1
make[1]: *** [CMakeFiles/tutorial_dome.dir/all] Erreur 2
make: *** [all] Erreur 2

Can you help me ?

Thanks in advance,

Cheers,

--
Jacques
10 years 10 months ago #249

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

  • Posts: 712
  • Thank you received: 174
Hi Jacques, it seems, that zlib is missing. What was the output from cmake? Peter
10 years 10 months ago #250

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

  • Posts: 13
  • Thank you received: 0
Hi polakovic,

zlib-1.2.7 is installed.
The output of cmake :
# cmake -DCMAKE_INSTALL_PREFIX=/usr . ../libindi-0.9.6/
-- Found CFITSIO: /usr/lib64/libcfitsio.so
-- Found libnova: /usr/lib64/libnova.so
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/share/libindi_build

--
Jacques
10 years 10 months ago #251

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

  • Posts: 712
  • Thank you received: 174
Do you have also zlib-devel? Peter
10 years 10 months ago #252

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

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

In Gentoo i don't have any zlib-devel, but only sys-libs/zlib with two compilation flags as : minizip and static-libs.
sys-libs/zlib
Available versions: 1.2.3-r1 1.2.5-r2 ~1.2.5.1 ~1.2.5.1-r1 1.2.5.1-r2 ~1.2.6 1.2.7 ~1.2.8 {{minizip static-libs}}
Installed versions: 1.2.7(14:24:49 11/06/2013)(minizip static-libs)
Homepage: www.zlib.net/
Description: Standard (de)compression library

Here is the complete output of cmake :

# cmake -DCMAKE_INSTALL_PREFIX=/usr . ../libindi-0.9.6/
-- The C compiler identification is GNU 4.6.3
-- The CXX compiler identification is GNU 4.6.3
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- 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 ZLIB: /usr/lib64/libz.so (found version "1.2.7")
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
-- Found LIBUSB: /usr/lib64/libusb.so
-- Found CFITSIO 3.14: /usr/lib64/libcfitsio.so
-- Performing Test NOVA_FUNCTION_COMPILE
-- Performing Test NOVA_FUNCTION_COMPILE - Success
-- Found NOVA: /usr/lib64/libnova.so
-- Looking for include file linux/videodev2.h
-- Looking for include file linux/videodev2.h - found
-- Looking for include file termios.h
-- Looking for include file termios.h - found
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/share/libindi_build

Cheers,

--
Jacques
10 years 10 months ago #253

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

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

I saw there was a libindi Gentoo package named : indilib
sci-libs/indilib
Available versions: 0.9.6 {{nova v4l}}
Installed versions: 0.9.6(15:22:36 11/06/2013)(nova v4l)
Homepage: www.indilib.org/
Description: INDI Astronomical Control Protocol library

So, i installed all the stuff without any problem !

Thank you again and sorry for the noise :blush:

Cheers,

--
Jacques
10 years 10 months ago #254

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

Time to create page: 0.531 seconds