xiaoyifang / goldendict-ng

The Next Generation GoldenDict
https://xiaoyifang.github.io/goldendict-ng/
Other
1.65k stars 92 forks source link

[Ask] macOS silicon m1 version #24

Closed prenfic closed 2 years ago

prenfic commented 2 years ago

Is the build inside of the release, universal version for arm64 or x86-64 version that run thru the Rosetta 2?

prenfic commented 2 years ago

It is the consideration for the power consumption and memory as, based on what I know, Rosetta version will increase the probability of memory leakage and cause the frozen problem

xiaoyifang commented 2 years ago

I have no macos to test the dmg . based on what others have tested . macos version can work. I can not sure what the actual outcome in different macos versions.

shawkynasr commented 2 years ago

Xiaoyifang, He mean export dmg for Arm M1 Apple silicon

like that project: https://www.microsoft.com/en-us/edge Or you can add to one dmg file.

https://isapplesiliconready.com/ https://github.com/below/HelloSilicon https://github.com/ThatGuySam/doesitarm

prenfic, if you have m1, you can try test that:

Apple Silicon Testing Tools

xiaoyifang commented 2 years ago

I really does not know all the differences between them.

but version build for arm M1 apple should wait . qt only support it until qt6.2 release.

https://www.qt.io/blog/qt-on-apple-silicon#:~:text=I%27m%20happy%20to%20say%20that%20these%20issues%20have%20been%20resolved%2C%20and%20Qt%20on%20Apple%20Silicon%20support%20is%20scheduled%20for%20the%20upcoming%20Qt%206.2%20release.%20This%20includes%20both%20cross%20compiling%20to%20arm64%2C%20as%20well%20as%20developing%20Qt%20applications%20on%20Apple%20Silicon.

xiaoyifang commented 2 years ago

https://www.qt.io/blog/qt-on-apple-silicon#:~:text=What%20about%20Qt,do%20not%20hesitate

when i have time ,I'll try to build a version for M1 ,do not put too much expectation on this now.

shawkynasr commented 2 years ago

Ok, I see

Thanks a lot XiaoYifang

prenfic commented 2 years ago

Hey man, you get my tongue. You do know what do I mean.

Regards, Kaijian Lawrence Law loc

On Wed, 23 Feb 2022, 21:30 Shawky, @.***> wrote:

Xiaoyifang, He mean export dmg for Arm M1 Apple silicon

like that project: https://www.microsoft.com/en-us/edge Or you can add to one dmg file.

https://isapplesiliconready.com/ https://github.com/below/HelloSilicon https://github.com/ThatGuySam/doesitarm

prenfic, if you have m1, you can try test that:

Apple Silicon Testing Tools https://github.com/ThatGuySam/doesitarm#apple-silicon-testing-tools

— Reply to this email directly, view it on GitHub https://github.com/xiaoyifang/goldendict/issues/24#issuecomment-1048784222, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADJXGGWZPOD2RITZ43HOKWDU4TOQLANCNFSM5PBWIQEQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

prenfic commented 2 years ago

No wonder there is no ready Qt based M1 build Anyhow, sincerely wait for that

Regards, Kaijian Lawrence Law loc

On Wed, 23 Feb 2022, 21:43 xiaoyifang, @.***> wrote:

https://www.qt.io/blog/qt-on-apple-silicon#:~:text=What%20about%20Qt,do%20not%20hesitate

when i have time ,I'll try to build a version for M1 ,do not put too much expectation on this now.

— Reply to this email directly, view it on GitHub https://github.com/xiaoyifang/goldendict/issues/24#issuecomment-1048795371, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADJXGGTW7UBU7Q4UCB35E5LU4TP67ANCNFSM5PBWIQEQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

conphi commented 2 years ago

support

M1 芯片版本 即 apple silicon版,intel版本在苹果新出M1芯片电脑上不是原生应用,要转码,表现太差; 非常非常期待您的 arm 版本的 ( Qt 6.2 好像出来了 ) (PS: 用习惯了windows上的goldendict,Mac上没什么好词典,急死我了)

shawkynasr commented 2 years ago

Ref: Sigil

Due to not owning a MacOS M1 (arm64) machine for development, we do not (yet) make MacOS arm64 based release builds. But, building Sigil from source on MacOS M1 (arm64) machines using Python 3.9.9 and Qt6.2.2 does work.

