c++ - Installed GTK+ with homebrew, but pkg_check_modules doesn't recognize it -


I'm trying to compile an open source repo, for which gtk + the CMakeLists.txt < / code> is required to file:

  pkg_check_modules (GTK requires GTK + -2.0 & gt; = 2.12)  

I GTK + with homebrew - 2.0 Installed:

  ~ brew install gtk Warning: gtk + -2.24.23 is already installed  

and to ensure pkg- Config recognizes this, I've tried:

  ~ pkg-config --modversion gtk +2.0 2.24.23  

which Poo In bone right, but when I configure the project with ccmake. . , I found the error:

  (Message CMake error /usr/local/Cellar/cmake/2.8.12.2/share/cmake/Modules/FindPkgConfig.cmake:279): did not get a required package call stack (most recent call first): /usr/local/Cellar/cmake/2.8.12.2/share/cmake/Modules/FindPkgConfig.cmake:333 (_pkg_check_modules_internal) CMakeLists.txt: 194 (in Pkg_check_modules)  

How can I fix this?

have tried

Export PKG_CONFIG_PATH = / opt / X11 / lib / pkgconfig: $ PKG_CONFIG_PATH

or

export PKG_CONFIG_PATH = "/ usr / local / lib / pkgconfig"

to


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -