Skip to content

cmake can't find GiNaC despite it being installed #14

@salahmak

Description

@salahmak

Hi, I'm trying to compile and install Jemris, but when running cmake .., I get this error:

CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find GiNaC (missing: GINAC_LIBRARIES GINAC_INCLUDE_DIRS)
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  cmake/FindGiNaC.cmake:155 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:84 (find_package)

this is the output of ls /usr/include/ginac:

add.h         color.h       expair.h       flags.h     inifcns.h             ncmul.h          power.h       structure.h
archive.h     compiler.h    expairseq.h    function.h  integral.h            normal.h         print.h       symbol.h
assertion.h   constant.h    exprseq.h      ginac.h     integration_kernel.h  numeric.h        pseries.h     symmetry.h
basic.h       container.h   factor.h       hash_map.h  lst.h                 operators.h      ptr.h         tensor.h
class_info.h  excompiler.h  fail.h         idx.h       matrix.h              parse_context.h  registrar.h   version.h
clifford.h    ex.h          fderivative.h  indexed.h   mul.h                 parser.h         relational.h  wildcard.h

System info:
os: Archlinux
ginac version (from pacman): 1.8.2
jemris version: git

What I have tried to fix but failed:

  • I have tried to remove the find_package(GiNaC REQUIRED) line and manually write: include_directories ("/usr/include/ginac/"), doing this allowed the cmake .. command run with no problem, but when running make, it compiles everything with no problem but it throws many errors while linking the binaries as shown in this picture:
    image

  • I have also tried manually compiling GiNac and doing the steps above, but got the same results.

Would be grateful if anyone helps, thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions