先下载
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"
网友评论