Ask Your Question

Revision history [back]

The solution was quite simple actually:

export PKG_CONFIG_PATH=/opt/glib-2.32.2

cmake3 uses pkg-config in order to find out if dependencies have the required versions (e.g pkg-config --modversion glib-2.0 for glib)

By exporting that variable i am telling pkg-config to look into /opt/glib-2.32.2 for files ending with the .pc extension. This way pkg-config will find the glib-2.0.pc file where it can find the path to my own installation of glib.

The solution was quite simple actually:

export PKG_CONFIG_PATH=/opt/glib-2.32.2

cmake3 uses pkg-config in order to find out if dependencies have the required versions (e.g pkg-config --modversion glib-2.0 for glib)

By exporting that variable i am telling pkg-config to look into /opt/glib-2.32.2 for files ending with the .pc extension. This way pkg-config will find the glib-2.0.pc file where it can find the path to my own installation of glib.

This resource was quite helpfull: https://people.freedesktop.org/~dbn/pkg-config-guide.html

The solution was quite simple actually:

export PKG_CONFIG_PATH=/opt/glib-2.32.2

cmake3 uses pkg-config in order to find out if dependencies have the required versions (e.g pkg-config --modversion glib-2.0 for glib)

By exporting that variable i am telling pkg-config to look into /opt/glib-2.32.2 for files ending with the .pc extension. This way pkg-config will find the glib-2.0.pc file where it can find the path to my own installation of glib.

This resource was quite helpfull: helpful: https://people.freedesktop.org/~dbn/pkg-config-guide.html