Boost (1.76.0) Error during Caffe Build OSX - boost

I am dealing with a little snag that came up while trying to build Caffe from source. First, I will describe the steps I took and then the error itself.
git clone https://github.com/CMU-Perceptual-Computing-Lab/caffe
mkdir build; cd build
brew install boost
brew install boost-python3
The following change to CMakeCache.txt to help CMake find veclib (idk if this is relevant):
vecLib_INCLUDE_DIR:PATH=vecLib_INCLUDE_DIR-NOTFOUND -> vecLib_INCLUDE_DIR:PATH=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Accelerate.framework/Versions/Current/Frameworks/vecLib.framework/Headers/
Here is the relevant part of caffe/build/Dependencies.cmake:
set(BOOST_ROOT "usr/local/Cellar/boost/1.76.0")
set(Boost_USE_STATIC_LIBS ON)
find_package(Boost 1.54 REQUIRED COMPONENTS system thread filesystem)
list(APPEND Caffe_INCLUDE_DIRS PUBLIC ${Boost_INCLUDE_DIR})
list(APPEND Caffe_LINKER_LIBS PUBLIC ${Boost_LIBRARIES})
Afterwards from caffe/build
cmake ..
Which produces the following log:
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Warning (dev) at cmake/Misc.cmake:32 (set):
implicitly converting 'BOOLEAN' to 'STRING' type.
Call Stack (most recent call first):
CMakeLists.txt:25 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found Boost 1.76.0 at /usr/local/Cellar/boost/1.76.0/lib/cmake/Boost-1.76.0
-- Requested configuration: QUIET REQUIRED COMPONENTS system;thread;filesystem
-- BoostConfig: find_package(boost_headers 1.76.0 EXACT CONFIG REQUIRED QUIET HINTS /usr/local/Cellar/boost/1.76.0/lib/cmake)
-- Found boost_headers 1.76.0 at /usr/local/Cellar/boost/1.76.0/lib/cmake/boost_headers-1.76.0
-- BoostConfig: find_package(boost_system 1.76.0 EXACT CONFIG REQUIRED QUIET HINTS /usr/local/Cellar/boost/1.76.0/lib/cmake)
-- Found boost_system 1.76.0 at /usr/local/Cellar/boost/1.76.0/lib/cmake/boost_system-1.76.0
-- Boost toolset is clang10 (Clang 10.0.1.10010046)
-- Scanning /usr/local/Cellar/boost/1.76.0/lib/cmake/boost_system-1.76.0/libboost_system-variant*.cmake
-- Including /usr/local/Cellar/boost/1.76.0/lib/cmake/boost_system-1.76.0/libboost_system-variant-mt-shared.cmake
-- [ ] libboost_system-mt.dylib
-- Including /usr/local/Cellar/boost/1.76.0/lib/cmake/boost_system-1.76.0/libboost_system-variant-mt-static.cmake
-- [x] libboost_system-mt.a
-- Including /usr/local/Cellar/boost/1.76.0/lib/cmake/boost_system-1.76.0/libboost_system-variant-shared.cmake
-- [ ] libboost_system.dylib
-- Including /usr/local/Cellar/boost/1.76.0/lib/cmake/boost_system-1.76.0/libboost_system-variant-static.cmake
-- [ ] libboost_system.a
-- Adding boost_system dependencies: headers
-- BoostConfig: find_package(boost_thread 1.76.0 EXACT CONFIG REQUIRED QUIET HINTS /usr/local/Cellar/boost/1.76.0/lib/cmake)
-- Found boost_thread 1.76.0 at /usr/local/Cellar/boost/1.76.0/lib/cmake/boost_thread-1.76.0
-- Boost toolset is clang10 (Clang 10.0.1.10010046)
-- Scanning /usr/local/Cellar/boost/1.76.0/lib/cmake/boost_thread-1.76.0/libboost_thread-variant*.cmake
-- Including /usr/local/Cellar/boost/1.76.0/lib/cmake/boost_thread-1.76.0/libboost_thread-variant-mt-shared.cmake
-- [ ] libboost_thread-mt.dylib
-- Including /usr/local/Cellar/boost/1.76.0/lib/cmake/boost_thread-1.76.0/libboost_thread-variant-mt-static.cmake
-- [x] libboost_thread-mt.a
-- Adding boost_thread dependencies: headers
-- BoostConfig: find_package(boost_filesystem 1.76.0 EXACT CONFIG REQUIRED QUIET HINTS /usr/local/Cellar/boost/1.76.0/lib/cmake)
-- Found boost_filesystem 1.76.0 at /usr/local/Cellar/boost/1.76.0/lib/cmake/boost_filesystem-1.76.0
-- Boost toolset is clang10 (Clang 10.0.1.10010046)
-- Scanning /usr/local/Cellar/boost/1.76.0/lib/cmake/boost_filesystem-1.76.0/libboost_filesystem-variant*.cmake
-- Including /usr/local/Cellar/boost/1.76.0/lib/cmake/boost_filesystem-1.76.0/libboost_filesystem-variant-mt-shared.cmake
-- [ ] libboost_filesystem-mt.dylib
-- Including /usr/local/Cellar/boost/1.76.0/lib/cmake/boost_filesystem-1.76.0/libboost_filesystem-variant-mt-static.cmake
-- [x] libboost_filesystem-mt.a
-- Including /usr/local/Cellar/boost/1.76.0/lib/cmake/boost_filesystem-1.76.0/libboost_filesystem-variant-shared.cmake
-- [ ] libboost_filesystem.dylib
-- Including /usr/local/Cellar/boost/1.76.0/lib/cmake/boost_filesystem-1.76.0/libboost_filesystem-variant-static.cmake
-- [ ] libboost_filesystem.a
-- Adding boost_filesystem dependencies: headers
-- Found Boost: /usr/local/Cellar/boost/1.76.0/lib/cmake/Boost-1.76.0/BoostConfig.cmake (found suitable version "1.76.0", minimum required is "1.54") found components: system thread filesystem
-- Found gflags (include: /usr/local/include, library: /usr/local/lib/libgflags.dylib)
-- Found glog (include: /usr/local/include, library: /usr/local/lib/libglog.dylib)
-- Found PROTOBUF Compiler: /usr/local/bin/protoc
-- Found lmdb (include: /usr/local/include, library: /usr/local/lib/liblmdb.dylib)
-- Found LevelDB (include: /usr/local/include, library: /usr/local/lib/libleveldb.dylib)
-- Found Snappy (include: /usr/local/include, library: /usr/local/lib/libsnappy.dylib)
CMake Warning at cmake/Dependencies.cmake:92 (message):
-- CUDA is not detected by cmake. Building without it...
Call Stack (most recent call first):
CMakeLists.txt:49 (include)
-- OpenCV found (/usr/local/Cellar/opencv/4.5.2_4/lib/cmake/opencv4)
-- Found vecLib as part of Accelerate.framework
-- NumPy ver. 1.8.0rc1 found (include: /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include)
-- Found Boost 1.76.0 at /usr/local/Cellar/boost/1.76.0/lib/cmake/Boost-1.76.0
-- Requested configuration: QUIET COMPONENTS python
-- BoostConfig: find_package(boost_headers 1.76.0 EXACT CONFIG QUIET HINTS /usr/local/Cellar/boost/1.76.0/lib/cmake)
-- BoostConfig: find_package(boost_python 1.76.0 EXACT CONFIG QUIET HINTS /usr/local/Cellar/boost/1.76.0/lib/cmake)
-- Found boost_python 1.76.0 at /usr/local/lib/cmake/boost_python-1.76.0
CMake Error at /usr/local/lib/cmake/boost_python-1.76.0/boost_python-config.cmake:29 (include):
include could not find requested file:
/usr/local/lib/cmake/boost_python-1.76.0/../BoostDetectToolset-1.76.0.cmake
Call Stack (most recent call first):
/usr/local/Cellar/boost/1.76.0/lib/cmake/Boost-1.76.0/BoostConfig.cmake:141 (find_package)
/usr/local/Cellar/boost/1.76.0/lib/cmake/Boost-1.76.0/BoostConfig.cmake:258 (boost_find_component)
/Applications/CMake.app/Contents/share/cmake-3.20/Modules/FindBoost.cmake:594 (find_package)
cmake/Dependencies.cmake:182 (find_package)
CMakeLists.txt:49 (include)
-- Scanning /usr/local/lib/cmake/boost_python-1.76.0/libboost_python-variant*.cmake
-- Including /usr/local/lib/cmake/boost_python-1.76.0/libboost_python-variant-mt-shared-py3.9.cmake
-- [ ] libboost_python39-mt.dylib
-- Including /usr/local/lib/cmake/boost_python-1.76.0/libboost_python-variant-mt-static-py3.9.cmake
-- [x] libboost_python39-mt.a
-- Setting Boost_PYTHON_VERSION to 3.9
-- Including /usr/local/lib/cmake/boost_python-1.76.0/libboost_python-variant-shared-py3.9.cmake
-- [ ] libboost_python39.dylib
-- Including /usr/local/lib/cmake/boost_python-1.76.0/libboost_python-variant-static-py3.9.cmake
-- [ ] libboost_python39.a
-- Adding boost_python dependencies: headers
-- Found Boost: /usr/local/Cellar/boost/1.76.0/lib/cmake/Boost-1.76.0/BoostConfig.cmake (found suitable version "1.76.0", minimum required is "1.46") found components: python
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
--
-- ******************* Caffe Configuration Summary *******************
-- General:
-- Version : 1.0.0
-- Git : 1.0-149-g1807aada-dirty
-- System : Darwin
-- C++ compiler : /Library/Developer/CommandLineTools/usr/bin/c++
-- Release CXX flags : -O3 -DNDEBUG -fPIC -Wall -std=c++11 -Wno-sign-compare -Wno-uninitialized
-- Debug CXX flags : -g -fPIC -Wall -std=c++11 -Wno-sign-compare -Wno-uninitialized
-- Build type : Release
--
-- BUILD_SHARED_LIBS : ON
-- BUILD_python : ON
-- BUILD_matlab : OFF
-- BUILD_docs : ON
-- CPU_ONLY : OFF
-- USE_OPENCV : ON
-- USE_LEVELDB : ON
-- USE_LMDB : ON
-- USE_NCCL : OFF
-- ALLOW_LMDB_NOLOCK : OFF
-- USE_HDF5 : ON
--
-- Dependencies:
-- BLAS : Yes (vecLib)
-- Boost : Yes (ver. 1.76)
-- glog : Yes
-- gflags : Yes
-- protobuf : Yes (ver. ..)
-- lmdb : Yes (ver. 0.9.29)
-- LevelDB : Yes (ver. 1.23)
-- Snappy : Yes (ver. 1.1.9)
-- OpenCV : Yes (ver. 4.5.2)
-- CUDA : No
--
-- Python:
-- Interpreter : /usr/bin/python2.7 (ver. 2.7.16)
-- Libraries : /usr/lib/libpython2.7.dylib (ver 2.7.10)
-- NumPy : /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include (ver 1.8.0rc1)
--
-- Documentaion:
-- Doxygen : No
-- config_file :
--
-- Install:
-- Install path : /Users/[REDACTED]/workspace/internships/reu_gmu/openpose/3rdparty/caffe/build/install
--
-- Configuring incomplete, errors occurred!
See also "/Users/[REDACTED]/workspace/internships/reu_gmu/openpose/3rdparty/caffe/build/CMakeFiles/CMakeOutput.log".
The error responsible for the failure is:
CMake Error at /usr/local/lib/cmake/boost_python-1.76.0/boost_python-config.cmake:29 (include):
include could not find requested file:
/usr/local/lib/cmake/boost_python-1.76.0/../BoostDetectToolset-1.76.0.cmake
What is BoostDetectToolset-1.76.0.cmake? I tried placing this file: https://github.com/boostorg/boost_install/blob/develop/BoostDetectToolset.cmake (after renaming) at the above file path but the error persists. I am embarrassed to admit I also tried commenting out line 29 in boost_python-config.cmake. cmake ran fine, make failed. Could the absence of the file be symptomatic of boost-python3 incompatability with this caffe build? I have Conda installed and I may have forgotten to deactivate the base environment in the beginning, maybe this led to the issue somehow (different python versions at different points during the build process)
I tried:
brew install boost-python
but it failed. Maybe this will be patched in the future. Is it more advisable at this point to switch to an alternative like pybind11?
UPDATE:
Error after steps in fourth comment in thread below were taken:
-- Could NOT find Boost: missing: python-py395 (found /usr/local/Cellar/boost/1.76.0/lib/cmake/Boost-1.76.0/BoostConfig.cmake (found suitable version "1.76.0", minimum required is "1.46"))
-- Could NOT find Boost: missing: python-py39 (found /usr/local/Cellar/boost/1.76.0/lib/cmake/Boost-1.76.0/BoostConfig.cmake (found suitable version "1.76.0", minimum required is "1.46"))
-- Could NOT find Boost: missing: python-py3 (found /usr/local/Cellar/boost/1.76.0/lib/cmake/Boost-1.76.0/BoostConfig.cmake (found suitable version "1.76.0", minimum required is "1.46"))
CMake Error at /usr/local/lib/cmake/boost_python-1.76.0/boost_python-config.cmake:29 (include):
include could not find requested file:
/usr/local/lib/cmake/boost_python-1.76.0/../BoostDetectToolset-1.76.0.cmake
Call Stack (most recent call first):
/usr/local/Cellar/boost/1.76.0/lib/cmake/Boost-1.76.0/BoostConfig.cmake:141 (find_package)
/usr/local/Cellar/boost/1.76.0/lib/cmake/Boost-1.76.0/BoostConfig.cmake:258 (boost_find_component)
/usr/local/Cellar/cmake/3.20.3/share/cmake/Modules/FindBoost.cmake:594 (find_package)
cmake/Dependencies.cmake:175 (find_package)
CMakeLists.txt:49 (include)

Related

Finding openssl library with cmake

I tried several adaptations, compiling monero under Windows 10, but I am still getting with mingw64 the compilation error message below. openssl is installed als under mingw64. The mingw64 environment is up-to-date.
# make release-static-win64
mkdir -p build/"MINGW64_NT-10.0-18362/master"/release
cd build/"MINGW64_NT-10.0-18362/master"/release && cmake -G "MSYS Makefiles" -D STATIC=ON -D ARCH="x86-64" -D BUILD_64=ON -D CMAKE_BUILD_TYPE=Release -D BUILD_TAG="win-x64" -D CMAKE_TOOLCHAIN_FILE=../../../../cmake/64-bit-toolchain.cmake -D MSYS2_FOLDER=c:/msys64 ../../../.. && make
-- Found PythonInterp: D:/apps/msys64/mingw64/bin/python.exe (found version "3.8")
-- CMake version 3.15.5
-- The C compiler identification is GNU 9.2.0
-- The CXX compiler identification is GNU 9.2.0
-- Check for working C compiler: D:/apps/msys64/mingw64/bin/x86_64-w64-mingw32-gcc.exe
-- Check for working C compiler: D:/apps/msys64/mingw64/bin/x86_64-w64-mingw32-gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: D:/apps/msys64/mingw64/bin/x86_64-w64-mingw32-g++.exe
-- Check for working CXX compiler: D:/apps/msys64/mingw64/bin/x86_64-w64-mingw32-g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The ASM compiler identification is GNU
-- Found assembler: D:/apps/msys64/mingw64/bin/x86_64-w64-mingw32-gcc.exe
-- Building build tag win-x64
-- Found Git: D:/apps/msys64/usr/bin/git.exe (found version "2.24.1")
-- Checking submodules
-- Submodule 'external/miniupnp' is up-to-date
-- Submodule 'external/unbound' is up-to-date
-- Submodule 'external/rapidjson' is up-to-date
-- Submodule 'external/trezor-common' is up-to-date
-- Submodule 'external/randomx' is up-to-date
-- Could not find DEVELOPER_LOCAL_TOOLS in env (not required)
-- BOOST_IGNORE_SYSTEM_PATHS defaults to OFF
-- Could not find DEVELOPER_LIBUNBOUND_OLD in env (not required)
-- Building for a 64-bit system
-- Building internal libraries as static
-- MSYS location: D:/apps
-- Using LMDB as default DB type
-- looking for liblzma
-- Could not find libunwind (missing: LIBUNWIND_INCLUDE_DIR LIBUNWIND_LIBRARIES)
-- Stack trace on exception disabled
CMake Error at D:/apps/msys64/mingw64/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY
OPENSSL_INCLUDE_DIR)
Call Stack (most recent call first):
D:/apps/msys64/mingw64/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
D:/apps/msys64/mingw64/share/cmake-3.15/Modules/FindOpenSSL.cmake:413 (find_package_handle_standard_args)
CMakeLists.txt:400 (find_package)
Any ideas how to solve?

