cssxsh / mirai-skia-plugin

Mirai Console Skiko/Skia 图像库前置插件
GNU Affero General Public License v3.0
33 stars 1 forks source link

skiko 兼容性问题 #2

Closed cssxsh closed 2 years ago

cssxsh commented 2 years ago

v1.1.4 版本已解决兼容性问题,不再需要额外配置

Windows 7 / Windows Server 2013 / Termux 下运行请 添加 -Dxyz.cssxsh.mirai.skia.version=0.7.23 java 运行参数以提升 skiko 库版本。

mcl.bat 启动为例

@echo off
set JAVA_BINARY=java
%JAVA_BINARY% -Dxyz.cssxsh.mirai.skia.version=0.7.12 -jar mcl.jar %*

Linux 下运行出现以下错误则需要安装 GLIBC_2.28

/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found 
cssxsh commented 2 years ago

skiko-0.7.20skiko-0.7.12 多了个 api-ms-win-shcore-scaling-l1-1-1.dll 依赖 这个依赖来自 Microsoft Visual C++ Redistributable Package

skiko-0.7.12 的依赖

Microsoft (R) COFF/PE Dumper Version 14.29.30141.0
Copyright (C) Microsoft Corporation.  All rights reserved.

Dump of file D:\Users\CSSXSH\IdeaProjects\mirai-skia-plugin\run\skiko-0.7.12-windows-x64.dll

File Type: DLL

  Image has the following dependencies:

    ADVAPI32.dll
    GDI32.dll
    dwmapi.dll
    OPENGL32.dll
    USER32.dll
    KERNEL32.dll

  Summary

        1000 .00cfg
       1E000 .data
        3000 .idata
       93000 .pdata
      27D000 .rdata
       16000 .reloc
      C5C000 .text
        1000 .tls
        1000 _RDATA

skiko-0.7.20 的依赖

Microsoft (R) COFF/PE Dumper Version 14.29.30141.0
Copyright (C) Microsoft Corporation.  All rights reserved.

Dump of file D:\Users\CSSXSH\IdeaProjects\mirai-skia-plugin\run\skiko-0.7.20-windows-x64.dll

File Type: DLL

  Image has the following dependencies:

    ADVAPI32.dll
    GDI32.dll
    dwmapi.dll
    OPENGL32.dll
    api-ms-win-shcore-scaling-l1-1-1.dll
    USER32.dll
    KERNEL32.dll

  Summary

        1000 .00cfg
       1E000 .data
        3000 .idata
       93000 .pdata
      27E000 .rdata
       16000 .reloc
      C5E000 .text
        1000 .tls
        1000 _RDATA
cssxsh commented 2 years ago

diff 0.7.12 to 0.7.13 for windows skiko/src/jvmMain/cpp/windows/drawlayer.cc