M HYPE SPLASH
// news

CMAKE Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)

By Emma Valentine

I have been building freerpd client for Eclipse in Ubuntu 14.04 but an error is popping up :

Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)

when I use CMake 2.8. How can I get rid of it?

3

3 Answers

Try:

sudo apt-get install pkg-config
4

I ran into this nuts problem while compiling opencv. The problem is that CMake is not finding the pkg-config executable.

Fix like this:

1)In ubuntu terminal,

which pkg-config

You will get "usr/bin/pkg-config" if it's installed

2) Add

set(PKG_CONFIG_EXECUTABLE "/usr/bin/pkg-config")

to your Cmake file, or in your build directory, run "cmake-gui" to add it using the GUI. Now, Cmake will find the pkg-config.

SOLUTION that worked for me:

sudo apt-get install --reinstall pkg-config cmake-data
1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy