提交 ea7a8ae6 编写于 作者: G gineshidalgo99

Fixed Mac issues

上级 bcbf3492
......@@ -21,6 +21,9 @@ cmake_minimum_required(VERSION 2.8.7 FATAL_ERROR) # min. cmake version recommend
### Extra functionality
include(cmake/Utils.cmake)
if (NOT WIN32 AND NOT UNIX AND NOT APPLE)
message(FATAL_ERROR "Unsupported operating system. Only Windows, Mac and Unix systems supported.")
endif (NOT WIN32 AND NOT UNIX AND NOT APPLE)
### FLAGS
......@@ -204,13 +207,13 @@ endif (UNIX AND NOT APPLE)
option(WITH_FLIR_CAMERA "Add FLIR (formerly Point Grey) camera code (requires Spinnaker SDK already installed)." OFF)
# Set the acceleration library
if (WIN32)
if (WIN32 OR APPLE)
set(WITH_EIGEN NONE CACHE STRING "Select the Eigen mode (NONE if not required or DOWNLOAD to let OpenPose download it).")
set_property(CACHE WITH_EIGEN PROPERTY STRINGS NONE BUILD)
elseif (UNIX AND NOT APPLE)
set(WITH_EIGEN NONE CACHE STRING "Select the Eigen mode (NONE if not required, APT_GET if you used `sudo apt-get install libeigen3-dev`, BUILD to let OpenPose download it).")
set_property(CACHE WITH_EIGEN PROPERTY STRINGS NONE APT_GET BUILD)
endif (WIN32)
endif (WIN32 OR APPLE)
# # Suboptions for OpenPose tracking
# if (UNIX AND NOT APPLE)
......
......@@ -27,6 +27,8 @@ OpenPose - Installation
## Windows Portable Demo
This installation section is only intended if you plan to modify the OpenPose code or integrate it with another library or project. If you just want to use the OpenPose demo in Windows, simply use the latest version of the OpenPose binaries which you can find in the [Releases](https://github.com/CMU-Perceptual-Computing-Lab/openpose/releases) section.
**NOTE**: Read the `Instructions.txt` to learn to download the models required by OpenPose (about 500 Mb).
## Operating Systems
......
#include <fstream>
#include <numeric> // std::accumulate
#include <opencv2/core/core.hpp>
#ifdef WITH_EIGEN
#include <Eigen/Dense>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册