Building Eigen3 with CXX_FLAGS

I'm trying to build Eigen3 using CMake as described in the installation menual:
root#60e449767588:/opt/tr/src/eigen/build_dir$ ../../cmake-3.8.1/bin/cmake -DCMAKE_BUILD_TYPE=Release --build ..
This is the output:
-- Standard libraries to link to explicitly: none
-- Found unsuitable Qt version "" from NOTFOUND
-- Could NOT find CHOLMOD (missing: CHOLMOD_INCLUDES CHOLMOD_LIBRARIES)
-- Could NOT find UMFPACK (missing: UMFPACK_INCLUDES UMFPACK_LIBRARIES)
-- Could NOT find SUPERLU (missing: SUPERLU_INCLUDES SUPERLU_LIBRARIES SUPERLU_VERSION_OK)
-- Could NOT find PASTIX (missing: PASTIX_INCLUDES PASTIX_LIBRARIES)
-- Could NOT find SCOTCH (missing: SCOTCH_INCLUDES SCOTCH_LIBRARIES)
-- Could NOT find METIS (missing: METIS_INCLUDES METIS_LIBRARIES)
-- Could NOT find SPQR (missing: SPQR_INCLUDES SPQR_LIBRARIES)
-- Found unsuitable Qt version "" from NOTFOUND
-- Boost version: 1.64.0
-- Could NOT find GOOGLEHASH (missing: GOOGLEHASH_INCLUDES GOOGLEHASH_COMPILE)
-- Could NOT find ADOLC (missing: ADOLC_INCLUDES ADOLC_LIBRARIES)
-- Could NOT find MPFR (missing: MPFR_INCLUDES MPFR_LIBRARIES MPFR_VERSION_OK) (Required is at least version "2.3.0")
-- Could NOT find GMP (missing: GMP_INCLUDES GMP_LIBRARIES)
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Could NOT find FFTW (missing: FFTW_INCLUDES FFTW_LIBRARIES)
-- Could NOT find OpenGL (missing: OPENGL_gl_LIBRARY OPENGL_INCLUDE_DIR)
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR)
CUDA_TOOLKIT_ROOT_DIR not found or specified
-- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (Required is at least version "7.0")
-- Found unsuitable Qt version "" from NOTFOUND
-- Qt4 not found, so disabling the mandelbrot and opengl demos
-- Could NOT find CHOLMOD (missing: CHOLMOD_INCLUDES CHOLMOD_LIBRARIES)
-- Could NOT find UMFPACK (missing: UMFPACK_INCLUDES UMFPACK_LIBRARIES)
-- Could NOT find SUPERLU (missing: SUPERLU_INCLUDES SUPERLU_LIBRARIES SUPERLU_VERSION_OK)
-- Could NOT find PASTIX (missing: PASTIX_INCLUDES PASTIX_LIBRARIES)
-- Could NOT find SCOTCH (missing: SCOTCH_INCLUDES SCOTCH_LIBRARIES)
-- Could NOT find METIS (missing: METIS_INCLUDES METIS_LIBRARIES)
-- ************************************************************
-- *** Eigen's unit tests configuration summary ***
-- ************************************************************
--
-- Build type: Release
-- Build site: 60e449767588
-- Build string: linux-4.4.0-78-generic-_-4.9.2-sse2-64bit
-- Enabled backends: Boost.Multiprecision,
-- Disabled backends: Cholmod, UmfPack, SuperLU, PaStiX, METIS, SPQR, Qt4 support, GoogleHash, Adolc, MPFR C++, fftw, OpenGL,
-- Default order: Column-major
-- Maximal matrix/vector size: 320
-- SSE2: Using architecture defaults
-- SSE3: Using architecture defaults
-- SSSE3: Using architecture defaults
-- SSE4.1: Using architecture defaults
-- SSE4.2: Using architecture defaults
-- AVX: Using architecture defaults
-- FMA: Using architecture defaults
-- AVX512: Using architecture defaults
-- Altivec: Using architecture defaults
-- VSX: Using architecture defaults
-- ARM NEON: Using architecture defaults
-- ARMv8 NEON: Using architecture defaults
-- S390X ZVECTOR: Using architecture defaults
-- C++11: OFF
-- SYCL: OFF
-- CUDA: OFF
--
CXX: /usr/bin/c++
CXX_VERSION: c++ (Debian 4.9.2-10) 4.9.2
CXX_FLAGS: -O3 -DNDEBUG -fPIC -DEIGEN_USE_MKL_ALL -DMKL_ILP64 -fopenmp -m64 -v -pedantic -Wall -Wextra -Wundef -Wcast-align -Wchar-subscripts -Wnon-virtual-dtor -Wunused-local-typedefs -Wpointer-arith -Wwrite-strings -Wformat-security -Wlogical-op -Wdouble-promotion -Wno-psabi -Wno-variadic-macros -Wno-long-long -fno-check-new -fno-common -fstrict-aliasing -ansi
Sparse lib flags:
-- ************************************************************
--
-- Configured Eigen 3.3.3
--
-- Some things you can do now:
-- --------------+--------------------------------------------------------------
-- Command | Description
-- --------------+--------------------------------------------------------------
-- make install | Install Eigen. Headers will be installed to:
-- | <CMAKE_INSTALL_PREFIX>/<INCLUDE_INSTALL_DIR>
-- | Using the following values:
-- | CMAKE_INSTALL_PREFIX: /usr/local
-- | INCLUDE_INSTALL_DIR: include/eigen3
-- | Change the install location of Eigen headers using:
-- | cmake . -DCMAKE_INSTALL_PREFIX=yourprefix
-- | Or:
-- | cmake . -DINCLUDE_INSTALL_DIR=yourdir
-- make doc | Generate the API documentation, requires Doxygen & LaTeX
-- make check | Build and run the unit-tests. Read this page:
-- | http://eigen.tuxfamily.org/index.php?title=Tests
-- make blas | Build BLAS library (not the same thing as Eigen)
-- make uninstall| Removes files installed by make install
-- --------------+--------------------------------------------------------------
--
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/tr/src/eigen/build_dir
My questions are:
How to remove the default value of CXX_FLAGS?
How to specify that I wish to work with C++11 or even 14?
How to specify that I wish to work with SYCL?
Thank you!
As suggested in my comment, Eigen is a header only library (there are no source files), you do not need to build it. Just include the relevant headers where you want to use Eigen. You may copy the header files (using simple cp) to wherever it seems appropriate to you.
See the Getting Started manual:
In order to use Eigen, you just need to download and extract Eigen's
source code (see the wiki for download instructions). In fact, the
header files in the Eigen subdirectory are the only files required to
compile programs using Eigen. The header files are the same for all
platforms. It is not necessary to use CMake or install anything.
And the Eigen wiki mentions:
We use the CMake build system, but only to build the documentation and
unit-tests, and to automate installation. If you just want to use
Eigen, you can use the header files right away. There is no binary
library to link to, and no configured header file. Eigen is a pure
template library defined in the headers.
So, if you are not interested in building the unit-tests or the documentation, you do not need cmake for it.
Conclusion: You have to specify the compiler flags (CXX_FLAGS, ...) in the project which uses Eigen.
Note for CMake find_package: see the comment of Andrew W.
As per the answer from #m7913d Eigen is a header only library so you can follow the standard instructions on how to include these.
For 3, there is a guide on how to integrate Eigen with your application, and how to build things
https://developer.codeplay.com/products/computecpp/ce/guides/eigen-guide/options-for-building-eigen

