赞
踩
最近有用户用到麒麟v10服务器系统,还是和之前一样libgdiplus不好用,调用绘图报gdi错误。为此自己安装了个v10的虚拟机编译libgdiplus。整个编译如下:
[BEGIN] 2023/6/13 11:04:43 [root@localhost giflib-code]# yum install xmlto 上次元数据过期检查:0:00:58 前,执行于 2023年06月13日 星期二 11时03分56秒。 软件包 xmlto-0.0.28-13.ky10.x86_64 已安装。 依赖关系解决。 无需任何处理。 完毕! [root@localhost giflib-code]# make make: ./getversion: 权限不够 make -C doc make[1]: 进入目录“/源码/giflib-code/doc” make[1]: 对“all”无需做任何事。 make[1]: 离开目录“/源码/giflib-code/doc” [root@localhost giflib-code]# make clean make: ./getversion: 权限不够 rm -f gif2rgb gifbuild giffix giftext giftool gifclrmp gifbg gifcolor gifecho giffilter gifhisto gifinto gifsponge gifwedge libgetarg.a libgif.a libgif.so libutil.a libutil.so *.o rm -f libgif.so.7.2.0 rm -f libgif.so.7 rm -fr doc/*.1 *.html doc/staging [root@localhost giflib-code]# make make: ./getversion: 权限不够 cc -std=gnu99 -fPIC -Wall -Wno-format-truncation -O2 -c -o dgif_lib.o dgif_lib.c cc -std=gnu99 -fPIC -Wall -Wno-format-truncation -O2 -c -o egif_lib.o egif_lib.c cc -std=gnu99 -fPIC -Wall -Wno-format-truncation -O2 -c -o gifalloc.o gifalloc.c cc -std=gnu99 -fPIC -Wall -Wno-format-truncation -O2 -c -o gif_err.o gif_err.c cc -std=gnu99 -fPIC -Wall -Wno-format-truncation -O2 -c -o gif_font.o gif_font.c cc -std=gnu99 -fPIC -Wall -Wno-format-truncation -O2 -c -o gif_hash.o gif_hash.c cc -std=gnu99 -fPIC -Wall -Wno-format-truncation -O2 -c -o openbsd-reallocarray.o openbsd-reallocarray.c cc -std=gnu99 -fPIC -Wall -Wno-format-truncation -O2 -shared -Wl,-soname -Wl,libgif.so.7 -o libgif.so dgif_lib.o egif_lib.o gifalloc.o gif_err.o gif_font.o gif_hash.o openbsd-reallocarray.o ar rcs libgif.a dgif_lib.o egif_lib.o gifalloc.o gif_err.o gif_font.o gif_hash.o openbsd-reallocarray.o cc -std=gnu99 -fPIC -Wall -Wno-format-truncation -O2 -c -o qprintf.o qprintf.c cc -std=gnu99 -fPIC -Wall -Wno-format-truncation -O2 -c -o quantize.o quantize.c cc -std=gnu99 -fPIC -Wall -Wno-format-truncation -O2 -c -o getarg.o getarg.c cc -std=gnu99 -fPIC -Wall -Wno-format-truncation -O2 -shared -Wl,-soname -Wl,libutil.so.7 -o libutil.so qprintf.o quantize.o getarg.o ar rcs libutil.a qprintf.o quantize.o getarg.o cc -std=gnu99 -fPIC -Wall -Wno-format-truncation -O2 gif2rgb.c libgif.a libutil.a libgif.a -lm -o gif2rgb cc -std=gnu99 -fPIC -Wall -Wno-format-truncation -O2 gifbuild.c libgif.a libutil.a libgif.a -lm -o gifbuild cc -std=gnu99 -fPIC -Wall -Wno-format-truncation -O2 giffix.c libgif.a libutil.a libgif.a -lm -o giffix cc -std=gnu99 -fPIC -Wall -Wno-format-truncation -O2 giftext.c libgif.a libutil.a libgif.a -lm -o giftext cc -std=gnu99 -fPIC -Wall -Wno-format-truncation -O2 giftool.c libgif.a libutil.a libgif.a -lm -o giftool cc -std=gnu99 -fPIC -Wall -Wno-format-truncation -O2 gifclrmp.c libgif.a libutil.a libgif.a -lm -o gifclrmp cc -std=gnu99 -fPIC -Wall -Wno-format-truncation -O2 gifbg.c libgif.a libutil.a libgif.a -lm -o gifbg cc -std=gnu99 -fPIC -Wall -Wno-format-truncation -O2 gifcolor.c libgif.a libutil.a libgif.a -lm -o gifcolor cc -std=gnu99 -fPIC -Wall -Wno-format-truncation -O2 gifecho.c libgif.a libutil.a libgif.a -lm -o gifecho cc -std=gnu99 -fPIC -Wall -Wno-format-truncation -O2 giffilter.c libgif.a libutil.a libgif.a -lm -o giffilter cc -std=gnu99 -fPIC -Wall -Wno-format-truncation -O2 gifhisto.c libgif.a libutil.a libgif.a -lm -o gifhisto cc -std=gnu99 -fPIC -Wall -Wno-format-truncation -O2 gifinto.c libgif.a libutil.a libgif.a -lm -o gifinto cc -std=gnu99 -fPIC -Wall -Wno-format-truncation -O2 gifsponge.c libgif.a libutil.a libgif.a -lm -o gifsponge cc -std=gnu99 -fPIC -Wall -Wno-format-truncation -O2 gifwedge.c libgif.a libutil.a libgif.a -lm -o gifwedge make -C doc make[1]: 进入目录“/源码/giflib-code/doc” xmlto man gif2rgb.xml Note: Writing gif2rgb.1 xmlto man gifbuild.xml Note: Writing gifbuild.1 xmlto man gifclrmp.xml Note: Writing gifclrmp.1 xmlto man gifecho.xml Note: Writing gifecho.1 xmlto man giffix.xml Note: Writing giffix.1 xmlto man gifinto.xml Note: Writing gifinto.1 xmlto man giflib.xml Note: Writing giflib.1 xmlto man giftext.xml Note: Writing giftext.1 xmlto man giftool.xml Note: Writing giftool.1 xmlto man gifbg.xml Note: Writing gifbg.1 xmlto man gifcolor.xml Note: Writing gifcolor.1 xmlto man gifhisto.xml Note: Writing gifhisto.1 xmlto man gifwedge.xml Note: Writing gifwedge.1 make[1]: 离开目录“/源码/giflib-code/doc” [root@localhost giflib-code]# make install make: ./getversion: 权限不够 make -C doc make[1]: 进入目录“/源码/giflib-code/doc” make[1]: 对“all”无需做任何事。 make[1]: 离开目录“/源码/giflib-code/doc” install -d "/usr/local/bin" install gif2rgb gifbuild giffix giftext giftool gifclrmp "/usr/local/bin" install -d "/usr/local/include" install -m 644 gif_lib.h "/usr/local/include" install -d "/usr/local/lib" install -m 644 libgif.a "/usr/local/lib/libgif.a" install -m 755 libgif.so "/usr/local/lib/libgif.so.7.2.0" ln -sf libgif.so.7.2.0 "/usr/local/lib/libgif.so.7" ln -sf libgif.so.7 "/usr/local/lib/libgif.so" install -d "/usr/local/share/man/man1" install -m 644 doc/*.1 "/usr/local/share/man/man1" [root@localhost giflib-code]# yum -y install gcc automake autoconf libtool make 上次元数据过期检查:0:02:00 前,执行于 2023年06月13日 星期二 11时03分56秒。 软件包 gcc-7.3.0-20220207.45.ky10.x86_64 已安装。 软件包 automake-1.16.2-2.ky10.noarch 已安装。 软件包 autoconf-2.69-30.ky10.noarch 已安装。 软件包 libtool-2.4.6-33.ky10.x86_64 已安装。 软件包 make-1:4.3-1.ky10.x86_64 已安装。 依赖关系解决。 ================================================================================================================================================================================================================================ Package Architecture Version Repository Size ================================================================================================================================================================================================================================ 升级: cpp x86_64 7.3.0-20220207.45.p01.ky10 ks10-adv-updates 8.1 M gcc x86_64 7.3.0-20220207.45.p01.ky10 ks10-adv-updates 13 M libgomp x86_64 7.3.0-20220207.45.p01.ky10 ks10-adv-updates 129 k 安装依赖关系: libasan x86_64 7.3.0-20220207.45.p01.ky10 ks10-adv-updates 366 k libatomic x86_64 7.3.0-20220207.45.p01.ky10 ks10-adv-updates 17 k libubsan x86_64 7.3.0-20220207.45.p01.ky10 ks10-adv-updates 130 k 事务概要 ================================================================================================================================================================================================================================ 安装 3 软件包 升级 3 软件包 总下载:22 M 下载软件包: (1/6): libatomic-7.3.0-20220207.45.p01.ky10.x86_64.rpm 270 kB/s | 17 kB 00:00 (2/6): libasan-7.3.0-20220207.45.p01.ky10.x86_64.rpm 2.7 MB/s | 366 kB 00:00 (3/6): libubsan-7.3.0-20220207.45.p01.ky10.x86_64.rpm 838 kB/s | 130 kB 00:00 (4/6): libgomp-7.3.0-20220207.45.p01.ky10.x86_64.rpm 1.1 MB/s | 129 kB 00:00 (5/6): cpp-7.3.0-20220207.45.p01.ky10.x86_64.rpm 651 kB/s | 8.1 MB 00:12 (6/6): gcc-7.3.0-20220207.45.p01.ky10.x86_64.rpm 766 kB/s | 13 MB 00:17 -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 总计 1.2 MB/s | 22 MB 00:17 运行事务检查 事务检查成功。 运行事务测试 事务测试成功。 运行事务 准备中 : 1/1 升级 : libgomp-7.3.0-20220207.45.p01.ky10.x86_64 1/9 运行脚本: libgomp-7.3.0-20220207.45.p01.ky10.x86_64 1/9 升级 : cpp-7.3.0-20220207.45.p01.ky10.x86_64 2/9 运行脚本: cpp-7.3.0-20220207.45.p01.ky10.x86_64 2/9 安装 : libubsan-7.3.0-20220207.45.p01.ky10.x86_64 3/9 安装 : libatomic-7.3.0-20220207.45.p01.ky10.x86_64 4/9 安装 : libasan-7.3.0-20220207.45.p01.ky10.x86_64 5/9 升级 : gcc-7.3.0-20220207.45.p01.ky10.x86_64 6/9 运行脚本: gcc-7.3.0-20220207.45.p01.ky10.x86_64 6/9 运行脚本: gcc-7.3.0-20220207.45.ky10.x86_64 7/9 清理 : gcc-7.3.0-20220207.45.ky10.x86_64 7/9 运行脚本: cpp-7.3.0-20220207.45.ky10.x86_64 8/9 清理 : cpp-7.3.0-20220207.45.ky10.x86_64 8/9 运行脚本: libgomp-7.3.0-20220207.45.ky10.x86_64 9/9 清理 : libgomp-7.3.0-20220207.45.ky10.x86_64 9/9 运行脚本: libgomp-7.3.0-20220207.45.ky10.x86_64 9/9 验证 : libasan-7.3.0-20220207.45.p01.ky10.x86_64 1/9 验证 : libatomic-7.3.0-20220207.45.p01.ky10.x86_64 2/9 验证 : libubsan-7.3.0-20220207.45.p01.ky10.x86_64 3/9 验证 : cpp-7.3.0-20220207.45.p01.ky10.x86_64 4/9 验证 : cpp-7.3.0-20220207.45.ky10.x86_64 5/9 验证 : gcc-7.3.0-20220207.45.p01.ky10.x86_64 6/9 验证 : gcc-7.3.0-20220207.45.ky10.x86_64 7/9 验证 : libgomp-7.3.0-20220207.45.p01.ky10.x86_64 8/9 验证 : libgomp-7.3.0-20220207.45.ky10.x86_64 9/9 已升级: cpp-7.3.0-20220207.45.p01.ky10.x86_64 gcc-7.3.0-20220207.45.p01.ky10.x86_64 libgomp-7.3.0-20220207.45.p01.ky10.x86_64 已安装: libasan-7.3.0-20220207.45.p01.ky10.x86_64 libatomic-7.3.0-20220207.45.p01.ky10.x86_64 libubsan-7.3.0-20220207.45.p01.ky10.x86_64 完毕! [root@localhost giflib-code]# yum -y install gcc-c++ 上次元数据过期检查:0:07:19 前,执行于 2023年06月13日 星期二 11时03分56秒。 依赖关系解决。 ================================================================================================================================================================================================================================ Package Architecture Version Repository Size ================================================================================================================================================================================================================================ 安装: gcc-c++ x86_64 7.3.0-20220207.45.p01.ky10 ks10-adv-updates 8.8 M 升级: libstdc++ x86_64 7.3.0-20220207.45.p01.ky10 ks10-adv-updates 401 k 安装依赖关系: libstdc++-devel x86_64 7.3.0-20220207.45.p01.ky10 ks10-adv-updates 1.1 M 事务概要 ================================================================================================================================================================================================================================ 安装 2 软件包 升级 1 软件包 总下载:10 M 下载软件包: (1/3): libstdc++-7.3.0-20220207.45.p01.ky10.x86_64.rpm 2.0 MB/s | 401 kB 00:00 (2/3): libstdc++-devel-7.3.0-20220207.45.p01.ky10.x86_64.rpm 2.0 MB/s | 1.1 MB 00:00 (3/3): gcc-c++-7.3.0-20220207.45.p01.ky10.x86_64.rpm 896 kB/s | 8.8 MB 00:10 -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 总计 1.0 MB/s | 10 MB 00:10 运行事务检查 事务检查成功。 运行事务测试 事务测试成功。 运行事务 准备中 : 1/1 升级 : libstdc++-7.3.0-20220207.45.p01.ky10.x86_64 1/4 运行脚本: libstdc++-7.3.0-20220207.45.p01.ky10.x86_64 1/4 安装 : libstdc++-devel-7.3.0-20220207.45.p01.ky10.x86_64 2/4 安装 : gcc-c++-7.3.0-20220207.45.p01.ky10.x86_64 3/4 清理 : libstdc++-7.3.0-20220207.45.ky10.x86_64 4/4 运行脚本: libstdc++-7.3.0-20220207.45.ky10.x86_64 4/4 验证 : gcc-c++-7.3.0-20220207.45.p01.ky10.x86_64 1/4 验证 : libstdc++-devel-7.3.0-20220207.45.p01.ky10.x86_64 2/4 验证 : libstdc++-7.3.0-20220207.45.p01.ky10.x86_64 3/4 验证 : libstdc++-7.3.0-20220207.45.ky10.x86_64 4/4 已升级: libstdc++-7.3.0-20220207.45.p01.ky10.x86_64 已安装: gcc-c++-7.3.0-20220207.45.p01.ky10.x86_64 libstdc++-devel-7.3.0-20220207.45.p01.ky10.x86_64 完毕! [root@localhost giflib-code]# yum -y install zlib zlib-devel openssl openssl-devel pcre pcre-devel 上次元数据过期检查:0:07:46 前,执行于 2023年06月13日 星期二 11时03分56秒。 软件包 zlib-1.2.11-18.ky10.x86_64 已安装。 软件包 zlib-devel-1.2.11-18.ky10.x86_64 已安装。 软件包 openssl-1:1.1.1f-15.p05.ky10.x86_64 已安装。 软件包 openssl-devel-1:1.1.1f-15.p05.ky10.x86_64 已安装。 软件包 pcre-8.44-2.ky10.x86_64 已安装。 软件包 pcre-devel-8.44-2.ky10.x86_64 已安装。 依赖关系解决。 ================================================================================================================================================================================================================================ Package Architecture Version Repository Size ================================================================================================================================================================================================================================ 升级: minizip x86_64 1.2.11-22.ky10 ks10-adv-updates 27 k openssl x86_64 1:1.1.1f-15.p08.ky10 ks10-adv-updates 441 k openssl-devel x86_64 1:1.1.1f-15.p08.ky10 ks10-adv-updates 1.8 M openssl-help noarch 1:1.1.1f-15.p08.ky10 ks10-adv-updates 3.1 M openssl-libs x86_64 1:1.1.1f-15.p08.ky10 ks10-adv-updates 1.4 M openssl-perl x86_64 1:1.1.1f-15.p08.ky10 ks10-adv-updates 16 k zlib x86_64 1.2.11-22.ky10 ks10-adv-updates 87 k zlib-devel x86_64 1.2.11-22.ky10 ks10-adv-updates 88 k 事务概要 ================================================================================================================================================================================================================================ 升级 8 软件包 总下载:6.9 M 下载软件包: (1/8): minizip-1.2.11-22.ky10.x86_64.rpm 168 kB/s | 27 kB 00:00 (2/8): openssl-1.1.1f-15.p08.ky10.x86_64.rpm 1.7 MB/s | 441 kB 00:00 (3/8): openssl-libs-1.1.1f-15.p08.ky10.x86_64.rpm 336 kB/s | 1.4 MB 00:04 (4/8): openssl-perl-1.1.1f-15.p08.ky10.x86_64.rpm 247 kB/s | 16 kB 00:00 (5/8): zlib-1.2.11-22.ky10.x86_64.rpm 1.0 MB/s | 87 kB 00:00 (6/8): zlib-devel-1.2.11-22.ky10.x86_64.rpm 1.6 MB/s | 88 kB 00:00 (7/8): openssl-devel-1.1.1f-15.p08.ky10.x86_64.rpm 369 kB/s | 1.8 MB 00:04 (8/8): openssl-help-1.1.1f-15.p08.ky10.noarch.rpm 452 kB/s | 3.1 MB 00:07 -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 总计 973 kB/s | 6.9 MB 00:07 运行事务检查 事务检查成功。 运行事务测试 事务测试成功。 运行事务 准备中 : 1/1 升级 : zlib-1.2.11-22.ky10.x86_64 1/16 升级 : openssl-libs-1:1.1.1f-15.p08.ky10.x86_64 2/16 运行脚本: openssl-libs-1:1.1.1f-15.p08.ky10.x86_64 2/16 升级 : zlib-devel-1.2.11-22.ky10.x86_64 3/16 升级 : openssl-help-1:1.1.1f-15.p08.ky10.noarch 4/16 升级 : openssl-1:1.1.1f-15.p08.ky10.x86_64 5/16 升级 : openssl-perl-1:1.1.1f-15.p08.ky10.x86_64 6/16 升级 : openssl-devel-1:1.1.1f-15.p08.ky10.x86_64 7/16 升级 : minizip-1.2.11-22.ky10.x86_64 8/16 清理 : openssl-devel-1:1.1.1f-15.p05.ky10.x86_64 9/16 清理 : minizip-1.2.11-18.ky10.x86_64 10/16 清理 : zlib-devel-1.2.11-18.ky10.x86_64 11/16 清理 : openssl-perl-1:1.1.1f-15.p05.ky10.x86_64 12/16 清理 : openssl-1:1.1.1f-15.p05.ky10.x86_64 13/16 清理 : openssl-help-1:1.1.1f-15.p05.ky10.noarch 14/16 清理 : openssl-libs-1:1.1.1f-15.p05.ky10.x86_64 15/16 运行脚本: openssl-libs-1:1.1.1f-15.p05.ky10.x86_64 15/16 清理 : zlib-1.2.11-18.ky10.x86_64 16/16 运行脚本: zlib-1.2.11-18.ky10.x86_64 16/16 验证 : minizip-1.2.11-22.ky10.x86_64 1/16 验证 : minizip-1.2.11-18.ky10.x86_64 2/16 验证 : openssl-1:1.1.1f-15.p08.ky10.x86_64 3/16 验证 : openssl-1:1.1.1f-15.p05.ky10.x86_64 4/16 验证 : openssl-devel-1:1.1.1f-15.p08.ky10.x86_64 5/16 验证 : openssl-devel-1:1.1.1f-15.p05.ky10.x86_64 6/16 验证 : openssl-help-1:1.1.1f-15.p08.ky10.noarch 7/16 验证 : openssl-help-1:1.1.1f-15.p05.ky10.noarch 8/16 验证 : openssl-libs-1:1.1.1f-15.p08.ky10.x86_64 9/16 验证 : openssl-libs-1:1.1.1f-15.p05.ky10.x86_64 10/16 验证 : openssl-perl-1:1.1.1f-15.p08.ky10.x86_64 11/16 验证 : openssl-perl-1:1.1.1f-15.p05.ky10.x86_64 12/16 验证 : zlib-1.2.11-22.ky10.x86_64 13/16 验证 : zlib-1.2.11-18.ky10.x86_64 14/16 验证 : zlib-devel-1.2.11-22.ky10.x86_64 15/16 验证 : zlib-devel-1.2.11-18.ky10.x86_64 16/16 已升级: minizip-1.2.11-22.ky10.x86_64 openssl-1:1.1.1f-15.p08.ky10.x86_64 openssl-devel-1:1.1.1f-15.p08.ky10.x86_64 openssl-help-1:1.1.1f-15.p08.ky10.noarch openssl-libs-1:1.1.1f-15.p08.ky10.x86_64 openssl-perl-1:1.1.1f-15.p08.ky10.x86_64 zlib-1.2.11-22.ky10.x86_64 zlib-devel-1.2.11-22.ky10.x86_64 完毕! [root@localhost giflib-code]# yum install -y autoconf automake libtool 上次元数据过期检查:0:08:25 前,执行于 2023年06月13日 星期二 11时03分56秒。 软件包 autoconf-2.69-30.ky10.noarch 已安装。 软件包 automake-1.16.2-2.ky10.noarch 已安装。 软件包 libtool-2.4.6-33.ky10.x86_64 已安装。 依赖关系解决。 无需任何处理。 完毕! [root@localhost giflib-code]# yum install -y freetype-devel fontconfig libXft-devel 上次元数据过期检查:0:08:36 前,执行于 2023年06月13日 星期二 11时03分56秒。 软件包 freetype-devel-2.10.2-3.ky10.x86_64 已安装。 软件包 fontconfig-2.13.92-1.ky10.x86_64 已安装。 软件包 libXft-devel-2.3.3-1.ky10.x86_64 已安装。 依赖关系解决。 无需任何处理。 完毕! [root@localhost giflib-code]# yum install -y libjpeg-turbo-devel libpng-devel giflib-devel libtiff-devel libexif-devel 上次元数据过期检查:0:08:45 前,执行于 2023年06月13日 星期二 11时03分56秒。 软件包 libpng-devel-2:1.6.37-1.ky10.x86_64 已安装。 软件包 libtiff-devel-4.3.0-4.ky10.x86_64 已安装。 依赖关系解决。 ================================================================================================================================================================================================================================ Package Architecture Version Repository Size ================================================================================================================================================================================================================================ 安装: giflib-devel x86_64 5.2.1-3.ky10 ks10-adv-updates 199 k libexif-devel x86_64 0.6.21-23.ky10 ks10-adv-os 93 k libjpeg-turbo-devel x86_64 2.0.5-3.ky10 ks10-adv-os 115 k 升级: giflib x86_64 5.2.1-3.ky10 ks10-adv-updates 44 k 事务概要 ================================================================================================================================================================================================================================ 安装 3 软件包 升级 1 软件包 总下载:451 k 下载软件包: (1/4): libjpeg-turbo-devel-2.0.5-3.ky10.x86_64.rpm 2.0 MB/s | 115 kB 00:00 (2/4): giflib-5.2.1-3.ky10.x86_64.rpm 1.9 MB/s | 44 kB 00:00 (3/4): libexif-devel-0.6.21-23.ky10.x86_64.rpm 1.1 MB/s | 93 kB 00:00 (4/4): giflib-devel-5.2.1-3.ky10.x86_64.rpm 1.7 MB/s | 199 kB 00:00 -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 总计 3.6 MB/s | 451 kB 00:00 运行事务检查 事务检查成功。 运行事务测试 事务测试成功。 运行事务 准备中 : 1/1 升级 : giflib-5.2.1-3.ky10.x86_64 1/5 安装 : giflib-devel-5.2.1-3.ky10.x86_64 2/5 安装 : libjpeg-turbo-devel-2.0.5-3.ky10.x86_64 3/5 安装 : libexif-devel-0.6.21-23.ky10.x86_64 4/5 清理 : giflib-5.2.1-2.ky10.x86_64 5/5 运行脚本: giflib-5.2.1-2.ky10.x86_64 5/5 验证 : libexif-devel-0.6.21-23.ky10.x86_64 1/5 验证 : libjpeg-turbo-devel-2.0.5-3.ky10.x86_64 2/5 验证 : giflib-devel-5.2.1-3.ky10.x86_64 3/5 验证 : giflib-5.2.1-3.ky10.x86_64 4/5 验证 : giflib-5.2.1-2.ky10.x86_64 5/5 已升级: giflib-5.2.1-3.ky10.x86_64 已安装: giflib-devel-5.2.1-3.ky10.x86_64 libexif-devel-0.6.21-23.ky10.x86_64 libjpeg-turbo-devel-2.0.5-3.ky10.x86_64 完毕! [root@localhost giflib-code]# yum install -y glib2-devel cairo-devel 上次元数据过期检查:0:08:56 前,执行于 2023年06月13日 星期二 11时03分56秒。 软件包 glib2-devel-2.66.8-5.p01.ky10.x86_64 已安装。 软件包 cairo-devel-1.16.0-4.ky10.x86_64 已安装。 依赖关系解决。 无需任何处理。 完毕! [root@localhost giflib-code]# yum install -y pango-devel 上次元数据过期检查:0:09:05 前,执行于 2023年06月13日 星期二 11时03分56秒。 软件包 pango-devel-1.43.0-3.ky10.x86_64 已安装。 依赖关系解决。 无需任何处理。 完毕! [root@localhost giflib-code]# yum install giflib 上次元数据过期检查:0:09:13 前,执行于 2023年06月13日 星期二 11时03分56秒。 软件包 giflib-5.2.1-3.ky10.x86_64 已安装。 依赖关系解决。 无需任何处理。 完毕! [root@localhost giflib-code]# yum install libexif 上次元数据过期检查:0:09:21 前,执行于 2023年06月13日 星期二 11时03分56秒。 软件包 libexif-0.6.21-23.ky10.x86_64 已安装。 依赖关系解决。 无需任何处理。 完毕! [root@localhost giflib-code]# cd .. [root@localhost 源码]# cd gdiplus/ [root@localhost gdiplus]# ls install.sh libgdiplus libgdiplus-2.10-10.el7.x86_64.rpm [root@localhost gdiplus]# cd libgdiplus [root@localhost libgdiplus]# ls aclocal.m4 autom4te.cache config.guess config.log configure depcomp INSTALL libgdiplus0.spec.in libgdiplus.sln ltmain.sh Makefile.am NEWS stamp-h1 TODO AUTHORS ChangeLog config.h config.status configure.ac docs install-sh libgdiplus.pc libtool m4 Makefile.in README.md test-driver update_submodules.sh autogen.sh CODE-OF-CONDUCT.md config.h.in config.sub COPYING external libgdiplus0.spec libgdiplus.pc.in LICENSE Makefile missing src tests winconfig.h.in [root@localhost libgdiplus]# chmod +x autogen.sh [root@localhost libgdiplus]# chmod +x configure [root@localhost libgdiplus]# ./autogen.sh --with-pango Running libtoolize... libtoolize: putting auxiliary files in '.'. libtoolize: copying file './ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. libtoolize: copying file 'm4/libtool.m4' libtoolize: copying file 'm4/ltoptions.m4' libtoolize: copying file 'm4/ltsugar.m4' libtoolize: copying file 'm4/ltversion.m4' libtoolize: copying file 'm4/lt~obsolete.m4' Running aclocal ... Running autoheader... Running automake --gnu ... configure.ac:13: installing './compile' configure.ac:9: installing './missing' src/Makefile.am: installing './depcomp' Running autoconf ... Running ./configure --enable-maintainer-mode --with-pango ... checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether UID '0' is supported by ustar format... yes checking whether GID '0' is supported by ustar format... yes checking how to create a ustar tar archive... gnutar checking whether to enable maintainer-specific portions of Makefiles... yes checking for g++... g++ checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of g++... gcc3 checking how to print strings... printf checking for gcc... gcc checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for mt... no checking if : is a manifest tool... no checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/bin/ld -m elf_x86_64 checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... no checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether make supports nested variables... (cached) yes checking whether byte ordering is bigendian... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for BASE_DEPENDENCIES... yes checking for cmake... /usr/bin/cmake checking for CAIRO... yes checking for PANGO... yes checking for FONTCONFIG... yes checking for FcInit in -lfontconfig... yes checking for FcFini... yes checking for FREETYPE2... yes checking byteswap.h usability... yes checking byteswap.h presence... yes checking for byteswap.h... yes checking for library containing sqrt... -lm checking host threading settings... checking for pthread_create in -lpthread... yes checking if compiler recognizes -pthread... yes checking for sigsetjmp... yes checking for visibility __attribute__... yes checking for jpeg_destroy_decompress in -ljpeg... yes checking for jpeglib.h... yes checking for TIFFReadScanline in -ltiff... yes checking tiffio.h usability... yes checking tiffio.h presence... yes checking for tiffio.h... yes checking for DGifOpenFileName in -lgif... yes checking gif_lib.h usability... yes checking gif_lib.h presence... yes checking for gif_lib.h... yes checking for DGifOpenFileName in -lungif... no configure: WARNING: *** GIF loader will not be built (ungiflibrary not found) *** checking for libpng16... yes checking X11 support... yes checking for LIBEXIF... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating libgdiplus.pc config.status: creating libgdiplus0.spec config.status: creating src/Makefile config.status: creating tests/Makefile config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands --- Configuration summary * Installation prefix = /usr/local * Cairo = 1.16.0 (system) * Text = pango * EXIF tags = yes * X11 = yes * Codecs supported: - TIFF: yes - JPEG: yes - GIF: yes - PNG: yes NOTE: if any of the above say 'no' you may install the corresponding development packages for them, rerun autogen.sh to include them in the build. --- Now type `make' to compile [root@localhost libgdiplus]# make /bin/sh: ./update_submodules.sh: 权限不够 make: *** [Makefile:920:update_submodules] 错误 126 [root@localhost libgdiplus]# chmod +x ./update_submodules.sh [root@localhost libgdiplus]# make make all-recursive make[1]: 进入目录“/源码/gdiplus/libgdiplus” Making all in src make[2]: 进入目录“/源码/gdiplus/libgdiplus/src” CC adjustablearrowcap.lo CC bitmap.lo CC brush.lo CC carbon-private.lo CC customlinecap.lo CC dstream.lo CC font.lo CC gdi32.lo CC general.lo CC graphics.lo CC graphics-cairo.lo CC graphics-metafile.lo CC graphics-path.lo CC graphics-pathiterator.lo CC hatchbrush.lo CC icocodec.lo CC image.lo CC imageattributes.lo CC lineargradientbrush.lo CC matrix.lo CC metafile.lo CC pathgradientbrush.lo CC pen.lo CC print.lo CC region.lo CC region-bitmap.lo CC region-path-tree.lo CC solidbrush.lo CC stringformat.lo CC text.lo CC text-metafile.lo CC texturebrush.lo CC bmpcodec.lo CC emfcodec.lo CC emfplus.lo CC gifcodec.lo CC jpegcodec.lo jpegcodec.c: 在函数‘gdip_load_jpeg_image_internal’中: jpegcodec.c:275:12: 警告:变量‘result’能为‘longjmp’或‘vfork’所篡改 [-Wclobbered] GpBitmap *result; ^~~~~~ jpegcodec.c: 在函数‘gdip_save_jpeg_image_internal’中: jpegcodec.c:714:32: 警告:变量‘dest’能为‘longjmp’或‘vfork’所篡改 [-Wclobbered] gdip_stream_jpeg_dest_mgr_ptr dest = NULL; ^~~~ jpegcodec.c:719:7: 警告:变量‘need_argb_conversion’能为‘longjmp’或‘vfork’所篡改 [-Wclobbered] int need_argb_conversion = 0; ^~~~~~~~~~~~~~~~~~~~ CC pngcodec.lo pngcodec.c: 在函数‘gdip_load_png_image_from_file_or_stream’中: pngcodec.c:250:9: 警告:变量‘rawdata’能为‘longjmp’或‘vfork’所篡改 [-Wclobbered] BYTE *rawdata = NULL; ^~~~~~~ pngcodec.c:251:12: 警告:变量‘result’能为‘longjmp’或‘vfork’所篡改 [-Wclobbered] GpImage *result = NULL; ^~~~~~ pngcodec.c:252:11: 警告:变量‘status’能为‘longjmp’或‘vfork’所篡改 [-Wclobbered] GpStatus status = OutOfMemory; ^~~~~~ CC tiffcodec.lo CC wmfcodec.lo CC text-pango.lo CCLD libgdiplus.la make[2]: 离开目录“/源码/gdiplus/libgdiplus/src” Making all in tests make[2]: 进入目录“/源码/gdiplus/libgdiplus/tests” CC testadjustablearrowcap.o CCLD testadjustablearrowcap CC testbitmap.o CCLD testbitmap CC testbits.o CCLD testbits CC testbmpcodec.o CCLD testbmpcodec CC testbrush.o CCLD testbrush CC testclip.o CCLD testclip CC testcodecs.o CCLD testcodecs CC testcustomlinecap.o CCLD testcustomlinecap CC testemfcodec.o CCLD testemfcodec CC testfont.o CCLD testfont CC testgeneral.o CCLD testgeneral CC testgifcodec.o CCLD testgifcodec CC testgpimage.o CCLD testgpimage CC testgraphics.o CCLD testgraphics CC testgraphicsdraw.o CCLD testgraphicsdraw CC testgraphicsfill.o CCLD testgraphicsfill CC testgraphicspath.o CCLD testgraphicspath CC testhatchbrush.o CCLD testhatchbrush CC testicocodec.o CCLD testicocodec CC testimageattributes.o CCLD testimageattributes CC testlineargradientbrush.o CCLD testlineargradientbrush CC testmatrix.o CCLD testmatrix CC testmetafile.o CCLD testmetafile CC testpathgradientbrush.o CCLD testpathgradientbrush CC testpen.o CCLD testpen CC testpng.o CCLD testpng CC testpngcodec.o CCLD testpngcodec CC testregion.o CCLD testregion CC testreversepath.o CCLD testreversepath CC testsolidbrush.o CCLD testsolidbrush CC teststringformat.o CCLD teststringformat CC testtext.o CCLD testtext CC testtexturebrush.o CCLD testtexturebrush CC testwmfcodec.o CCLD testwmfcodec CC testjpegcodec.o CCLD testjpegcodec CC testtiffcodec.o CCLD testtiffcodec CXX gtest-gtest.o mkdir -p ../gtest_build cd ../gtest_build && /usr/bin/cmake . ../external/googletest && make -- The C compiler identification is GNU 7.3.0 -- The CXX compiler identification is GNU 7.3.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found PythonInterp: /usr/bin/python (found version "2.7.18") -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Configuring done -- Generating done -- Build files have been written to: /源码/gdiplus/libgdiplus/gtest_build make[3]: 进入目录“/源码/gdiplus/libgdiplus/gtest_build” make[4]: 进入目录“/源码/gdiplus/libgdiplus/gtest_build” make[5]: 进入目录“/源码/gdiplus/libgdiplus/gtest_build” Scanning dependencies of target gtest make[5]: 离开目录“/源码/gdiplus/libgdiplus/gtest_build” make[5]: 进入目录“/源码/gdiplus/libgdiplus/gtest_build” [ 12%] Building CXX object googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o [ 25%] Linking CXX static library ../lib/libgtest.a make[5]: 离开目录“/源码/gdiplus/libgdiplus/gtest_build” [ 25%] Built target gtest make[5]: 进入目录“/源码/gdiplus/libgdiplus/gtest_build” Scanning dependencies of target gmock make[5]: 离开目录“/源码/gdiplus/libgdiplus/gtest_build” make[5]: 进入目录“/源码/gdiplus/libgdiplus/gtest_build” [ 37%] Building CXX object googlemock/CMakeFiles/gmock.dir/src/gmock-all.cc.o [ 50%] Linking CXX static library ../lib/libgmock.a make[5]: 离开目录“/源码/gdiplus/libgdiplus/gtest_build” [ 50%] Built target gmock make[5]: 进入目录“/源码/gdiplus/libgdiplus/gtest_build” Scanning dependencies of target gmock_main make[5]: 离开目录“/源码/gdiplus/libgdiplus/gtest_build” make[5]: 进入目录“/源码/gdiplus/libgdiplus/gtest_build” [ 62%] Building CXX object googlemock/CMakeFiles/gmock_main.dir/src/gmock_main.cc.o [ 75%] Linking CXX static library ../lib/libgmock_main.a make[5]: 离开目录“/源码/gdiplus/libgdiplus/gtest_build” [ 75%] Built target gmock_main make[5]: 进入目录“/源码/gdiplus/libgdiplus/gtest_build” Scanning dependencies of target gtest_main make[5]: 离开目录“/源码/gdiplus/libgdiplus/gtest_build” make[5]: 进入目录“/源码/gdiplus/libgdiplus/gtest_build” [ 87%] Building CXX object googletest/CMakeFiles/gtest_main.dir/src/gtest_main.cc.o [100%] Linking CXX static library ../lib/libgtest_main.a make[5]: 离开目录“/源码/gdiplus/libgdiplus/gtest_build” [100%] Built target gtest_main make[4]: 离开目录“/源码/gdiplus/libgdiplus/gtest_build” make[3]: 离开目录“/源码/gdiplus/libgdiplus/gtest_build” touch ../gtest_build/.stamp-gtest CXXLD gtest make[2]: 离开目录“/源码/gdiplus/libgdiplus/tests” make[2]: 进入目录“/源码/gdiplus/libgdiplus” make[2]: 离开目录“/源码/gdiplus/libgdiplus” make[1]: 离开目录“/源码/gdiplus/libgdiplus” [root@localhost libgdiplus]# make install Making install in src make[1]: 进入目录“/源码/gdiplus/libgdiplus/src” make[2]: 进入目录“/源码/gdiplus/libgdiplus/src” /usr/bin/mkdir -p '/usr/local/lib' /bin/sh ../libtool --mode=install /usr/bin/install -c libgdiplus.la '/usr/local/lib' libtool: install: /usr/bin/install -c .libs/libgdiplus.so.0.0.0 /usr/local/lib/libgdiplus.so.0.0.0 libtool: install: (cd /usr/local/lib && { ln -s -f libgdiplus.so.0.0.0 libgdiplus.so.0 || { rm -f libgdiplus.so.0 && ln -s libgdiplus.so.0.0.0 libgdiplus.so.0; }; }) libtool: install: (cd /usr/local/lib && { ln -s -f libgdiplus.so.0.0.0 libgdiplus.so || { rm -f libgdiplus.so && ln -s libgdiplus.so.0.0.0 libgdiplus.so; }; }) libtool: install: /usr/bin/install -c .libs/libgdiplus.lai /usr/local/lib/libgdiplus.la libtool: install: /usr/bin/install -c .libs/libgdiplus.a /usr/local/lib/libgdiplus.a libtool: install: chmod 644 /usr/local/lib/libgdiplus.a libtool: install: ranlib /usr/local/lib/libgdiplus.a libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/root/bin:/sbin" ldconfig -n /usr/local/lib ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the '-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the 'LD_RUN_PATH' environment variable during linking - use the '-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to '/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- make[2]: 对“install-data-am”无需做任何事。 make[2]: 离开目录“/源码/gdiplus/libgdiplus/src” make[1]: 离开目录“/源码/gdiplus/libgdiplus/src” Making install in tests make[1]: 进入目录“/源码/gdiplus/libgdiplus/tests” make[2]: 进入目录“/源码/gdiplus/libgdiplus/tests” make[2]: 对“install-exec-am”无需做任何事。 make[2]: 对“install-data-am”无需做任何事。 make[2]: 离开目录“/源码/gdiplus/libgdiplus/tests” make[1]: 离开目录“/源码/gdiplus/libgdiplus/tests” make[1]: 进入目录“/源码/gdiplus/libgdiplus” make[2]: 进入目录“/源码/gdiplus/libgdiplus” make[2]: 对“install-exec-am”无需做任何事。 /usr/bin/mkdir -p '/usr/local/lib/pkgconfig' /usr/bin/install -c -m 644 libgdiplus.pc '/usr/local/lib/pkgconfig' make[2]: 离开目录“/源码/gdiplus/libgdiplus” make[1]: 离开目录“/源码/gdiplus/libgdiplus” [root@localhost libgdiplus]# ^C [root@localhost libgdiplus]# [root@localhost libgdiplus]# [root@localhost libgdiplus]# cd /testdraw/ [root@localhost testdraw]# ls 测试命令参考.txt gif.gif lisdrawtest.deps.json lisdrawtest.exe lisdrawtest.runtimeconfig.dev.json Microsoft.Win32.SystemEvents.dll runtimes bmp.bmp jpg.jpg lisdrawtest.dll lisdrawtest.pdb lisdrawtest.runtimeconfig.json ref System.Drawing.Common.dll [root@localhost testdraw]# [root@localhost testdraw]# [root@localhost testdraw]# [root@localhost testdraw]# [root@localhost testdraw]# yum install dotnet-sdk-5.0 上次元数据过期检查:0:21:18 前,执行于 2023年06月13日 星期二 11时03分56秒。 未找到匹配的参数: dotnet-sdk-5.0 错误:没有任何匹配: dotnet-sdk-5.0 [root@localhost testdraw]# yum list | grep dotnet dotnet.x86_64 3.1.103-2.p01.ky10 ks10-adv-os dotnet-apphost-pack-3.1.x86_64 3.1.3-2.p01.ky10 ks10-adv-os dotnet-host.x86_64 3.1.3-2.p01.ky10 ks10-adv-os dotnet-hostfxr-3.1.x86_64 3.1.3-2.p01.ky10 ks10-adv-os dotnet-runtime-3.1.x86_64 3.1.3-2.p01.ky10 ks10-adv-os dotnet-sdk-3.1.x86_64 3.1.103-2.p01.ky10 ks10-adv-os dotnet-targeting-pack-3.1.x86_64 3.1.3-2.p01.ky10 ks10-adv-os dotnet-templates-3.1.x86_64 3.1.103-2.p01.ky10 ks10-adv-os [root@localhost testdraw]# bash /dotnet/install.sh 没安装dotnet,进行离线安装 [root@localhost testdraw]# dotnet Usage: dotnet [options] Usage: dotnet [path-to-application] Options: -h|--help Display help. --info Display .NET information. --list-sdks Display the installed SDKs. --list-runtimes Display the installed runtimes. path-to-application: The path to an application .dll file to execute. [root@localhost testdraw]# [root@localhost testdraw]# [root@localhost testdraw]# [root@localhost testdraw]# dotnet lisdrawtest.dll 此程序为imedicallis提供用于测试linux下dotnetcore绘图环境 创建位图 Unhandled exception. System.TypeInitializationException: The type initializer for 'Gdip' threw an exception. open shared object file: No such file or directory at System.Drawing.SafeNativeMethods.Gdip.GdiplusStartup(IntPtr& token, StartupInput& input, StartupOutput& output) at System.Drawing.SafeNativeMethods.Gdip..cctor() --- End of inner exception stack trace --- at System.Drawing.SafeNativeMethods.Gdip.GdipCreateBitmapFromScan0(Int32 width, Int32 height, Int32 stride, Int32 format, IntPtr scan0, IntPtr& bitmap) at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format) at System.Drawing.Bitmap..ctor(Int32 width, Int32 height) at lisdrawtest.Program.Main(String[] args) in D:\检验代码\trunk\13开发库\Common\Tools\lisdrawtest\Program.cs:line 16 已放弃 (核心已转储) [root@localhost testdraw]# [root@localhost testdraw]# [root@localhost testdraw]# cd /kylinserverv10/ [root@localhost kylinserverv10]# ls lislibgdiplus [root@localhost kylinserverv10]# bash /kylinserverv10/lislibgdiplus/install.sh 安装libgdiplus完成 [root@localhost kylinserverv10]# [root@localhost kylinserverv10]# [root@localhost kylinserverv10]# cd /testdraw/ [root@localhost testdraw]# ls 测试命令参考.txt gif.gif lisdrawtest.deps.json lisdrawtest.exe lisdrawtest.runtimeconfig.dev.json Microsoft.Win32.SystemEvents.dll runtimes bmp.bmp jpg.jpg lisdrawtest.dll lisdrawtest.pdb lisdrawtest.runtimeconfig.json ref System.Drawing.Common.dll [root@localhost testdraw]# dotnet lisdrawtest.dll 此程序为imedicallis提供用于测试linux下dotnetcore绘图环境 创建位图 创建画笔 填充白色 创建Pen 画一条竖线 画一条横线 创建字体 创建画刷 绘制字符串 保存文件到:/testdraw/lisdrawtest.bmp 测试完成,如果成功生成图片那么环境可用 [END] 2023/6/13 11:33:44
先编译giflib,再编译libgdiplus得到下图库:
用编译的so做install脚本
#!/bin/bash
#shell一键安装gdiplus
#20210704
#zlz
#----------------------------------------------------------
mypath=$(dirname $0)
mkdir /usr/share/libgdiplus
cp -r ${mypath}/libs/* /usr/share/libgdiplus/
cd /usr/lib64/
rm -f libgdiplus.so
chmod +x /usr/share/libgdiplus/libgdiplus.so
ln -s /usr/share/libgdiplus/libgdiplus.so libgdiplus.so
echo "安装libgdiplus完成"
再用之前C#的画图测试程序测试环境
[root@localhost kylinserverv10]# bash /kylinserverv10/lislibgdiplus/install.sh 安装libgdiplus完成 [root@localhost kylinserverv10]# [root@localhost kylinserverv10]# [root@localhost kylinserverv10]# cd /testdraw/ [root@localhost testdraw]# ls 测试命令参考.txt gif.gif lisdrawtest.deps.json lisdrawtest.exe lisdrawtest.runtimeconfig.dev.json Microsoft.Win32.SystemEvents.dll runtimes bmp.bmp jpg.jpg lisdrawtest.dll lisdrawtest.pdb lisdrawtest.runtimeconfig.json ref System.Drawing.Common.dll [root@localhost testdraw]# dotnet lisdrawtest.dll 此程序为imedicallis提供用于测试linux下dotnetcore绘图环境 创建位图 创建画笔 填充白色 创建Pen 画一条竖线 画一条横线 创建字体 创建画刷 绘制字符串 保存文件到:/testdraw/lisdrawtest.bmp 测试完成,如果成功生成图片那么环境可用
绘图在麒麟V10上ok
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。