1. 准备工具

clang与cmake

macOS编译开源全景拼接库OpenPano_git

如果要处理png文件要下载安装libjpeg 

macOS编译开源全景拼接库OpenPano_下载安装_02

安装相当依赖:

brew install gnu-sed

macOS编译开源全景拼接库OpenPano_git_03

brew install libjpeg

macOS编译开源全景拼接库OpenPano_git_04

brew install eigen

macOS编译开源全景拼接库OpenPano_git_05

brew install libomp

macOS编译开源全景拼接库OpenPano_git_06

 

 2.克隆源码

git clone --recursive https://github.com/ppwwyyxx/OpenPano.git

macOS编译开源全景拼接库OpenPano_github_07

macOS编译开源全景拼接库OpenPano_github_08

3.编译

mkdir build
cd build
cmake ..
make

创建编译目录build并进入build

然后cmake .. 开始生成makefile

最后make进行编译

macOS编译开源全景拼接库OpenPano_下载安装_09

编译中...

macOS编译开源全景拼接库OpenPano_macos_10

 

找不到omp.h

macOS编译开源全景拼接库OpenPano_github_11

 查找 omp.h

macOS编译开源全景拼接库OpenPano_git_12

复制到src目录中

macOS编译开源全景拼接库OpenPano_下载安装_13

 

symbol(s) not found for architecture x86_64

 

macOS编译开源全景拼接库OpenPano_下载安装_14

出错原因:

macOS编译开源全景拼接库OpenPano_github_15

 

clang: error: unsupported option '-fopenmp' · Issue #16 · ppwwyyxx/OpenPano · GitHub