Comments (5)
yes it is:
Line 48 in e3ea396
from mate-calc.
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.
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.
@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.
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)
- Eulers identity gives no (blank) result HOT 1
- App consuming 100% of CPU with common usage HOT 2
- Prime factorization is not displayed in history view
- wrong result for (535^125x125^854) mod 1283
- [atan] arctan does not get calculated correctly HOT 4
- incorrect parenthesis handling HOT 1
- Calculation order error HOT 1
- Convergence issue with the ln function HOT 1
- Window all cut off on Librem 5/small screen HOT 3
- 1.25.1: test suite is failing with core dump HOT 6
- [Question] [History listbox] How can I change the foreground color from 'black to 'white'?? HOT 1
- mate-calc: Financial mode incorrectly places currency for Russian Rouble HOT 2
- mate-calc: issues with Russian localization - not translated items HOT 1
- Paste figures with spaces should either cut or ignore spaces
- Complicated expressions with logarithm return incorrect results HOT 2
- provide option for pressure conversion HOT 2
- Expressions like e²3 crashes mate-calc HOT 4
- [Feature request] A Quit button HOT 2
- Error with log() HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mate-calc.