Pkg-config: PKG_PROG_PKG_CONFIG: command not found

I get the following error

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

when this code is executed in ( kivy-ios / tools-build-sdlmixer.sh )

 if [ ! -f libtremor/tremor/.libs/libvorbisidec.a ]; then try cd libtremor/tremor echo > asm_arm.h CC="$ARM_CC" AR="$ARM_AR" \ LDFLAGS="$ARM_LDFLAGS" CFLAGS="$ARM_CFLAGS" \ OGG_CFLAGS="-I../../libogg/include" \ OGG_LDFLAGS="-L../../libogg/src/.libs" \ PKG_CONFIG_LIBDIR="../../libogg" \ ACLOCAL_FLAGS="-I $DESTROOT/share/aclocal -I `aclocal --print-ac-dir`" ./autogen.sh \ --prefix=$DESTROOT \ --disable-shared \ --host=arm-apple-darwin \ --enable-static=yes \ --enable-shared=no try make try make install try cd ../.. fi 

My pkg-config application is in my PATH (/ usr / local / bin). I also tried exporting PKG_CONFIG_PATH on my command line to / usr / local / bin / pkg -config and / usr / local / lib / pkgconfig. I tried exporting LD_LIBRARY_PATH to different paths (not sure where it should point to tbh), and that doesn't help either.

I read something about several aclocal directories on my system, which may be problematic, but it is unclear how to solve this or identify its problem.

This linux build newbie (on OSX) appreciates any help.

+4
source share
1 answer

When this script calls autogen.sh , aclocal does not find pkg.m4 , the M4 macro that comes with pkg-config and provides the PKG_PROG_PKG_CONFIG macro. Where is pkg-config , and which aclocal directories aclocal look for?

+5
source

Source: https://habr.com/ru/post/1486036/


All Articles