You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#!/bin/bash
# 接收参数 TARGET=$1 CONFIGOPTS=$2
echo -e "\n正在编译和安装 图像编码与转换库(OpenImageIO)……\n"
${SHELLROOT}/utils/begin_stage openimageio oiio*.tar.gz cd ${SHELLROOT}/tempDIR/`echo oiio*.tar.gz | sed 's/\*.*//'`*
echo " * 正在修补 OpenImageIO" cp -vf ${SHELLROOT}/distfiles/oiio-2.2.13.1-compiler.cmake src/cmake/compiler.cmake if CMAKE_BUILD_PARALLEL_LEVEL=$CORE_COUNT CMAKE_PREFIX_PATH=$TARGET make $MAKEOPTS BOOST_HOME=$TARGET ILMBASE_HOME=$TARGET VERBOSE=1 USE_FFMPEG=0 EMBEDPLUGINS=1 USE_OPENGL=0 USE_QT=0 \
USE_GIF=0 USE_OPENJPEG=0 USE_OPENSSL=0 USE_FIELD3D=0 USE_OCIO=0 USE_OPENCV=0 USE_PYTHON=0 BUILD_SHARED_LIBS=0 LINKSTATIC=1 OIIO_BUILD_TOOLS=0 OIIO_BUILD_TESTS=0 STOP_ON_WARNING=0 ; then echo -e "\n * openimageio 编译成功\n" else echo -e "\n !!! openimageio 编译失败\n" exit 1 fi
echo " * 安装 openimageio库和头 文件" sleep 2 if cp -vr dist/linux*/* $TARGET && cd $TARGET/lib && mv -v libOpenImageIO.a libOpenImageIOBase.a && ar -rcT libOpenImageIO.a libOpenImageIOBase.a libpng.a libjpeg.a libtiff.a libHalf.a \
libIex.a libIexMath.a libIlmImf.a libIlmThread.a libImath.a libz.a libbz2.a liblzma.a libfreetype.a ; then echo -e "\n * 图像编码与转换库(OpenImageIO),编译和安装成功\n" else echo -e "\n !!! 图像编码与转换库(OpenImageIO),编译和安装失败\n" exit 1 fi
exit 0
|