text Orfeo Toolbox v6.6.0 PKGBUILD
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text Orfeo Toolbox v6.6.0 PKGBUILD相关的知识,希望对你有一定的参考价值。
# Maintainer: Argyros Argyridis <arargyridis@gmail.com>
# Contributor: Samuel Mesa <samuelmesa@linuxmail.org>
pkgname=orfeo-toolbox
pkgver=6.6.0
_pkgver=6.6
minorver=0
pkgrel=3
pkgdesc="ORFEO Toolbox (OTB) is an open source library of image processing algorithms"
arch=(x86_64 i686)
url="http://www.orfeo-toolbox.org/otb/"
license=('CeCILL')
groups=()
depends=('gdal' 'agg' 'freeglut' 'curl' 'fftw' 'tinyxml' 'muparser' 'fltk' 'python2' 'python' 'openthreads' 'boost'
'hdf5' 'insight-toolkit' 'libkml' 'ossim' 'libsvm' 'mapnik' 'qwt' 'opencv' 'glfw' 'glew' 'gsl' 'openmpi')
makedepends=('boost' 'swig' 'cmake' 'qt5-base')
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=(https://www.orfeo-toolbox.org/packages/OTB-$pkgver.tar.gz
git://github.com/jmichel-otb/GKSVM.git)
noextract=()
md5sums=('0c5cf6ab4d41db83489eb2dd05a833b1'
'SKIP')
_gitname="GKSVM"
prepare() {
## Module for monteverdi build
cd $srcdir/
cp -ra $srcdir/GKSVM $srcdir/OTB-release-$_pkgver/Modules/Remote
}
build() {
cd $srcdir/
msg "Extracting archive..."
msg "starting make..."
if [ -d "$srcdir/build/" ]; then
rm -rf $srcdir/build/
fi
mkdir $srcdir/build/
cd $srcdir/build
cmake ../OTB-release-$_pkgver \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS="$CXXFLAGS -fPIC" \
-DCMAKE_C_FLAGS="$CFLAGS -fPIC" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DOTB_USE_CURL=ON \
-DBUILD_EXAMPLES=OFF \
-DBUILD_TESTING=OFF \
-DOTB_WRAP_PYTHON3=ON \
-DOTB_WRAP_PYTHON=ON \
-DPYTHON_EXECUTABLE=/usr/bin/python2 \
-DPYTHON_LIBRARY=/usr/lib/libpython2.7.so \
-DPYTHON_INCLUDE_DIR=/usr/include/python2.7/ \
-DOTB_INSTALL_PYTHON_DIR=/usr/lib/python2.7/site-packages/ \
-DPYTHON3_EXECUTABLE=/usr/bin/python3 \
-DPYTHON3_LIBRARY=/usr/lib/libpython3.7m.so \
-DPYTHON3_LIBRARY_RELEASE=/usr/lib/libpython3.7m.so \
-DPYTHON3_INCLUDE_DIR=/usr/include/python3.7m \
-DITK_DIR=/usr/lib64/cmake/ITK-4.13 \
-DBUILD_SHARED_LIBS=ON \
-DOTB_USE_QT=ON \
-DOTB_USE_GLFW=ON \
-DOTB_USE_GLEW=ON \
-DOTB_USE_GLUT=ON \
-DOTB_USE_GSL=ON \
-DOTB_USE_MPI=ON \
-DOTB_USE_QWT=ON \
-DOTB_USE_SHARK=OFF \
-DOTB_USE_MAPNIK=OFF \
-DOTB_USE_MUPARSERX=OFF \
-DOTB_USE_SPTW=ON \
-DOTB_USE_OPENCV=ON \
-DOTB_USE_OPENGL=ON \
-DOTB_USE_MUPARSER=ON \
-DOTB_USE_LIBKML=ON \
-DOTB_USE_LIBSVM=ON \
-DModule_Mosaic=OFF \
-DModule_OTBTIFF=ON \
-DModule_OTBGKSVM=ON \
-DModule_OTBTemporalGapFilling=ON \
-DOTB_DATA_USE_LARGEINPUT=ON
make
}
package() {
# Install an ldconfig conf for Orfeo libs to be visible on the
# system. Arch runs `ldconfig' after install automatically:
echo "/usr/lib/otb
/usr/lib/otb/applications" > "${srcdir}/${pkgname}.conf"
install -D -m644 "${srcdir}/${pkgname}.conf" "${pkgdir}/etc/ld.so.conf.d/${pkgname}.conf"
cd "$srcdir/"build
make DESTDIR="$pkgdir" install
}
以上是关于text Orfeo Toolbox v6.6.0 PKGBUILD的主要内容,如果未能解决你的问题,请参考以下文章
Node.js v6.6.0 (Current) 发布,大幅度更新
text 在Ubuntu上安装Jetbrains Toolbox
Docker Toolbox-centos:7.2.1511-docker (环境:win10-家庭版-Docker Toolbox)