Skip to content

Error while trying to build the project #1

@pmateusz

Description

@pmateusz

When I run cmake to configure the build the process fails, because it cannot find the CSPICE_LIBRARY.

It seems to me that it would be easier either to create a cmake that does not require the library by default or downloads it if needed. Especially, because SPICE is also a name of a different library: https://packages.ubuntu.com/search?keywords=spice-client-gtk

pmateusz@debian:~/dev/ace/smart-astro/build$ cmake ..
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- 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
-- Detecting C compile features
-- Detecting C compile features - 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
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The Fortran compiler identification is GNU 6.3.0
-- Check for working Fortran compiler: /usr/bin/gfortran
-- Check for working Fortran compiler: /usr/bin/gfortran  -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /usr/bin/gfortran supports Fortran 90
-- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
-- Found SMART_MATH: /usr/local/lib/libsmart-math.so (found version "0.1.0") 
-- Could NOT find CSPICE (missing: CSPICE_INCLUDE_DIR CSPICE_LIBRARY) 
-- Found OpenMP_C: -fopenmp (found version "4.5") 
-- Found OpenMP_CXX: -fopenmp (found version "4.5") 
-- Found OpenMP: TRUE (found version "4.5")  
-- WARNING: building release version!
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CSPICE_LIBRARY
    linked by target "smart-astro" in directory /home/pmateusz/dev/ace/smart-astro
    linked by target "main" in directory /home/pmateusz/dev/ace/smart-astro
    linked by target "example_template" in directory /home/pmateusz/dev/ace/smart-astro/examples

-- Configuring incomplete, errors occurred!
See also "/home/pmateusz/dev/ace/smart-astro/build/CMakeFiles/CMakeOutput.log".
pmateusz@debian:~/dev/ace/smart-astro/build$ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions