vmime
vmime copied to clipboard
Building on OS X Yosemite
Hello guys, I'm trying to build library on OS X Yosemite, I've downloaded a GitHub copy and when I run cmake (3.2.2), the output is following:
-- Build type: Debug
-- Sendmail binary found at /usr/sbin/sendmail
-- Checking support for shared_ptr<>: built-in (C++11)
-- checking for module 'gtk+-3.0'
-- package 'gtk+-3.0' not found
CMake Error at /usr/local/Cellar/cmake/3.2.2/share/cmake/Modules/FindPkgConfig.cmake:340 (message):
A required package was not found
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.2.2/share/cmake/Modules/FindPkgConfig.cmake:502 (_pkg_check_modules_internal)
examples/viewer/CMakeLists.txt:5 (PKG_CHECK_MODULES)
-- Configuring incomplete, errors occurred!
I don't see any reason to have GTK+ 3 referenced. Any clues how to fix this?
@PeterBocan have a try this: http://stackoverflow.com/questions/20098862/how-to-install-gtk-on-osx-for-use-with-g-gcc-compiler
brew install gtk+-3.0 is works on my macos env. Mac OS EI Capitan.
Add -DVMIME_BUILD_SAMPLES=OFF
to cmake invocation command line. Gtk+ is only needed for the samples