Open ManuelSchneid3r opened 1 year ago
libqalculate.pc is generated file from a template and is not used during libqalculate compilation. It should not include any info about libgmp-dev.
The ./configure script is used for build deps collection:
these strings in configure.ac
AC_CHECK_HEADER(gmp.h, [], [AC_MSG_ERROR([gmp.h can't be found, or is unusable.])])
AC_CHECK_LIB(gmp, __gmpz_init, [LIBS="-lgmp $LIBS"], [AC_MSG_ERROR([libgmp not found or uses a different ABI.])])
give output like
checking for gmp.h... yes
checking for __gmpz_init in -lgmp... yes
Check your config logs.
gmp is in the public headers: https://github.com/Qalculate/libqalculate/blob/master/libqalculate/Number.h#L17
Importing like this in cmake
i get an error while compiling
I am not familiar with packageConfig but shouldnt the gmp include directories propagate since the gmp headers are used in the public headers of libqalculate?
i saw this
maybe thats a starting point