media-kit / media-kit

A cross-platform video player & audio player for Flutter & Dart.

Home Page:https://github.com/media-kit/media-kit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support windows arm 64

CaptainDario opened this issue · comments

With the new snapdragon elite powered devices I think windows on arm64 will gain more traction.
Therefore, I think it would be great to add support for windows on arm64.

When trying to compile on windows arm64 I am getting this error

lic: void __cdecl MediaKitEventLoopHandler::Dispose(__int64,bool)" (?Dispose@MediaKitEventLoopHandler@@QEAAX_J_N@Z) [C:\Users\dario\dev\dakanji\build\windows\arm64\plugins\media_kit_native_event_loop\shared\media_kit_native_event_loop.vcxproj]
..\..\..\libmpv\libmpv.dll.a : warning LNK4272: library machine type 'x64' conflicts with target machine type 'ARM64' [C:\Users\dario\dev\dakanji\build\windows\arm64\plugins\media_kit_native_event_loop\shared\media_kit_native_event_loop.vcxproj]
C:\Users\dario\dev\dakanji\build\windows\arm64\plugins\media_kit_native_event_loop\shared\Debug\media_kit_native_event_loop.dll : fatal error LNK1120: 3 unresolved externals [C:\Users\dario\dev\dakanji\build\windows\arm64\plugins\media_kit_native_event_loop\shared\media_kit_native_event_loop.vcxproj]

Is there a way to make this package work on windows arm64?

I'd also be interested in doing this in the future

Based on previous similar experiences, I think you could compile/generate libmpv.dll from the mpv repo for arm64 and x86 and replace the existing dll with it, so it'd support both architectures