Skip to content

Instantly share code, notes, and snippets.

@jl
Created February 20, 2016 05:40
Show Gist options
  • Select an option

  • Save jl/9e5ebbc9ccf44f3c804e to your computer and use it in GitHub Desktop.

Select an option

Save jl/9e5ebbc9ccf44f3c804e to your computer and use it in GitHub Desktop.
Installing pkg-config from source on OS X
@abaqueiro
Copy link

Thank you very much to everyone for the contributions, you helped me to finally get pkg-config to compile

What I learn from this is that we can't go through life blindly, we have to learn to use the tools, for me this worked to fix the errors compiling in Apple Silicon M2 (2025):

I install my self compiled stuff in /opt/pokemon

This commands make the tric:

tar xvf pkg-config-0.29.2.tar.gz
mkdir pkg-config-build
cd pkg-config-build
export CFLAGS="-Wno-int-conversion"
export CXXFLAGS="-Wno-int-conversion"
../pkg-config-0.29.2/configure --prefix=/opt/pokemon --exec-prefix=/opt/pokemon --with-internal-glib
make
make install

  • /opt/pokemon should have rwx file permissions for the user running the commands

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment