#214: ./configure fails on libmad
------------------------+---------------------------------------------------
Reporter: derk | Owner: toots
Type: Bugs | Status: assigned
Priority: 5 | Milestone: 0.9.0
Component: ocaml-mad | Version:
Resolution: | Keywords: libmad, ocaml-mad
Mac: 1 | Linux: 1
Netbsd: 1 | Other: 1
Freebsd: 1 |
------------------------+---------------------------------------------------
Changes (by toots):
* status: new => assigned
* component: Liquidsoap => ocaml-mad
* mac: 0 => 1
* other: 0 => 1
* freebsd: 0 => 1
* milestone: => 0.9.0
* owner: admin => toots
* netbsd: 0 => 1
Comment:
Hi !
The libmad is detected using {{{pkg-config}}}, which is correctly detected
here. Most likely, your installed library does not include a {{{mad.pc}}}
file.
You can try this command to check this:
{{{
pkg-config --exists mad
}}}
As a matter of fact, I know realize that this file is added by the debian
package maintainer and is not present is the original sources.
Hence, we should find an alternative way to find them.
Until then, you can probably apply the following:
{{{
Index: configure.ac
===================================================================
--- configure.ac (révision 5948)
+++ configure.ac (copie de travail)
@@ -110,19 +110,11 @@
AC_PROG_CC()
-# Use pkg-config
-PKG_PROG_PKG_CONFIG()
-
-# PKG_CHECK_MODULES loses when you need --libs-only-[lL]
-#PKG_CHECK_MODULES([MAD], [mad])
-if ! $PKG_CONFIG --exists mad; then
- AC_MSG_ERROR([libmad not found])
-fi
-MAD_CFLAGS=`$PKG_CONFIG --cflags mad`
+MAD_CFLAGS="-I/usr/include"
AC_SUBST([MAD_CFLAGS])
-MAD_LIBS=`$PKG_CONFIG --libs-only-l mad`
+MAD_LIBS="-lmad"
AC_SUBST([MAD_LIBS])
-MAD_LDFLAGS=`$PKG_CONFIG --libs-only-L mad`
+MAD_LDFLAGS="-L/usr/lib"
AC_SUBST([MAD_LDFLAGS])
# other progs
}}}
(it is a pure workaround, it simply hardcode the values. Given the
information you gave, it should be ok.
--
Ticket URL: <http://savonet.rastageeks.org/ticket/214#comment:1>
Savonet <http://savonet.rastageeks.org/>
Let's program our stream !
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Savonet-trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-trac