And finally to build Sigil itself see:

[docs/Building_Sigil_On_MacOSX.txt](https://github.com/Sigil-Ebook/Sigil/blob/master/docs/Building_Sigil_On_MacOSX.txt)

and for building Sigil under Qt6 see:

[docs/Building_Sigil_On_MacOSX_With_QT6.txt](https://github.com/Sigil-Ebook/Sigil/blob/master/docs/Building_Sigil_On_MacOSX_With_QT6.txt)
shawkynasr commented 2 years ago

@prenfic You can try Qt 6 6.2.3-GoldenDict_macos-11_61fb1020.dmg 130 MB

shawkynasr commented 2 years ago

With mine 6.2 version not working

`------------------------------------- Translated Report (Full Report Below)

Process: GoldenDict [3837] Path: /Applications/GoldenDict.app/Contents/MacOS/GoldenDict Identifier: org.goldendict Version: 22.2 (???) Code Type: X86-64 (Native) Parent Process: launchd [1] User ID: 502

Date/Time: 2022-03-15 16:19:21.5207 +0800 OS Version: macOS 12.2.1 (21D62) Report Version: 12 Bridge OS Version: 6.2 (19P744) Anonymous UUID: 760E11E7-D494-D8B4-1453-212F341309BD

Sleep/Wake UUID: 8DD945ED-E2B3-4705-87E3-0B633510F801

Time Awake Since Boot: 17000 seconds Time Since Wake: 1612 seconds

System Integrity Protection: enabled

Crashed Thread: 0

Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY

Termination Reason: Namespace DYLD, Code 1 Library missing Library not loaded: @rpath/QtDBus.framework/Versions/A/QtDBus Referenced from: /Applications/GoldenDict.app/Contents/Frameworks/QtGui.framework/Versions/A/QtGui Reason: tried: '/Applications/GoldenDict.app/Contents/Frameworks/QtGui.framework/Versions/A/../../../QtDBus.framework/Versions/A/QtDBus' (no such file), '/Applications/GoldenDict.app/Contents/Frameworks/QtWidgets.framework/Versions/A/../../../QtDBus.framework/Versions/A/QtDBus' (no such file), '/Applications/GoldenDict.app/Contents/Frameworks/QtSvg.framework/Versions/A/../../../QtDBus.framework/Versions/A/QtDBus' (no such file), '/Applications/GoldenDict.app/Contents/MacOS/../Frameworks/QtDBus.framework/Versions/A/QtDBus' (no such file), '/usr/local/lib/QtDBus.framework/Versions/A/QtDBus' (no such file), '/Applications/GoldenDict.app/Contents/MacOS/../Frameworks/QtDBus.framework/Versions/A/QtDBus' (no such file), '/usr/local/lib/QtDBus.framework/Versions/A/QtDBus' (no such file), '/Library/Frameworks/QtDBus.framework/Versions/A/QtDBus' (no such f (terminated at launch; ignore backtrace)

Application Specific Information: Library not loaded: @rpath/QtDBus.framework/Versions/A/QtDBus Referenced from: /Applications/GoldenDict.app/Contents/Frameworks/QtGui.framework/Versions/A/QtGui Reason: tried: '/Applications/GoldenDict.app/Contents/Frameworks/QtGui.framework/Versions/A/../../../QtDBus.framework/Versions/A/QtDBus' (no such file), '/Applications/GoldenDict.app/Contents/Frameworks/QtWidgets.framework/Versions/A/../../../QtDBus.framework/Versions/A/QtDBus' (no such file), '/Applications/GoldenDict.app/Contents/Frameworks/QtSvg.framework/Versions/A/../../../QtDBus.framework/Versions/A/QtDBus' (no such file), '/Applications/GoldenDict.app/Contents/MacOS/../Frameworks/QtDBus.framework/Versions/A/QtDBus' (no such file), '/usr/local/lib/QtDBus.framework/Versions/A/QtDBus' (no such file), '/Applications/GoldenDict.app/Contents/MacOS/../Frameworks/QtDBus.framework/Versions/A/QtDBus' (no such file), '/usr/local/lib/QtDBus.framework/Versions/A/QtDBus' (no such file), '/Library/Frameworks/QtDBus.framework/Versions/A/QtDBus' (no such f

Thread 0 Crashed: 0 dyld 0x110fe80ce __abort_with_payload + 10 1 dyld 0x110ffe1cf abort_with_payload_wrapper_internal + 80 2 dyld 0x110ffe201 abort_with_payload + 9 3 dyld 0x110fac613 dyld4::halt(char const) + 375 4 dyld 0x110fa855d dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const) + 3955 5 dyld 0x110fa74b4 start + 388

Thread 0 crashed with X86 Thread State (64-bit): rax: 0x0000000002000209 rbx: 0x0000000000000000 rcx: 0x00007ff7b9e89d78 rdx: 0x00007ff7b9e8a1e0 rdi: 0x0000000000000006 rsi: 0x0000000000000001 rbp: 0x00007ff7b9e89dc0 rsp: 0x00007ff7b9e89d78 r8: 0x00007ff7b9e89de0 r9: 0x0000000000000000 r10: 0x00000000000000ba r11: 0x0000000000000246 r12: 0x00000000000000ba r13: 0x00007ff7b9e8a1e0 r14: 0x0000000000000001 r15: 0x0000000000000006 rip: 0x0000000110fe80ce rfl: 0x0000000000000246 cr2: 0x00000001065a7000

Logical CPU: 0 Error Code: 0x02000209 Trap Number: 133

Binary Images: 0x110fa2000 - 0x11100dfff dyld (*) <7de33963-bbc5-3996-ba6e-f1d562c17c95> /usr/lib/dyld

External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 0 thread_create: 0 thread_set_state: 0

VM Region Summary: ReadOnly portion of Libraries: Total=1.0G resident=0K(0%) swapped_out_or_unallocated=1.0G(100%) Writable regions: Total=14.2M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=14.2M(100%)

                            VIRTUAL   REGION 

REGION TYPE SIZE COUNT (non-coalesced) =========== ======= ======= STACK GUARD 56.0M 1 Stack 8192K 1 VM_ALLOCATE 12K 3 DATA 21.9M 289 DATA_CONST 17.5M 178 DATA_DIRTY 485K 85 __FONT_DATA 4K 1 LINKEDIT 650.7M 48 OBJC_RO 81.8M 1 __OBJC_RW 3136K 1 TEXT 394.6M 300 __UNICODE 588K 1 dyld private memory 1024K 1 =========== ======= ======= TOTAL 1.2G 910 `

shawkynasr commented 2 years ago

I am using 5.15.2 no issue. 5.15.2-GoldenDict_macos-11.0_61fb1020.dmg 101 MB

@prenfic if you have m1 macobook, try first 6.2.3-GoldenDict_macos-11_61fb1020.dmg 130 MB

xiaoyifang commented 2 years ago

With mine 6.2 version not working

seems some qt files have been missing in dmg. wait for next release.

btw ,the 6.2 version is not for native m1 version. though qt 6.2 support arm64,qt company has not offered any precompiled arm64-support qt libraries. In order to build a native arm64 version ,one has to build from qt source to support arm64 .

shawkynasr commented 2 years ago

calibre beta version support M1 beta

shawkynasr commented 2 years ago

win-ubuntu-macos-staged-20220316

new version is working, no problem. Who has M1? @prenfic can you try it?

shenlebantongying commented 2 years ago

@shawkynasr Both qt5 and qt6 versions works on M1 mac in intel mode.

Screen Shot 2022-03-18 at 2 06 03 AM
shawkynasr commented 2 years ago

Great!

in intel mode Do you open it with Rosetta 2?

Qt on Apple Silicon

xiaoyifang commented 2 years ago
ld: warning: ignoring file /usr/local/lib/libzstd.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /usr/local/lib/libvorbisfile.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /usr/local/lib/liblzma.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /usr/local/lib/libvorbis.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /usr/local/lib/libogg.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /usr/local/lib/libhunspell-1.7.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /usr/local/lib/libopencc.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /usr/local/lib/liblzo2.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
Undefined symbols for architecture arm64:

https://github.com/xiaoyifang/goldendict/runs/5617868790?check_suite_focus=true

seems many gd's dependencies do not have arm64 version.

ngn999 commented 2 years ago

I build a version for Apple silicon: https://drive.google.com/file/d/1fQ5dpu2DZp93jAmn6cAMpryP33PwTwF_/view?usp=sharing

this build is base on @xiaoyifang 's codebase, and my change is here:
https://github.com/ngn999/goldendict/tree/staged I will open a merge request on this repo.

:( this build is about: 500M. After all, QWebEngine contains a Chromium!

xiaoyifang commented 2 years ago

great ,how to build ?can the steps used with github action you can try to modify the .github/workflow/macos-m1.yml

ngn999 commented 2 years ago

great ,how to build ?can the steps used with github action you can try to modify the .github/workflow/macos-m1.yml

I'm updating README.md

ngn999 commented 2 years ago

on macOS, we can use homebrew to install all dependencies except libeb, it's too old.

maybe we should make a formula for it.

xiaoyifang commented 2 years ago

:( this build is about: 500M. After all, QWebEngine contains a Chromium!

usually it will not be so big ,do you build a debug version ?

ngn999 commented 2 years ago

No, it's a release build, I build it with:

~/Qt/6.2.4/macos/bin/qmake CONFIG+=release   CONFIG+=zim_support   CONFIG+=chinese_conversion_support
~/Qt/6.2.4/macos/bin/macdeployqt  GoldenDict.app
codesign -f --deep --verify -s <myidenti> GoldenDict.app

before macdeployqt, it's only 12M.

image

maybe bc Qt is a uniserval build:

➜  goldendict git:(staged) ✗ file GoldenDict.app/Contents/Frameworks/QtWebEngineCore.framework/Versions/A/QtWebEngineCore
GoldenDict.app/Contents/Frameworks/QtWebEngineCore.framework/Versions/A/QtWebEngineCore: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit dynamically linked shared library x86_64
- Mach-O 64-bit dynamically linked shared library x86_64] [arm64]
GoldenDict.app/Contents/Frameworks/QtWebEngineCore.framework/Versions/A/QtWebEngineCore (for architecture x86_64):      Mach-O 64-bit dynamically linked shared library x86_64
GoldenDict.app/Contents/Frameworks/QtWebEngineCore.framework/Versions/A/QtWebEngineCore (for architecture arm64):       Mach-O 64-bit dynamically linked shared library arm64

I have try macdeployqt GoldenDict.app -no-plugins, but it doesn't work, and qt plugins is not so big.

xiaoyifang commented 2 years ago

maybe bc Qt is a uniserval build:

+1

xiaoyifang commented 2 years ago

image 我编译出来后只有200M

xiaoyifang commented 2 years ago

400M的猜测是把不必要的qt 文件打包进去了。

shawkynasr commented 2 years ago

last version not working with intel macbook

`Translated Report (Full Report Below)

Process: GoldenDict [5671] Path: /Applications/GoldenDict.app/Contents/MacOS/GoldenDict Identifier: org.goldendict Version: 22.2 (???) Code Type: X86-64 (Native) Parent Process: launchd [1] User ID: 502

Date/Time: 2022-03-26 00:07:16.0604 +0800 OS Version: macOS 12.3 (21E230) Report Version: 12 Bridge OS Version: 6.4 (19P4242) Anonymous UUID: 760E11E7-D494-D8B4-1453-212F341309BD

Sleep/Wake UUID: 6E8932A2-197A-4236-8D26-CD471729961D

Time Awake Since Boot: 27000 seconds Time Since Wake: 895 seconds

System Integrity Protection: enabled

Crashed Thread: 0

Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY

Termination Reason: Namespace DYLD, Code 1 Library missing Library not loaded: /usr/local/Cellar/ffmpeg/5.0/lib/libavutil.57.dylib Referenced from: /Applications/GoldenDict.app/Contents/Frameworks/libswresample.4.dylib Reason: tried: '/usr/local/Cellar/ffmpeg/5.0/lib/libavutil.57.dylib' (no such file), '/usr/local/lib/libavutil.57.dylib' (no such file), '/usr/lib/libavutil.57.dylib' (no such file)Library not loaded: /usr/local/Cellar/ffmpeg/5.0/lib/libavcodec.59.dylib Referenced from: /Applications/GoldenDict.app/Contents/Frameworks/libavformat.59.dylib Reason: tried: '/usr/local/Cellar/ffmpeg/5.0/lib/libavcodec.59.dylib' (no such file), '/usr/local/lib/libavcodec.59.dylib' (no such file), '/usr/lib/libavcodec.59.dylib' (no such file)Library not loaded: /usr/local/Cellar/ffmpeg/5.0/lib/libswresample.4.dylib Referenced from: /Applications/GoldenDict.app/Contents/Frameworks/libavcodec.59.dylib Reason: tried: '/usr/local/Cellar/ffmpeg/5.0/lib/libswresample.4.dylib' (no such file), '/usr/local/lib/libswresample.4.dylib' (no such file), '/usr/lib/libswresampl (terminated at launch; ignore backtrace)

Application Specific Information: Library not loaded: /usr/local/Cellar/ffmpeg/5.0/lib/libavutil.57.dylib Referenced from: /Applications/GoldenDict.app/Contents/Frameworks/libswresample.4.dylib Reason: tried: '/usr/local/Cellar/ffmpeg/5.0/lib/libavutil.57.dylib' (no such file), '/usr/local/lib/libavutil.57.dylib' (no such file), '/usr/lib/libavutil.57.dylib' (no such file)Library not loaded: /usr/local/Cellar/ffmpeg/5.0/lib/libavcodec.59.dylib Referenced from: /Applications/GoldenDict.app/Contents/Frameworks/libavformat.59.dylib Reason: tried: '/usr/local/Cellar/ffmpeg/5.0/lib/libavcodec.59.dylib' (no such file), '/usr/local/lib/libavcodec.59.dylib' (no such file), '/usr/lib/libavcodec.59.dylib' (no such file)Library not loaded: /usr/local/Cellar/ffmpeg/5.0/lib/libswresample.4.dylib Referenced from: /Applications/GoldenDict.app/Contents/Frameworks/libavcodec.59.dylib Reason: tried: '/usr/local/Cellar/ffmpeg/5.0/lib/libswresample.4.dylib' (no such file), '/usr/local/lib/libswresample.4.dylib' (no such file), '/usr/lib/libswresampl

Thread 0 Crashed: 0 dyld 0x10cea10de __abort_with_payload + 10 1 dyld 0x10ceb7212 abort_with_payload_wrapper_internal + 80 2 dyld 0x10ceb7244 abort_with_payload + 9 3 dyld 0x10ce6576f dyld4::halt(char const) + 375 4 dyld 0x10ce615a5 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const) + 3995 5 dyld 0x10ce604d4 start + 388

Thread 0 crashed with X86 Thread State (64-bit): rax: 0x0000000002000209 rbx: 0x0000000000000000 rcx: 0x00007ff7b57ded78 rdx: 0x00007ff7b57df1e0 rdi: 0x0000000000000006 rsi: 0x0000000000000001 rbp: 0x00007ff7b57dedc0 rsp: 0x00007ff7b57ded78 r8: 0x00007ff7b57dede0 r9: 0x0000000000000000 r10: 0x0000000000000090 r11: 0x0000000000000246 r12: 0x0000000000000090 r13: 0x00007ff7b57df1e0 r14: 0x0000000000000001 r15: 0x0000000000000006 rip: 0x000000010cea10de rfl: 0x0000000000000246 cr2: 0x000000010ac18000

Logical CPU: 0 Error Code: 0x02000209 Trap Number: 133

Binary Images: 0x10ce5b000 - 0x10cec6fff dyld (*) /usr/lib/dyld

External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 0 thread_create: 0 thread_set_state: 0

VM Region Summary: ReadOnly portion of Libraries: Total=1.0G resident=0K(0%) swapped_out_or_unallocated=1.0G(100%) Writable regions: Total=20.7M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=20.7M(100%)

                            VIRTUAL   REGION 

REGION TYPE SIZE COUNT (non-coalesced) =========== ======= ======= STACK GUARD 56.0M 1 Stack 8192K 1 VM_ALLOCATE 12K 3 DATA 34.7M 288 DATA_CONST 11.8M 167 DATA_DIRTY 485K 85 __FONT_DATA 4K 1 LINKEDIT 659.6M 46 OBJC_RO 82.6M 1 __OBJC_RW 3200K 1 TEXT 378.2M 299 __UNICODE 592K 1 dyld private memory 1024K 1 =========== ======= ======= TOTAL 1.2G 895

`

xiaoyifang commented 2 years ago

ffmpeg?

xiaoyifang commented 2 years ago

ffmpeg seems not bundled into the dmg ,do you know the reason @ngn999
build log logs_657_2.zip

@shawkynasr try brew install ffmpeg

shawkynasr commented 2 years ago

ffmpeg seems not bundled into the dmg ,do you know the reason @ngn999

@shawkynasr try brew install ffmpeg

Yes, Now is working.

xiaoyifang commented 2 years ago

intel Kind ? or Apple Kind

shawkynasr commented 2 years ago

Macbook pro intel chip

shawkynasr commented 2 years ago

@shenlebantongying has m1, he can test it.

ngn999 commented 2 years ago

@xiaoyifang the github action output is wrong, I download the latest release package 6.2.3-GoldenDict_macos-11_dc48c520.dmg

➜ ~ file /Volumes/GoldenDict/GoldenDict.app/Contents/MacOS/GoldenDict /Volumes/GoldenDict/GoldenDict.app/Contents/MacOS/GoldenDict: Mach-O 64-bit executable x86_64

I didn't see any arch setting in https://github.com/xiaoyifang/goldendict/blob/staged/.github/workflows/macos-m1.yml

cross compile?

xiaoyifang commented 2 years ago

@xiaoyifang the github action output is wrong, I download the latest release package 6.2.3-GoldenDict_macos-11_dc48c520.dmg

➜ ~ file /Volumes/GoldenDict/GoldenDict.app/Contents/MacOS/GoldenDict /Volumes/GoldenDict/GoldenDict.app/Contents/MacOS/GoldenDict: Mach-O 64-bit executable x86_64

I didn't see any arch setting in https://github.com/xiaoyifang/goldendict/blob/staged/.github/workflows/macos-m1.yml

cross compile?

the 6.2.3*dmg was built by the following workflow https://github.com/xiaoyifang/goldendict/blob/staged/.github/workflows/macos-6.2.yml

I use the default settings ,where to set the arch setting

this? image

ngn999 commented 2 years ago

homebrew will not support universal library: https://github.com/Homebrew/discussions/discussions/412#discussioncomment-396027

after we move dependencies to homebrew, we should build x86_64 on intel Mac, and build arm64 on M1 Mac.

if github action does not provide M1 Mac, We should move back to maclibs/, and build them as universal. or update arm64 package manually.

and why the last GoldenDict is x86_64 is another question.

ngn999 commented 2 years ago

Qt support Apple silicon in 6.2, need a macos-6.2-m1.yml

xiaoyifang commented 2 years ago

we should build x86_64 on intel Mac, and build arm64 on M1 Mac.

how to build ? compile from source ? if too complicated ,I thinkk I'll left the universal binary out .developers or volunteers can build by themselves.

if github action does not provide M1 Mac,

I use mac11.6.5 in the github action workflow, change to mac12?

xiaoyifang commented 2 years ago

Qt support Apple silicon in 6.2, need a macos-6.2-m1.yml

you mean build them seperately , I think this is acceptable,if you want to contribute ,you can just use the macos-m1.yml file.

ngn999 commented 2 years ago

building all dependencies in universal is complicated, and the package size is too big(even after some optimization).

I can update Apple Silicon build under this issue before we make the dependencies universal.

ngn999 commented 2 years ago

I remove x86_64 QtWebengine, and build a new one, version: 22.2.alpha.0647af51

https://drive.google.com/file/d/19P3yPYCMjofaK_HvwWwzGdCyxmN5fgfM/view?usp=sharing

download size : 130M, unzip size: 320M

shawkynasr commented 2 years ago

after install 507.4mb, compare to 5.15.2 version is 290mb.

ngn999 commented 2 years ago

after install 507.4mb, compare to 5.15.2 version is 290mb.

Please use the last upload: GoldenDict.tar.gz

xiaoyifang commented 2 years ago

https://github.com/actions/virtual-environments/issues/2187

the github action has not support the m1 yet.

shawkynasr commented 2 years ago

try add Appliction folder to installer interface, that will be more easy to replace old version. like all of mac apps: image

ngn999 commented 2 years ago

try add Appliction folder to installer interface, that will be more easy to replace old version.

like all of mac apps:

image

follow your advice,i upload a new one:

https://drive.google.com/file/d/1vcHX0zbYFB9hhvSI5ziKu_HWXZsDbw8V/view?usp=sharing

2022-04-04 update:

2022-04-08 update:

shawkynasr commented 2 years ago

Thanks @ngn999 too much.

@xiaoyifang could you please add that feature to other QT versions?

xiaoyifang commented 2 years ago
  • fix a deadlock
  • disable trackpad zoom on macOS

@shawkynasr you mean these features? ngn999 already offered a PR and been merged.