CMAKE Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
Solution 1
Try:
sudo apt-get install pkg-config
Solution 2
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 3
https://github.com/vitalif/grive2/issues/74
SOLUTION that worked for me:
sudo apt-get install --reinstall pkg-config cmake-data
Related videos on Youtube
Ananthu r nath
I consider my self a work in progress,always learning what I can ,I am just starting my journey as a programmer,I am a enthusiast who got coding and security analysis for a hobby,programming is not just a work for me because "my life runs on a code"
Updated on September 18, 2022Comments
-
Ananthu r nath 3 months
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?
-
Admin almost 7 yearseclipse is out of question as it is not involved in building, cmake-data is already there ,is there any possiblity that i can correct it with path environment ?
-
Admin almost 7 yearsDoes
sudo apt-get install --reinstall pkg-config cmake-data
help, in case any of their files were corrupted?
-
-
Ananthu r nath almost 7 yearsi tried that but no use
-
Dimitri Podborski almost 7 yearsDid you also try
sudo apt-get install cmake-data
like dobey suggested? -
Ananthu r nath almost 7 yearsyes , [email protected]:~/FreeRDP-masteropy$ sudo apt-get install cmake-data [sudo] password for ananthu: Reading package lists... Done Building dependency tree Reading state information... Done cmake-data is already the newest version. cmake-data set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 594 not upgraded.
-
Ananthu r nath almost 7 yearsbut it is not solved then also
-
alberto favero almost 3 yearsLinux Ubuntu 18.4.