PCL 1.8 on MAC OS errors in CMake generated Makefile

I'm trying to get PCL 1.8 (The point cloud library) working on Mac OS 10.9.5, I installed all the dependencies and pcl using brew. My brew list indicates:
$ brew list
autoconf libebml pcl
automake libmatroska pcre
boost libogg pkg-config
cmake libpng qhull
cminpack libtiff qt
eigen libtool readline
expat libusb scons
flann libvorbis sip
fontconfig makedepend sqlite
freetype mkvtoolnix subversion
gettext openni szip
glew openni2 vtk
hdf5 openni2-freenectdriver wxmac
jpeg openssl xz
My cpp and CMakeLists.txt are the same at. After executing the 'cmake ..' command I get several warnings indicating an inclomplete configuration
-- The C compiler identification is Clang 6.0.0
-- The CXX compiler identification is Clang 6.0.0
-- 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
-- checking for module 'eigen3'
-- found eigen3, version 3.2.10
-- Found eigen: /usr/local/Cellar/eigen/3.2.10/include/eigen3
-- Boost version: 1.62.0
-- Found the following Boost libraries:
-- system
-- filesystem
-- thread
-- date_time
-- iostreams
-- serialization
-- checking for module 'libopenni'
-- found libopenni, version 1.5.7.10
-- Found openni: /usr/local/Cellar/openni/1.5.7.10/lib/libOpenNI.dylib
-- checking for module 'libopenni2'
-- package 'libopenni2' not found
-- Found OpenNI2: /usr/local/lib/ni2/libOpenNI2.dylib
-- Could NOT find ensenso (missing: ENSENSO_LIBRARY ENSENSO_INCLUDE_DIR)
** WARNING ** io features related to ensenso will be disabled
-- Could NOT find DAVIDSDK (missing: DAVIDSDK_LIBRARY DAVIDSDK_INCLUDE_DIR)
** WARNING ** io features related to davidSDK will be disabled
-- Could NOT find DSSDK (missing: _DSSDK_LIBRARIES)
** WARNING ** io features related to dssdk will be disabled
** WARNING ** io features related to pcap will be disabled
** WARNING ** io features related to png will be disabled
CMake Error at /usr/local/lib/cmake/vtk-7.0/VTKTargets.cmake:1361 (message):
This file relies on consumers using CMake 2.8.12 or greater.
Call Stack (most recent call first):
/usr/local/lib/cmake/vtk-7.0/VTKConfig.cmake:68 (include)
/Applications/CMake 2.8-11.app/Contents/share/cmake- 2.8/Modules/FindVTK.cmake:73 (find_package)
/usr/local/share/pcl-1.8/PCLConfig.cmake:501 (find_package)
/usr/local/share/pcl-1.8/PCLConfig.cmake:659 (find_VTK)
/usr/local/share/pcl-1.8/PCLConfig.cmake:849 (find_external_library)
CMakeLists.txt:3 (find_package)
-- Configuring incomplete, errors occurred!
Im probably doing something dumb, but I'm stumped. Ideas are welcome.
thanks in advance.

Compile wireshark 64bit failed under win7 with Cmake,what is the cause?

I tried to compile wireshark at WIN7 with CMAKE under 64bit option,however the result is failed
I can not figure out the reason,could you help me to have a check.I appreciate any suggestions
from you.Thanks a lot,i like this platform.below is the environment setting and command.
call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86_amd64
set WIRESHARK_BASE_DIR=E:\Wireshark_Plugin\SecVersion\wireshark-master
set WIRESHARK_CYGWIN_INSTALL_PATH==E:\Software\Cygwin\bin
set WIRESHARK_TARGET_PLATFORM=win64
set QT5_BASE_DIR=E:\Software\QT\5.6\msvc2013_64
set VISUALSTUDIOVERSION=12.0
set MSVC_VARIANT=MSVC2013EE
e:
cd E:\Wireshark_Plugin\SecVersion\wsbuild
cmake -DENABLE_CHM_GUIDES=on -G "Visual Studio 12 Win64" ..\wireshark-master
pause
E:\Wireshark_Plugin\SecVersion\wsbuild>call "C:\Program Files (x86)\Microsoft Vi
sual Studio 12.0\VC\vcvarsall.bat" x86_amd64
-- The C compiler identification is MSVC 18.0.40629.0
-- The CXX compiler identification is MSVC 18.0.40629.0
-- Check for working C compiler using: Visual Studio 12 2013 Win64
-- Check for working C compiler using: Visual Studio 12 2013 Win64 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 12 2013 Win64
-- Check for working CXX compiler using: Visual Studio 12 2013 Win64 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Generating build using CMake 3.5.2
-- Found POWERSHELL: C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe
-- Building for win64 using Visual Studio 12 2013 Win64
Working in E:\Wireshark_Plugin\SecVersion\wireshark-master\wireshark-win64-libs
Tag 2016-05-10 found. Skipping.
-- No custom file found in E:/Wireshark_Plugin/SecVersion/wireshark-master
-- Configuration types: Debug;Release;MinSizeRel;RelWithDebInfo
-- CMAKE_C_FLAGS_RELWITHDEBINFO: /MD /Zi /O2 /Ob1 /D NDEBUG
-- CMAKE_CXX_FLAGS_RELWITHDEBINFO: /MD /Zi /O2 /Ob1 /D NDEBUG
-- V: 2.1.0-git, MaV: 2, MiV: 1, PL: 0, EV: -git.
-- Found PythonInterp: C:/Python27/python.exe (found version "2.7.8")
-- Found python module asn2wrs: E:\Wireshark_Plugin\SecVersion\wireshark-master\
tools\asn2wrs.py
-- Checking for c-compiler flag: /MP
-- Performing Test C__MP_VALID
-- Performing Test C__MP_VALID - Success
-- Checking for c-compiler flag: /Zo
-- Performing Test C__Zo_VALID
-- Performing Test C__Zo_VALID - Success
-- Checking for c-compiler flag: /w34295 /w34189
-- Performing Test C__w34295_w34189_VALID
-- Performing Test C__w34295_w34189_VALID - Success
-- Checking for c++-compiler flag: /MP
-- Performing Test CXX__MP_VALID
-- Performing Test CXX__MP_VALID - Success
-- Checking for c++-compiler flag: /Zo
-- Performing Test CXX__Zo_VALID
-- Performing Test CXX__Zo_VALID - Success
-- Checking for c++-compiler flag: /w34295 /w34189
-- Performing Test CXX__w34295_w34189_VALID
-- Performing Test CXX__w34295_w34189_VALID - Success
statuscheck linker flag - test linker flags: -Wl,--as-needed
-- Performing Test WS_LD_FLAG_VALID0
-- Performing Test WS_LD_FLAG_VALID0 - Failed
statuscheck linker flag - test linker flags: -pie
-- Performing Test WS_LD_FLAG_VALID1
-- Performing Test WS_LD_FLAG_VALID1 - Failed
-- 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 off64_t
-- Check size of off64_t - failed
-- Looking for fseeko
-- Looking for fseeko - not found
-- Looking for unistd.h
-- Looking for unistd.h - not found
-- Packagelist: AIRPCAP;CAP;CARES;GCRYPT;GEOIP;GLIB2;GMODULE2;GNUTLS;GTHREAD2;GT
K2;Gettext;Git;KERBEROS;LEX;LIBSSH;LUA;M;PCAP;POD;PORTAUDIO;Perl;PythonInterp;Qt
5Core;Qt5LinguistTools;Qt5Multimedia;Qt5PrintSupport;Qt5Svg;Qt5Widgets;Qt5WinExt
ras;SBC;SED;SETCAP;SH;SMI;WINSPARKLE;YACC;YAPP;ZLIB
-- Found AIRPCAP: E:/Wireshark_Plugin/SecVersion/wireshark-master/Wireshark-win6
4-libs/AirPcap_Devpack_4_1_0_1622/Airpcap_Devpack/include
-- AIRPCAP FOUND
-- AIRPCAP includes: E:/Wireshark_Plugin/SecVersion/wireshark-master/Wireshark-w
in64-libs/AirPcap_Devpack_4_1_0_1622/Airpcap_Devpack/include
-- AIRPCAP libs: E:/Wireshark_Plugin/SecVersion/wireshark-master/Wireshark-win64
-libs/AirPcap_Devpack_4_1_0_1622/Airpcap_Devpack/lib/airpcap.lib
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Checking for one of the modules 'libcap'
-- Could NOT find CAP (missing: CAP_LIBRARY CAP_INCLUDE_DIR)
-- CAP NOT FOUND
-- Found CARES: E:/Wireshark_Plugin/SecVersion/wireshark-master/Wireshark-win64-
libs/c-ares-1.11.0-win64ws/lib/libcares-2.lib
-- CARES FOUND
-- CARES includes: E:/Wireshark_Plugin/SecVersion/wireshark-master/Wireshark-win
64-libs/c-ares-1.11.0-win64ws/include
-- CARES libs: E:/Wireshark_Plugin/SecVersion/wireshark-master/Wireshark-win64-l
ibs/c-ares-1.11.0-win64ws/lib/libcares-2.lib
-- Found GCRYPT: E:/Wireshark_Plugin/SecVersion/wireshark-master/Wireshark-win64
-libs/gnutls-3.2.15-2.9-win64ws/bin/libgcrypt-20.lib (found suitable version "1.
6.2", minimum required is "1.4.2")
-- GCRYPT FOUND
-- GCRYPT includes: E:/Wireshark_Plugin/SecVersion/wireshark-master/Wireshark-wi
n64-libs/gnutls-3.2.15-2.9-win64ws/include
-- GCRYPT libs: E:/Wireshark_Plugin/SecVersion/wireshark-master/Wireshark-win64-
libs/gnutls-3.2.15-2.9-win64ws/bin/libgcrypt-20.lib;E:/Wireshark_Plugin/SecVersi
on/wireshark-master/Wireshark-win64-libs/gnutls-3.2.15-2.9-win64ws/bin/libgpg-er
ror6-0.lib
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Checking for one of the modules 'geoip'
-- Found GEOIP: E:/Wireshark_Plugin/SecVersion/wireshark-master/Wireshark-win64-
libs/GeoIP-1.6.6-win64ws/lib/libGeoIP-1.lib
-- Looking for GeoIP_country_name_by_ipnum_v6
-- Looking for GeoIP_country_name_by_ipnum_v6 - found
-- GEOIP FOUND
-- GEOIP includes: E:/Wireshark_Plugin/SecVersion/wireshark-master/Wireshark-win
64-libs/GeoIP-1.6.6-win64ws/include
-- GEOIP libs: E:/Wireshark_Plugin/SecVersion/wireshark-master/Wireshark-win64-l
ibs/GeoIP-1.6.6-win64ws/lib/libGeoIP-1.lib
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Checking for one of the modules 'glib-2.0>=2.14.0'
-- Found GLIB2: E:/Wireshark_Plugin/SecVersion/wireshark-master/Wireshark-win64-
libs/gtk2/lib/glib-2.0.lib
-- GLIB2 FOUND
-- GLIB2 includes: E:/Wireshark_Plugin/SecVersion/wireshark-master/Wireshark-win
64-libs/gtk2/include/glib-2.0;E:/Wireshark_Plugin/SecVersion/wireshark-master/Wi
reshark-win64-libs/gtk2/lib/glib-2.0/include
-- GLIB2 libs: E:/Wireshark_Plugin/SecVersion/wireshark-master/Wireshark-win64-l
ibs/gtk2/lib/glib-2.0.lib
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Checking for one of the modules 'gmodule-2.0'
-- Found GMODULE2: E:/Wireshark_Plugin/SecVersion/wireshark-master/Wireshark-win
64-libs/gtk2/lib/gmodule-2.0.lib
-- GMODULE2 FOUND
-- GMODULE2 includes: E:/Wireshark_Plugin/SecVersion/wireshark-master/Wireshark-
win64-libs/gtk2/include/glib-2.0
-- GMODULE2 libs: E:/Wireshark_Plugin/SecVersion/wireshark-master/Wireshark-win6
4-libs/gtk2/lib/gmodule-2.0.lib
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Checking for one of the modules 'gnutls'
-- Found GNUTLS: E:/Wireshark_Plugin/SecVersion/wireshark-master/Wireshark-win64
-libs/gnutls-3.2.15-2.9-win64ws/bin/libgnutls-28.lib (found suitable version "3.
2.15", minimum required is "2.12.0")
-- GNUTLS FOUND
-- GNUTLS includes: E:/Wireshark_Plugin/SecVersion/wireshark-master/Wireshark-wi
n64-libs/gnutls-3.2.15-2.9-win64ws/include
-- GNUTLS libs: E:/Wireshark_Plugin/SecVersion/wireshark-master/Wireshark-win64-
libs/gnutls-3.2.15-2.9-win64ws/bin/libgnutls-28.lib
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Checking for one of the modules 'gthread-2.0'
-- Found GTHREAD2: E:/Wireshark_Plugin/SecVersion/wireshark-master/Wireshark-win
64-libs/gtk2/lib/glib-2.0.lib
-- GTHREAD2 FOUND
-- GTHREAD2 includes: E:/Wireshark_Plugin/SecVersion/wireshark-master/Wireshark-
win64-libs/gtk2/include/glib-2.0/glib
-- GTHREAD2 libs: E:/Wireshark_Plugin/SecVersion/wireshark-master/Wireshark-win6
4-libs/gtk2/lib/glib-2.0.lib
-- Found GTK2_GTK: E:/Wireshark_Plugin/SecVersion/wireshark-master/Wireshark-win
64-libs/gtk2/lib/gtk-win32-2.0.lib
-- GTK2 FOUND
-- GTK2 includes: E:/Wireshark_Plugin/SecVersion/wireshark-master/Wireshark-win6
4-libs/gtk2/include/gtk-2.0;E:/Wireshark_Plugin/SecVersion/wireshark-master/Wire
shark-win64-libs/gtk2/include;E:/Wireshark_Plugin/SecVersion/wireshark-master/Wi
reshark-win64-libs/gtk2/include/freetype2;E:/Wireshark_Plugin/SecVersion/wiresha
rk-master/Wireshark-win64-libs/gtk2/include/glib-2.0;E:/Wireshark_Plugin/SecVers
ion/wireshark-master/Wireshark-win64-libs/gtk2/lib/glib-2.0/include;E:/Wireshark
_Plugin/SecVersion/wireshark-master/Wireshark-win64-libs/gtk2/include/atk-1.0;E:
/Wireshark_Plugin/SecVersion/wireshark-master/Wireshark-win64-libs/gtk2/include/
gdk-pixbuf-2.0;E:/Wireshark_Plugin/SecVersion/wireshark-master/Wireshark-win64-l
ibs/gtk2/include/cairo;E:/Wireshark_Plugin/SecVersion/wireshark-master/Wireshark
-win64-libs/gtk2/include/pango-1.0;E:/Wireshark_Plugin/SecVersion/wireshark-mast
er/Wireshark-win64-libs/gtk2/lib/gtk-2.0/include
-- GTK2 libs: E:/Wireshark_Plugin/SecVersion/wireshark-master/Wireshark-win64-li
bs/gtk2/lib/glib-2.0.lib;E:/Wireshark_Plugin/SecVersion/wireshark-master/Wiresha
rk-win64-libs/gtk2/lib/gobject-2.0.lib;E:/Wireshark_Plugin/SecVersion/wireshark-
master/Wireshark-win64-libs/gtk2/lib/atk-1.0.lib;E:/Wireshark_Plugin/SecVersion/
wireshark-master/Wireshark-win64-libs/gtk2/lib/gmodule-2.0.lib;E:/Wireshark_Plug
in/SecVersion/wireshark-master/Wireshark-win64-libs/gtk2/lib/gdk_pixbuf-2.0.lib;
E:/Wireshark_Plugin/SecVersion/wireshark-master/Wireshark-win64-libs/gtk2/lib/ca
iro.lib;E:/Wireshark_Plugin/SecVersion/wireshark-master/Wireshark-win64-libs/gtk
2/lib/pango-1.0.lib;E:/Wireshark_Plugin/SecVersion/wireshark-master/Wireshark-wi
n64-libs/gtk2/lib/pangocairo-1.0.lib;E:/Wireshark_Plugin/SecVersion/wireshark-ma
ster/Wireshark-win64-libs/gtk2/lib/gdk-win32-2.0.lib;E:/Wireshark_Plugin/SecVers
ion/wireshark-master/Wireshark-win64-libs/gtk2/lib/gtk-win32-2.0.lib
-- Could NOT find Gettext (missing: GETTEXT_MSGMERGE_EXECUTABLE GETTEXT_MSGFMT_
EXECUTABLE)
-- GETTEXT NOT FOUND
-- Could NOT find Git (missing: GIT_EXECUTABLE)
-- Git NOT FOUND
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Checking for one of the modules 'krb5;mit-krb5;heimdal-krb5'
-- Found KERBEROS: E:/Wireshark_Plugin/SecVersion/wireshark-master/Wireshark-win
64-libs/kfw-3-2-2-x64-ws/lib/krb5_64.lib
-- Looking for heimdal_version
-- Looking for heimdal_version - not found
-- KERBEROS FOUND
-- KERBEROS includes: E:/Wireshark_Plugin/SecVersion/wireshark-master/Wireshark-
win64-libs/kfw-3-2-2-x64-ws/include
-- KERBEROS libs: E:/Wireshark_Plugin/SecVersion/wireshark-master/Wireshark-win6
4-libs/kfw-3-2-2-x64-ws/lib/krb5_64.lib
CMake Error at cmake/modules/FindCygwin.cmake:59 (message):
Cygwin installation path was not detected. You can set it with
WIRESHARK_CYGWIN_INSTALL_PATH environment variable.
Call Stack (most recent call first):
cmake/modules/FindLEX.cmake:5 (INCLUDE)
CMakeLists.txt:835 (find_package)
-- Configuring incomplete, errors occurred!
See also "E:/Wireshark_Plugin/SecVersion/wsbuild/CMakeFiles/CMakeOutput.log".
See also "E:/Wireshark_Plugin/SecVersion/wsbuild/CMakeFiles/CMakeError.log".

Problems with CMake whilst building OpenCV

I'm trying to build the most recent version of OpenCV on a minimal enough VPS but am running into trouble with CMake. I'm not familiar with CMake so I'm finding it difficult to interpret the log output and thus how to proceed to debug the problem.
From the command line (x11 isn't installed) and within devel/OpenCV/-2.3.1/release I issue the following
sudo cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
and the result of this is the following:
-- Extracting svn version, please wait...
-- SVNVERSION: exported
-- Detected version of GNU GCC: 44 (404)
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
-- Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR)
-- Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR)
-- Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR)
-- Use NumPy headers from: /usr/lib/python2.6/site-packages/numpy-1.6.1-py2.6-linux-i686.egg/numpy/core/include
-- Found Sphinx 0.6.6: /usr/bin/sphinx-build
-- Parsing 'cvconfig.h.cmake'
--
-- General configuration for opencv 2.3.1 =====================================
--
-- Built as dynamic libs?: YES
-- Compiler: /usr/bin/c++
-- C++ flags (Release): -Wall -pthread -march=i686 -ffunction-sections -O3 -DNDEBUG -fomit-frame-pointer -msse -msse2 -mfpmath=387 -DNDEBUG\
-- C++ flags (Debug): -Wall -pthread -march=i686 -ffunction-sections -g -O0 -DDEBUG -D_DEBUG -ggdb3
-- Linker flags (Release):
-- Linker flags (Debug):
--
-- GUI:
-- GTK+ 2.x: NO
-- GThread: NO
--
-- Media I/O:
-- ZLib: build
-- JPEG: build
-- PNG: build
-- TIFF: build
-- JPEG 2000: FALSE
-- OpenEXR: NO
-- OpenNI: NO
-- OpenNI PrimeSensor Modules: NO
-- XIMEA: NO
--
-- Video I/O:
-- DC1394 1.x: NO
-- DC1394 2.x: NO
-- FFMPEG: NO
-- codec: NO
-- format: NO
-- util: NO
-- swscale: NO
-- gentoo-style: NO
-- GStreamer: NO
-- UniCap: NO
-- PvAPI: NO
-- V4L/V4L2: FALSE/FALSE
-- Xine: NO
--
-- Other third-party libraries:
-- Use IPP: NO
-- Use TBB: NO
-- Use ThreadingFramework: NO
-- Use Cuda: NO
-- Use Eigen: NO
--
-- Interfaces:
-- Python: NO
-- Python interpreter: /usr/bin/python2.6 -B (ver 2.6)
-- Python numpy: YES
-- Java: NO
--
-- Documentation:
-- Sphinx: /usr/bin/sphinx-build (ver 0.6.6)
-- PdfLaTeX compiler: NO
-- Build Documentation: NO
--
-- Tests and samples:
-- Tests: YES
-- Examples: NO
--
-- Install path: /usr/local
--
-- cvconfig.h is in: /home/ec2-user/OpenCV-2.3.1/release
-- -----------------------------------------------------------------
--
-- Configuring incomplete, errors occurred!
Also when I run the command I also seem to be getting the following error message
CMake Error at CMakeLists.txt:44 (set_property):
set_property given invalid scope CACHE. Valid scopes are GLOBAL,
DIRECTORY, TARGET, SOURCE, TEST.
Line 42-45 is the following:
set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "Configs" FORCE)
if(DEFINED CMAKE_BUILD_TYPE)
set_property( CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS ${CMAKE_CONFIGURATION_TYPES} )
endif()
However I'm not sure what this means? Does aNyone have any pointers?
Many thanks
Check your CMake version. Support for set_property(CACHE ... ) was implemented in 2.8.0.
If upgrading CMake is not an option for you - I guess it's safe to comment line #44. It seems to be used to create values for drop-down list in GUI.
http://www.kitware.com/blog/home/post/82
http://blog.bethcodes.com/cmake-tips-tricks-drop-down-list
I've experienced lots of error building opencv that were caused by the wrong version of OpenCV. I successfully built opencv 3.0 using cmake 3.0 (though cmake 2.6 did not work for me). Then when I found I had to downgrade to opencv 2.4.9 I had to go back to my system's default cmake 2.6, as cmake 3.0 did not work. The first thing to check if you get errors when running cmake in opencv is the version.

Resources