Giter VIP home page Giter VIP logo

Comments (5)

mbkma avatar mbkma commented on August 21, 2024

yes it is:

AC_CHECK_LIB(mpc, log)

from mate-calc.

rezso avatar rezso commented on August 21, 2024

Not enough. Without installed mpc headers (mpc devel package), the build fails:

make all-am make[3]: Entering directory '/var/uhubuild/work/compile/src' CC mate-calc.o CC currency.o CC currency-manager.o CC math-buttons.o In file included from currency.h:15, from currency.c:14: mp.h:38:10: fatal error: mpc.h: Nincs ilyen fájl vagy könyvtár 38 | #include <mpc.h> | ^~~~~~~ compilation terminated. make[3]: *** [Makefile:877: currency.o] Error 1 make[3]: *** Waiting for unfinished jobs.... In file included from currency.h:15, from currency-manager.h:14, from currency-manager.c:21: mp.h:38:10: fatal error: mpc.h: Nincs ilyen fájl vagy könyvtár 38 | #include <mpc.h> | ^~~~~~~ compilation terminated. make[3]: *** [Makefile:877: currency-manager.o] Error 1 In file included from math-equation.h:18, from math-buttons.h:16, from math-buttons.c:13: mp.h:38:10: fatal error: mpc.h: Nincs ilyen fájl vagy könyvtár 38 | #include <mpc.h> | ^~~~~~~ compilation terminated. make[3]: *** [Makefile:877: math-buttons.o] Error 1 In file included from math-equation.h:18, from math-window.h:16, from mate-calc.c:18: mp.h:38:10: fatal error: mpc.h: Nincs ilyen fájl vagy könyvtár 38 | #include <mpc.h> | ^~~~~~~ compilation terminated.

So I think, searching mpc is required in PKG_CHECK_MODULES (MATE_CALC, MATE_CALC_CMD).

from mate-calc.

mbkma avatar mbkma commented on August 21, 2024

Which distro do you use? Which version of mate-calc? Which is the exact package name and version of mpc you installed?

from mate-calc.

rbuj avatar rbuj commented on August 21, 2024

@rezso there is no pc file in the pkgconfig folder for the mpc library. Do you want to add a header check?

diff --git a/configure.ac b/configure.ac
index 47365ff..dac356a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -46,6 +46,7 @@ AC_SUBST(GLIB_MKENUMS)
 
 AC_CHECK_LIB(m, log)
 AC_CHECK_LIB(mpc, log)
+AC_CHECK_HEADER([mpc.h], [], [AC_MSG_ERROR(could not find required headers for MPC)], [])
 
 dnl ###########################################################################
 dnl Internationalization

from mate-calc.

rbuj avatar rbuj commented on August 21, 2024

The configure script execution can also be aborted if library checking failed:

diff --git a/configure.ac b/configure.ac
index 47365ff..313f226 100644
--- a/configure.ac
+++ b/configure.ac
@@ -45,7 +45,7 @@ GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
 AC_SUBST(GLIB_MKENUMS)
 
 AC_CHECK_LIB(m, log)
-AC_CHECK_LIB(mpc, log)
+AC_CHECK_LIB(mpc, log, [], [AC_MSG_ERROR(could not find required development libraries for MPC)], [])
 
 dnl ###########################################################################
 dnl Internationalization

Test:

$ ./autogen.sh --prefix=/usr
<cut>
checking for log in -lmpc... no
configure: error: could not find required development libraries for MPC

from mate-calc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.