vmime icon indicating copy to clipboard operation
vmime copied to clipboard

Building on OS X Yosemite

Open PeterBocan opened this issue 9 years ago • 3 comments

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 avatar Jun 26 '15 12:06 PeterBocan

@PeterBocan have a try this: http://stackoverflow.com/questions/20098862/how-to-install-gtk-on-osx-for-use-with-g-gcc-compiler

xiaods avatar Feb 05 '16 07:02 xiaods

brew install gtk+-3.0 is works on my macos env. Mac OS EI Capitan.

xiaods avatar Feb 05 '16 08:02 xiaods

Add -DVMIME_BUILD_SAMPLES=OFF to cmake invocation command line. Gtk+ is only needed for the samples

degaart avatar Nov 21 '16 06:11 degaart