linux 编译安装libgdiplus库

libgdiplus官网地址:https://download.mono-project.com/sources/libgdiplus/

[root@localhost ~]# mkdir -p  /usr/local/libgdiplus/sbin
[root@localhost ~]# cd /usr/local/libgdiplus
[root@localhost libgdiplus]# yum install wget -y
[root@localhost libgdiplus]# wget https://download.mono-project.com/sources/libgdiplus/libgdiplus0-6.0.5.tar.gz
[root@localhost libgdiplus]# ls
libgdiplus0-6.0.5.tar.gz  libgdiplus-6.1.tar.gz  sbin
[root@localhost libgdiplus]# tar -xzvf  libgdiplus0-6.0.5.tar.gz
[root@localhost libgdiplus]# ls
libgdiplus0-6.0.5.tar.gz  libgdiplus-6.0.5  libgdiplus-6.1.tar.gz  sbin
[root@localhost libgdiplus]# cd libgdiplus-6.0.5
[root@localhost libgdiplus-6.0.5]# ls
aclocal.m4  ChangeLog  config.guess  config.sub  configure.ac  depcomp  install-sh           libgdiplus.pc.in  LICENSE    m4           Makefile.in  NEWS       src          tests  winconfig.h.in
AUTHORS     compile    config.h.in   configure   COPYING       INSTALL  libgdiplus0.spec.in  libgdiplus.sln    ltmain.sh  Makefile.am  missing      README.md  test-driver  TODO
[root@localhost libgdiplus-6.0.5]#  yum install cairo-devel libjpeg-turbo-devel libpng-devel giflib-devel libtiff-devel libexif-devel  freetype-devel fontconfig libXft-devel autoconf automake libtool  glib2-devel -y
[root@localhost libgdiplus-6.0.5]# ./configure --prefix=/usr/local/libgdiplus/sbin
[root@localhost libgdiplus-6.0.5]# make & make install
[root@localhost libgdiplus-6.0.5]# cd ..
[root@localhost libgdiplus]# ls
libgdiplus0-6.0.5.tar.gz  libgdiplus-6.0.5  libgdiplus-6.1.tar.gz  sbin
[root@localhost libgdiplus]# cd sbin/
[root@localhost sbin]# ls
lib
[root@localhost sbin]# cd lib/
[root@localhost lib]# ls
libgdiplus.a  libgdiplus.la  libgdiplus.so  libgdiplus.so.0  libgdiplus.so.0.0.0  pkgconfig      #编译成功

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值