cmake errors

2,131 views
Skip to first unread message

klom...@googlemail.com

unread,
Jul 6, 2014, 4:05:32 PM7/6/14
to vm...@googlegroups.com
I'm trying to compile vmime on OS X 10.9.2 but it doesn't work... i'm sorry if its an obvious problem but i don't have much experience with C++ and libraries...

This is what it says:

X:vmime C$ /Applications/CMake.app/Contents/bin/cmake -G "Unix Makefiles" -DVMIME_TLS_SUPPORT_LIB_IS_OPENSSL=ON -DVMIME_TLS_SUPPORT_LIB_IS_GNUTLS=OFF
-- The C compiler identification is AppleClang 5.1.0.5030040
-- The CXX compiler identification is AppleClang 5.1.0.5030040
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Build type: Debug
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Looking for C++ include cstdint
-- Looking for C++ include cstdint - found
-- Check size of char
-- Check size of char - done
-- Check size of short
-- Check size of short - done
-- Check size of int
-- Check size of int - done
-- Check size of long
-- Check size of long - done
-- Check size of long long
-- Check size of long long - done
-- Check size of __int64
-- Check size of __int64 - failed
-- Check size of int64_t
-- Check size of int64_t - failed
-- Check size of size_t
-- Check size of size_t - done
-- Sendmail binary found at /usr/sbin/sendmail
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Could NOT find GSASL (missing: GSASL_LIBRARIES GSASL_INCLUDE_DIR)
-- Could NOT find GnuTLS (missing: GNUTLS_LIBRARY GNUTLS_INCLUDE_DIR)
-- Found OpenSSL: /usr/lib/libssl.dylib;/usr/lib/libcrypto.dylib (found version "0.9.8y")
-- Looking for gnutls_priority_set_direct
-- Looking for gnutls_priority_set_direct - not found
-- Performing Test ICONV_SECOND_ARGUMENT_IS_CONST
-- Performing Test ICONV_SECOND_ARGUMENT_IS_CONST - Failed
-- Found Iconv: /usr/lib/libiconv.dylib
-- Performing Test _HAS_CXX11_FLAG
-- Performing Test _HAS_CXX11_FLAG - Success
-- Checking C++11 support for "__func__"
-- Checking C++11 support for "__func__": works
-- Checking C++11 support for "auto"
-- Checking C++11 support for "auto": works
-- Checking C++11 support for "auto_ret_type"
-- Checking C++11 support for "auto_ret_type": works
-- Checking C++11 support for "class_override_final"
-- Checking C++11 support for "class_override_final": not supported
-- Checking C++11 support for "constexpr"
-- Checking C++11 support for "constexpr": works
-- Checking C++11 support for "cstdint"
-- Checking C++11 support for "cstdint": works
-- Checking C++11 support for "decltype"
-- Checking C++11 support for "decltype": works
-- Checking C++11 support for "initializer_list"
-- Checking C++11 support for "initializer_list": works
-- Checking C++11 support for "lambda"
-- Checking C++11 support for "lambda": works
-- Checking C++11 support for "long_long"
-- Checking C++11 support for "long_long": works
-- Checking C++11 support for "nullptr"
-- Checking C++11 support for "nullptr": works
-- Checking C++11 support for "regex"
-- Checking C++11 support for "regex": works
-- Checking C++11 support for "rvalue-references"
-- Checking C++11 support for "rvalue-references": works
-- Checking C++11 support for "sizeof_member"
-- Checking C++11 support for "sizeof_member": works
-- Checking C++11 support for "static_assert"
-- Checking C++11 support for "static_assert": works
-- Checking C++11 support for "variadic_templates"
-- Checking C++11 support for "variadic_templates": works
-- Performing Test VMIME_HAS_CXX11_SHARED_PTR
-- Performing Test VMIME_HAS_CXX11_SHARED_PTR - Success
-- Checking support for shared_ptr<>: built-in (C++11)
-- Looking for gmtime_s
-- Looking for gmtime_s - not found
-- Looking for gmtime_r
-- Looking for gmtime_r - found
-- Looking for localtime_s
-- Looking for localtime_s - not found
-- Looking for localtime_r
-- Looking for localtime_r - found
-- Looking for strcpy_s
-- Looking for strcpy_s - not found
-- Looking for getaddrinfo
-- Looking for getaddrinfo - found
-- Looking for getnameinfo
-- Looking for getnameinfo - found
-- Looking for gettid
-- Looking for gettid - not found
-- Looking for syscall
-- Looking for syscall - found
-- Looking for SYS_gettid
-- Looking for SYS_gettid - found
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
CMake Error at /Applications/CMake.app/Contents/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:136 (message):
Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
Call Stack (most recent call first):
/Applications/CMake.app/Contents/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:343 (_FPHSA_FAILURE_MESSAGE)
/Applications/CMake.app/Contents/share/cmake-3.0/Modules/FindPkgConfig.cmake:164 (find_package_handle_standard_args)
examples/viewer/CMakeLists.txt:4 (FIND_PACKAGE)


CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
GNUTLS_INCLUDE_DIR (ADVANCED)
used as include directory in directory /Users/C/Desktop/vmimex/vmime
used as include directory in directory /Users/C/Desktop/vmimex/vmime
used as include directory in directory /Users/C/Desktop/vmimex/vmime
GNUTLS_LIBRARY (ADVANCED)
linked by target "vmime" in directory /Users/C/Desktop/vmimex/vmime
GSASL_INCLUDE_DIR (ADVANCED)
used as include directory in directory /Users/C/Desktop/vmimex/vmime
used as include directory in directory /Users/C/Desktop/vmimex/vmime
used as include directory in directory /Users/C/Desktop/vmimex/vmime
GSASL_LIBRARIES (ADVANCED)
linked by target "vmime" in directory /Users/C/Desktop/vmimex/vmime

-- Configuring incomplete, errors occurred!
See also "/Users/C/Desktop/vmimex/vmime/CMakeFiles/CMakeOutput.log".
See also "/Users/C/Desktop/vmimex/vmime/CMakeFiles/CMakeError.log".

Please help! :/
Thanks in advance :)

Vincent Richard

unread,
Jul 7, 2014, 3:10:06 PM7/7/14
to
Hello!

This is because "VMIME_BUILD_SAMPLES" is set to "ON" by default. Building samples require installing "pkg-config" and "gtk-3.0" packages. Simply set it to "OFF" or install the missing packages.

Vincent

klom...@googlemail.com

unread,
Jul 7, 2014, 4:46:41 PM7/7/14
to vm...@googlegroups.com
Thank you! That already helped a lot :)

But there are still some errors left, it seems that i still need pkg-config or something as it says "Could NOT find PkgConfig" ... (?)

This is the console:

X:vmime C$ /Applications/CMake.app/Contents/bin/cmake -G "Unix Makefiles" -DVMIME_TLS_SUPPORT_LIB_IS_OPENSSL=ON -DVMIME_TLS_SUPPORT_LIB_IS_GNUTLS=OFF -DVMIME_BUILD_SAMPLES=OFF
-- Build type: Debug


-- Sendmail binary found at /usr/sbin/sendmail
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Could NOT find GSASL (missing: GSASL_LIBRARIES GSASL_INCLUDE_DIR)
-- Could NOT find GnuTLS (missing: GNUTLS_LIBRARY GNUTLS_INCLUDE_DIR)

-- Checking support for shared_ptr<>: built-in (C++11)

-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)

Vincent Richard

unread,
Jul 7, 2014, 5:04:38 PM7/7/14
to vm...@googlegroups.com
If you are using the latest version from the Git (actually, a version dated after May, 27th 2014), the options to choose the SSL/SASL library to use have changed.

For example, you need to use:

    cmake ... -DVMIME_TLS_SUPPORT_LIB=openssl ...

instead of:

    cmake ... -DVMIME_TLS_SUPPORT_LIB_IS_OPENSSL=ON ...

Have a look at the VMime book, section "Building" (or in vmime/doc/book/building.tex).

Vincent

klom...@googlemail.com

unread,
Jul 9, 2014, 2:52:46 PM7/9/14
to vm...@googlegroups.com
Unfortunately that didn't work either :/

X:vmime C$ /Applications/CMake.app/Contents/bin/cmake -G "Unix Makefiles" -DVMIME_TLS_SUPPORT_LIB=openssl -DVMIME_BUILD_SAMPLES=OFF


-- Build type: Debug
-- Sendmail binary found at /usr/sbin/sendmail
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Could NOT find GSASL (missing: GSASL_LIBRARIES GSASL_INCLUDE_DIR)
-- Could NOT find GnuTLS (missing: GNUTLS_LIBRARY GNUTLS_INCLUDE_DIR)
-- Checking support for shared_ptr<>: built-in (C++11)
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:

lampt...@gmail.com

unread,
Dec 31, 2014, 2:49:37 AM12/31/14
to vm...@googlegroups.com
VMime - getting it to work
I think this should work, do the following, it will take a while:

sudo apt-get update

sudo apt-get upgrade

Install cmake:
sudo apt-get install cmake

Install boost:
sudo apt-get install libboost-all-dev

Installing Doxygen:
sudo aptitude install doxygen graphviz

Installing Gtkt-3.0:
sudo apt-get install libgtk-3-dev

Installing GNU TLS (you might be able to skip this one do to what will be added in a later install that you will do):
sudo apt-get install gnutls-bin

Installing GSASL (you might be able to skip this one do to what will be added in a later install that you will do):
sudo apt-get install gsasl

Installing GSASL Libraries (one of your main problems why it doesn't work):
sudo apt-get install libghc-gsasl-dev

Installing GNUTLS (one of your main problems why it doesn't work):
sudo apt-get install libgnutls-dev


Remember to delete the old cached cmakefile before doing cmake again by using:
sudo rm -f -r CMakeCache.txt
Reply all
Reply to author
Forward
0 new messages