×

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

Bi-monthly release with minor bug fixes and improvements

libnova not found

  • Posts: 2
  • Thank you received: 0

libnova not found was created by J.Zhang

I have used the apt-get install libnova-dev to install the libnova, but when i compile the indi library, the cmake command show the error that it can't find the libnova-dev, how to solve this problem?
root@raspberrypi:/usr/local/src/indi/libindi# ls
AUTHORS         COPYING.BSD   examples          INSTALL
base64.c        COPYING.GPL   fq.c              libindi.pc.cmake
base64.h        COPYING.LGPL  fq.h              libs
ChangeLog       COPYRIGHT     indiapi.h         LICENSE
CMakeCache.txt  Doxyfile      indidevapi.h      NEWS
CMakeFiles      drivers       indidriver.c      README
CMakeLists.txt  drivers.xml   indidriver.h      README.drivers
cmake_modules   eventloop.c   indidrivermain.c  TODO
config.h.cmake  eventloop.h   indiserver.c      tools
root@raspberrypi:/usr/local/src/indi/libindi# cmake .
-- Found CFITSIO: /usr/lib/arm-linux-gnueabihf/libcfitsio.so
CMake Error at cmake_modules/FindNova.cmake:51 (message):
  libnova not found.  Please install libnova0-devel.  http://indi.sf.net
Call Stack (most recent call first):
  CMakeLists.txt:39 (FIND_PACKAGE)
 
 
-- Configuring incomplete, errors occurred!
 
root@raspberrypi:/usr/lib/arm-linux-gnueabihf# ls -al
total 145296
lrwxrwxrwx  1 root root       21 Apr 24  2012 libnova-0.14.so.0 -> libnova-0.14.so.0.0.0
-rw-r--r--  1 root root  3663852 Apr 24  2012 libnova-0.14.so.0.0.0
-rw-r--r--  1 root root  3722772 Apr 24  2012 libnova.a
lrwxrwxrwx  1 root root       21 Apr 24  2012 libnova.so -> libnova-0.14.so.0.0.0
 
10 years 5 months ago #284

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

  • Posts: 712
  • Thank you received: 174

Replied by Peter Polakovic on topic libnova not found

Hi, what OS do you have? Try

uname -a

What source do you have? r960 should be the last commit for 0.9.6. Try

cd /usr/local/src/indi
svn update -r 960

Try to remove cmake cache, execute it one more time and copy & paste complete result here:

cd /usr/local/src/indi/libindi
rm -rf CMakeFiles CMakeCache.txt
cmake -DCMAKE_INSTALL_PREFIX=/usr .

I had exactly the same problem yesterday on OSX Mavericks and the problem was, that /usr/local/include (/usr/include in case of Raspbian ) wasn't on compiler search path. There is a feature (or a bug in my opinion) in cmake_modules/FindNova.cmake that it is referencing libnova as

#include <libnova.h>

instead of

#include <libnova/libnova.h>

BTW, It is not a good idea to do experiments like this under root account :-)
The following user(s) said Thank You: J.Zhang
10 years 5 months ago #285

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

  • Posts: 2
  • Thank you received: 0

Replied by J.Zhang on topic libnova not found

It works. Thanks for your suggestion. My OS is wheezy-raspbian installed on Raspberry Pi. Yesterday I also have found there is some problem in the FindNova.cmake. But I'm a freshman in Linux, so I had no idea how to modify the document. Thanks again. And I want to know is the libnova/libnova.h a relative path?
10 years 5 months ago #290

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

  • Posts: 712
  • Thank you received: 174

Replied by Peter Polakovic on topic libnova not found

Hi, yes, libnova/libnova.h is relative to /usr/include in your case and this should be in compiler search path to make FIndNova.cmake detect the library correctly.
10 years 5 months ago #291

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

Time to create page: 0.490 seconds