ImageMagick 硬件加速opencl编译脚本

先下载

yum install "libtool-ltdl"

IM_CFG_FLAGS=

IM_CFLAGS=

IM_LDFLAGS=

IM_CFG_FLAGS="$IM_CFG_FLAGS --with-quantum-depth=8"

IM_CFG_FLAGS="$IM_CFG_FLAGS --with-modules=yes"

IM_CFG_FLAGS="$IM_CFG_FLAGS --with-ltdl=yes"

IM_CFG_FLAGS="$IM_CFG_FLAGS --enable-opencl"

IM_CFG_FLAGS="$IM_CFG_FLAGS LIBS=-lltdl"

IM_CFLAGS="$IM_CFLAGS -I/usr/local/cuda/include"

IM_CFLAGS="$IM_CFLAGS -I/usr/share/libtool/libltdl"

IM_LDFLAGS="$IM_LDFLAGS -L/usr/local/cuda/lib64"

IM_LDFLAGS="$IM_LDFLAGS -L/usr/lib64"

./configure \

$IM_CFG_FLAGS \

CPPFLAGS="$IM_CFLAGS" \

LDFLAGS="$IM_LDFLAGS" \

--prefix="/usr/local/ImageMagick6"

你可能感兴趣的:(ImageMagick 硬件加速opencl编译脚本)