tangshimin / typing-learner

使用电影、美剧、字幕或文档生成词库(单词本),让每个单词都有具体的语境。然后通过语境记忆单词。
GNU General Public License v3.0
893 stars 57 forks source link

macOS Apple Silicon M1 无法启动 #49

Open josangmi opened 2 years ago

josangmi commented 2 years ago

你好,

 是还没有支持M1的版本吗? 会闪退。
tangshimin commented 2 years ago

没有 M1版的。

---原始邮件--- 发件人: @.> 发送时间: 2022年7月6日(星期三) 下午4:29 收件人: @.>; 抄送: @.***>; 主题: [tangshimin/typing-learner] mac os m1 无法启动 (Issue #49)

你好, 是还没有支持M1的版本吗? 会闪退。
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

tangshimin commented 2 years ago

闪退的时候有什么提示吗?

---原始邮件--- 发件人: @.> 发送时间: 2022年7月6日(星期三) 下午4:29 收件人: @.>; 抄送: @.***>; 主题: [tangshimin/typing-learner] mac os m1 无法启动 (Issue #49)

你好, 是还没有支持M1的版本吗? 会闪退。
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

josangmi commented 2 years ago

没有提示,就是感觉在启动,然后一下子没了。 有一个和文档不一样的地方 sudo xattr -rd com.apple.quarantine /Applications/typing-learner.app 上面的会显示找不到路径,然后修改成下面的才可以,但是会闪退。 sudo xattr -rd com.apple.quarantine "/Applications/Typing Learner.app"

tangshimin commented 2 years ago

文档确实有问题,现在更新了。 你用命令行的方式启动就可以看到闪退的原因了。 在 Typing Learner 的图标上,按鼠标右键 > 选择显示包内容 > 进入 Contents > 进入 MacOS > 然后双击 Typing Learner

josangmi commented 2 years ago

好像是vlc 的关系,我安装的是

image

Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'vlccore': dlopen(/Applications/VLC.app/Contents/MacOS/lib/libvlccore.dylib, 0x0009): tried: '/Applications/VLC.app/Contents/MacOS/lib/libvlccore.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/Applications/VLC.app/Contents/MacOS/lib/libvlccore.9.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')) dlopen(/Applications/VLC.app/Contents/MacOS/lib/libvlccore.dylib, 0x0009): tried: '/Applications/VLC.app/Contents/MacOS/lib/libvlccore.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/Applications/VLC.app/Contents/MacOS/lib/libvlccore.9.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')) Native library (darwin/libvlccore.dylib) not found in resource path (/Users/tang/Documents/typing-learner/build/compose/tmp/createDistributable/libs/typing-learner-1.0.3-637ab81ee824b33574e7b4e2a32e3e65.jar:/Applications/Typing Learner.app/Contents/app/animation-core-desktop-1.1.1-1ec13229368db6b6b4917b4e80d2fc5c.jar:/Applications/Typing Learner.app/Contents/app/animation-desktop-1.1.1-bce4fdbafe19e6e7b8c698ed3766b22b.jar:/Applications/Typing Learner.app/Contents/app/annotations-13.0-f4fb462172517b46b6cd900358515a.jar:/Applications/Typing Learner.app/Contents/app/commons-logging-1.2-4b4b4d8eac886f6b4a2a3bd2f31b0.jar:/Applications/Typing Learner.app/Contents/app/desktop-jvm-1.1.1-a0fb36d5ce8399d2836e3e8fb6f5737e.jar:/Applications/Typing Learner.app/Contents/app/ebml-reader-0.1.0-fb92a0c1ccfe328914518cb970aaf0b5.jar:/Applications/Typing Learner.app/Contents/app/flatlaf-2.3-1a3e49b2fa419e47ff4fba21f037d290.jar:/Applications/Typing Learner.app/Contents/app/fontbox-2.0.24-6c2066dfd706d85e950fe8c73d52ed8.jar:/Applications/Typing Learner.app/Contents/app/foundation-desktop-1.1.1-03fa28d74362f230ba3c9b35c06cd8.jar:/Applications/Typing Learner.app/Contents/app/foundation-layout-desktop-1.1.1-364c1b4717a757d2b134a36ec827fa3.jar:/Applications/Typing Learner.app/Contents/app/h2-2.1.212-7c75f03eead676ec375981653b38d5d.jar:/Applications/Typing Learner.app/Contents/app/jna-5.2.0-e2c31f7fb545c5e39819ad4b3ddc.jar:/Applications/Typing Learner.app/Contents/app/jna-platform-5.2.0-12f94860a357cffacbd86e7c29bf86fa.jar:/Applications/Typing Learner.app/Contents/app/kotlin-logging-jvm-2.1.21-20757820c220698ca9ac6c6f603ecd9b.jar:/Applications/Typing Learner.app/Contents/app/kotlin-stdlib-1.6.20-a84367513e489c9e8b51fd8dc9ba.jar:/Applications/Typing Learner.app/Contents/app/kotlin-stdlib-common-1.6.20-2067bd14cd5efaa4721e7fc224bd52ad.jar:/Applications/Typing Learner.app/Contents/app/kotlin-stdlib-jdk7-1.6.10-bdf996a12ffcd3f8a4ec3d235f8894.jar:/Applications/Typing Learner.app/Contents/app/kotlin-stdlib-jdk8-1.6.10-ab3545d47ee23949c86eb81fa7d51fbe.jar:/Applications/Typing Learner.app/Contents/app/kotlinx-coroutines-core-jvm-1.6.0-1be8331acfc1add3a0362630f747944e.jar:/Applications/Typing Learner.app/Contents/app/kotlinx-serialization-core-jvm-1.3.2-37d53a395be3a5db5ad36d95b6ac562c.jar:/Applications/Typing Learner.app/Contents/app/kotlinx-serialization-json-jvm-1.3.2-ad62d829c2659fe1d9b7957f5e3a187.jar:/Applications/Typing Learner.app/Contents/app/material-desktop-1.1.1-306fe28a43e1c47de42b7d9cc793.jar:/Applications/Typing Learner.app/Contents/app/material-icons-core-desktop-1.1.1-6bff1e6a5ee49361cd5742ad69695ac9.jar:/Applications/Typing Learner.app/Contents/app/material-icons-extended-desktop-1.0.1-81adccba53611dbd864a77a96e98112.jar:/Applications/Typing Learner.app/Contents/app/material-ripple-desktop-1.1.1-155baeb0b0e1b1f2d7948f3f765895f8.jar:/Applications/Typing Learner.app/Contents/app/material3-desktop-1.0.1-1ee8604f2051c9b913d2b343cee2fbe3.jar:/Applications/Typing Learner.app/Contents/app/okhttp-4.10.0-9a229b2af8b8ffcc41508f82ef5e3e72.jar:/Applications/Typing Learner.app/Contents/app/okio-jvm-3.0.0-c27e762658c0831128ccbde84c25f0.jar:/Applications/Typing Learner.app/Contents/app/opennlp-tools-1.9.4-5d86fa34c141dd726fb89e12b4089.jar:/Applications/Typing Learner.app/Contents/app/pdfbox-2.0.24-9e97fc59c662738a5fb82dcc447d1e2f.jar:/Applications/Typing Learner.app/Contents/app/runtime-desktop-1.1.1-becf68489230f33217981f5c0809daa.jar:/Applications/Typing Learner.app/Contents/app/runtime-saveable-desktop-1.1.1-b753fdb6e793f3ebcb52314b207e35bd.jar:/Applications/Typing Learner.app/Contents/app/skiko-awt-0.7.16-ac2aad883d25328b57c14462e1dbf7fa.jar:/Applications/Typing Learner.app/Contents/app/skiko-awt-runtime-macos-x64-0.7.16-f9172411798b797840a2df616f8d929.jar:/Applications/Typing Learner.app/Contents/app/slf4j-api-1.7.32-fbcf58513bc25b80f075d812aad3e3cf.jar:/Applications/Typing Learner.app/Contents/app/subtitleConvert-1.0.2-a1a3aff22fc3777829ff4f6366a7fd.jar:/Applications/Typing Learner.app/Contents/app/typing-learner-1.0.3-637ab81ee824b33574e7b4e2a32e3e65.jar:/Applications/Typing Learner.app/Contents/app/ui-desktop-1.1.1-c0a951a5462ed7f61272186db51c74.jar:/Applications/Typing Learner.app/Contents/app/ui-geometry-desktop-1.1.1-e1e37184fc307a8e966ee489e77af59d.jar:/Applications/Typing Learner.app/Contents/app/ui-graphics-desktop-1.1.1-6bad8a1962b75c3af64e8597a978645.jar:/Applications/Typing Learner.app/Contents/app/ui-text-desktop-1.1.1-3b7ccb7c7ca9611f9e92ed2848cf223.jar:/Applications/Typing Learner.app/Contents/app/ui-tooling-preview-desktop-1.1.1-597f98f6b3c92d798357a1163f7e8d0.jar:/Applications/Typing Learner.app/Contents/app/ui-unit-desktop-1.1.1-4ca199ff81734ba9808b68d1c7ee9293.jar:/Applications/Typing Learner.app/Contents/app/ui-util-desktop-1.1.1-614de32fa765806ea805778a966cd87.jar:/Applications/Typing Learner.app/Contents/app/vlcj-4.7.1-f5b0236ecaffa5357879caf93e8bca.jar:/Applications/Typing Learner.app/Contents/app/vlcj-natives-4.1.0-b26a129daedbc861862aa2d374e068.jar)

tangshimin commented 2 years ago

VLCJ 的 bug, VLCJ 现在还不支持 M1,装一个非 Apple Silicon 版的 VLC 试一下呢?

vlc macOS

josangmi commented 2 years ago

换成macos 的和1.1.1的版本,正常了

tangshimin commented 2 years ago

好的, 我马上更新下载页面的提示,提示 Apple Silicon 的用户下载 Intel 版的 VLC。