Ir a contenido

PKG_PROG_PKG_CONFIG: command not found


Informática

Minutes ago I was trying to compile hal++ a wrapper for libhal developed by beep-media-player team.
While executing configure I’ve got this error:

./configure: line XXXXX: PKG_PROG_PKG_CONFIG: command not found

It was not expected because I did have autotools and pkg-config already installed. And as incredible as I had compiled without any error hal++ in other Debian testing/unstable machine (I was in a Debian testing).
So I have investigated a bit with half success. I’ve found a peace of autotools code which have been useful:

# Check for pkg-config manually first, as if its not installed the
# PKG_PROG_PKG_CONFIG macro won’t be defined.
#
AC_CHECK_PROG(have_pkg_config, pkg-config, yes, no)
#
if test x”$have_pkg_config” == xno; then
AC_MSG_ERROR(pkg-config is required to install this program)
fi
#
PKG_PROG_PKG_CONFIG

It’s only a couple of verifications, which are not introducing anything new, but it was incredibly worked.

Now, I’ll try libhal++ to see if I can do what I want in C++.

Etiquetas: , , , ,

Entérate al instante

Lo más leído

Del archivo...


Comentarios


Agregue un Comentario

Consejos

Escribe correctamente, esto es la Web, no un SMS. (No te vamos a cobrar por mas de 150 caracteres) ;-).
No insultes a los demás, respeta a las personas que hay al otro lado de la pantalla y que van a leer tu opinión.


Advertencia

Los comentarios de los usuarios no se corresponden necesariamente con la opinión de El Demonio Negro.
No está permitido verter comentarios contrarios a las leyes españolas o injuriantes. Por ello, nos reservamos el derecho a eliminar los comentarios que consideremos incumplen dichos preceptos.