MacOS 13.1
xcode-select version 2396.
gtk installed with brew:
gtk+
gtk+3
gtk-mac-integration
gtk4
gtkmm
gtkmm3
gtkmm4
$ cmake ..
-- The C compiler identification is AppleClang 14.0.0.14000029
-- The CXX compiler identification is AppleClang 14.0.0.14000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2")
-- Found MbedTLS: /usr/local/bin/../lib/libmbedtls.dylib;/usr/local/bin/../lib/libmbedcrypto.dylib;/usr/local/bin/../lib/libmbedx509.dylib
-- Checking for module 'gtkmm-3.0'
-- No package 'gtkmm-3.0' found
nfd Platform: PLATFORM_MACOS
nfd Compiler: COMPILER_GNU
-- Performing Test NFD_USE_ALLOWEDCONTENTTYPES
-- Performing Test NFD_USE_ALLOWEDCONTENTTYPES - Success
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/Roberto/Desktop/git/WiiUDownloader/build
Roberto@BobBook:build$ cmake --build .
[ 6%] Building C object nativefiledialog-extended/src/CMakeFiles/nfd.dir/nfd_cocoa.m.o
[ 12%] Linking C static library libnfd.a
[ 12%] Built target nfd
[ 18%] Building CXX object CMakeFiles/WiiUDownloader.dir/src/GameList.cpp.o
In file included from /Users/Roberto/Desktop/git/WiiUDownloader/src/GameList.cpp:1:
/Users/Roberto/Desktop/git/WiiUDownloader/include/GameList.h:3:10: fatal error: 'gtkmm.h' file not found
#include <gtkmm.h>
^~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/WiiUDownloader.dir/src/GameList.cpp.o] Error 1
make[1]: *** [CMakeFiles/WiiUDownloader.dir/all] Error 2
make: *** [all] Error 2
workaround:
paste the output of pkg-config gtkmm-3.0 --cflags in export CXXFLAGS="(here)" before running cmake .., in my case there is:
MacOS 13.1 xcode-select version 2396. gtk installed with brew:
workaround: paste the output of
pkg-config gtkmm-3.0 --cflags
inexport CXXFLAGS="(here)"
before runningcmake ..
, in my case there is:PS: please write somewhere which version of gtk you are using :)