auto_updater
auto_updater copied to clipboard
Building release on a M1 running Parallels with Windows 11
Hello,
I'm currently trying to run a release build on Parallels with Windows 11 on my M1 and running into the following issue:
Launching lib\main.dart on Windows in debug mode...
auto_updater_plugin.obj : error LNK2019: Verweis auf nicht aufgel�stes externes Symbol "__imp_FlutterDesktopPluginRegistrarSetDestructionHandler" in Funktion ""public: class flutter::PluginRegistrarWindows * __cdecl flutter::PluginRegistrarManager::GetRegistrar<class flutter::PluginRegistrarWindows>(struct FlutterDesktopPluginRegistrar *)" (??$GetRegistrar@VPluginRegistrarWindows@flutter@@@PluginRegistrarManager@flutter@@QEAAPEAVPluginRegistrarWindows@1@PEAUFlutterDesktopPluginRegistrar@@@Z)". [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
auto_updater_plugin.obj : error LNK2019: Verweis auf nicht aufgel�stes externes Symbol "__imp_FlutterDesktopPluginRegistrarGetView" in Funktion ""public: __cdecl flutter::PluginRegistrarWindows::PluginRegistrarWindows(struct FlutterDesktopPluginRegistrar *)" (??0PluginRegistrarWindows@flutter@@QEAA@PEAUFlutterDesktopPluginRegistrar@@@Z)". [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
auto_updater_plugin.obj : error LNK2019: Verweis auf nicht aufgel�stes externes Symbol "__imp_win_sparkle_init" in Funktion ""public: void __cdecl `anonymous namespace'::AutoUpdater::SetFeedURL(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?SetFeedURL@AutoUpdater@?A0xbda41655@@QEAAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)". [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
auto_updater_plugin.obj : error LNK2019: Verweis auf nicht aufgel�stes externes Symbol "__imp_win_sparkle_set_appcast_url" in Funktion ""public: void __cdecl `anonymous namespace'::AutoUpdater::SetFeedURL(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?SetFeedURL@AutoUpdater@?A0xbda41655@@QEAAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)". [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
auto_updater_plugin.obj : error LNK2019: Verweis auf nicht aufgel�stes externes Symbol "__imp_win_sparkle_set_update_check_interval" in Funktion ""public: void __cdecl `anonymous namespace'::AutoUpdater::SetScheduledCheckInterval(int)" (?SetScheduledCheckInterval@AutoUpdater@?A0xbda41655@@QEAAXH@Z)". [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
auto_updater_plugin.obj : error LNK2019: Verweis auf nicht aufgel�stes externes Symbol "__imp_win_sparkle_check_update_with_ui" in Funktion ""public: void __cdecl `anonymous namespace'::AutoUpdater::CheckForUpdates(void)" (?CheckForUpdates@AutoUpdater@?A0xbda41655@@QEAAXXZ)". [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
auto_updater_plugin.obj : error LNK2019: Verweis auf nicht aufgel�stes externes Symbol "__imp_win_sparkle_check_update_without_ui" in Funktion ""public: void __cdecl `anonymous namespace'::AutoUpdater::CheckForUpdatesWithoutUI(void)" (?CheckForUpdatesWithoutUI@AutoUpdater@?A0xbda41655@@QEAAXXZ)". [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
flutter_wrapper_plugin.lib(core_implementations.obj) : error LNK2019: Verweis auf nicht aufgel�stes externes Symbol "__imp_FlutterDesktopMessengerSend" in Funktion ""public: virtual void __cdecl flutter::BinaryMessengerImpl::Send(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned char const *,unsigned __int64,class std::function<void __cdecl(unsigned char const *,unsigned __int64)>)const " (?Send@BinaryMessengerImpl@flutter@@UEBAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBE_KV?$function@$$A6AXPEBE_K@Z@4@@Z)". [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
flutter_wrapper_plugin.lib(core_implementations.obj) : error LNK2019: Verweis auf nicht aufgel�stes externes Symbol "__imp_FlutterDesktopMessengerSendWithReply" in Funktion ""public: virtual void __cdecl flutter::BinaryMessengerImpl::Send(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned char const *,unsigned __int64,class std::function<void __cdecl(unsigned char const *,unsigned __int64)>)const " (?Send@BinaryMessengerImpl@flutter@@UEBAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBE_KV?$function@$$A6AXPEBE_K@Z@4@@Z)". [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
flutter_wrapper_plugin.lib(core_implementations.obj) : error LNK2019: Verweis auf nicht aufgel�stes externes Symbol "__imp_FlutterDesktopMessengerSendResponse" in Funktion ""public: __cdecl <lambda_6886f86d7d47df0a498d9e8a525eb601>::operator()(unsigned char const *,unsigned __int64)" (??R<lambda_6886f86d7d47df0a498d9e8a525eb601>@@QEAA@PEBE_K@Z)". [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
flutter_wrapper_plugin.lib(core_implementations.obj) : error LNK2019: Verweis auf nicht aufgel�stes externes Symbol "__imp_FlutterDesktopMessengerSetCallback" in Funktion ""public: virtual void __cdecl flutter::BinaryMessengerImpl::SetMessageHandler(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::function<void __cdecl(unsigned char const *,unsigned __int64,class std::function<void __cdecl(unsigned char const *,unsigned __int64)>)>)" (?SetMessageHandler@BinaryMessengerImpl@flutter@@UEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$function@$$A6AXPEBE_KV?$function@$$A6AXPEBE_K@Z@std@@@Z@4@@Z)". [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
flutter_wrapper_plugin.lib(core_implementations.obj) : error LNK2019: Verweis auf nicht aufgel�stes externes Symbol "__imp_FlutterDesktopTextureRegistrarRegisterExternalTexture" in Funktion ""public: virtual __int64 __cdecl flutter::TextureRegistrarImpl::RegisterTexture(class std::variant<class flutter::PixelBufferTexture,class flutter::GpuSurfaceTexture> *)" (?RegisterTexture@TextureRegistrarImpl@flutter@@UEAA_JPEAV?$variant@VPixelBufferTexture@flutter@@VGpuSurfaceTexture@2@@std@@@Z)". [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
flutter_wrapper_plugin.lib(core_implementations.obj) : error LNK2019: Verweis auf nicht aufgel�stes externes Symbol "__imp_FlutterDesktopTextureRegistrarUnregisterExternalTexture" in Funktion ""public: virtual bool __cdecl flutter::TextureRegistrarImpl::UnregisterTexture(__int64)" (?UnregisterTexture@TextureRegistrarImpl@flutter@@UEAA_N_J@Z)". [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
flutter_wrapper_plugin.lib(core_implementations.obj) : error LNK2019: Verweis auf nicht aufgel�stes externes Symbol "__imp_FlutterDesktopTextureRegistrarMarkExternalTextureFrameAvailable" in Funktion ""public: virtual bool __cdecl flutter::TextureRegistrarImpl::MarkTextureFrameAvailable(__int64)" (?MarkTextureFrameAvailable@TextureRegistrarImpl@flutter@@UEAA_N_J@Z)". [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
flutter_wrapper_plugin.lib(plugin_registrar.obj) : error LNK2019: Verweis auf nicht aufgel�stes externes Symbol "__imp_FlutterDesktopPluginRegistrarGetMessenger" in Funktion ""public: __cdecl flutter::PluginRegistrar::PluginRegistrar(struct FlutterDesktopPluginRegistrar *)" (??0PluginRegistrar@flutter@@QEAA@PEAUFlutterDesktopPluginRegistrar@@@Z)". [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
flutter_wrapper_plugin.lib(plugin_registrar.obj) : error LNK2019: Verweis auf nicht aufgel�stes externes Symbol "__imp_FlutterDesktopRegistrarGetTextureRegistrar" in Funktion ""public: __cdecl flutter::PluginRegistrar::PluginRegistrar(struct FlutterDesktopPluginRegistrar *)" (??0PluginRegistrar@flutter@@QEAA@PEAUFlutterDesktopPluginRegistrar@@@Z)". [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
C:\lipko_desktop\windows\flutter\ephemeral\.plugin_symlinks\auto_updater\windows\WinSparkle-0.7.0\x64\Release\WinSparkle.lib : warning LNK4272: Bibliothekcomputertyp "x64" steht in Konflikt mit dem Zielcomputertyp "ARM64" [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
C:\lipko_desktop\windows\flutter\ephemeral\flutter_windows.dll.lib : warning LNK4272: Bibliothekcomputertyp "x64" steht in Konflikt mit dem Zielcomputertyp "ARM64" [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
C:\lipko_desktop\build\windows\plugins\auto_updater\Debug\auto_updater_plugin.dll : fatal error LNK1120: 16 nicht aufgel�ste Externe [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
Exception: Build process failed.
Exited (sigterm)
Here's my flutter doctor output:
[√] Flutter (Channel stable, 3.3.10, on Microsoft Windows [Version 10.0.22621.525], locale de-DE)
• Flutter version 3.3.10 on channel stable at C:\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 135454af32 (7 weeks ago), 2022-12-15 07:36:55 -0800
• Engine revision 3316dd8728
• Dart version 2.18.6
[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.4.4)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.4.33213.308
• Windows 10 SDK version 10.0.22621.0
[!] Android Studio (version 2022.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
X Unable to find bundled Java version.
• Try updating or re-installing Android Studio.
[√] VS Code (version 1.74.3)
• VS Code at C:\Users\verenazaiser\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.58.0
[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22621.525]
• Chrome (web) • chrome • web-javascript • Google Chrome 109.0.5414.120
• Edge (web) • edge • web-javascript • Microsoft Edge 109.0.1518.55
[√] HTTP Host Availability
• All required HTTP hosts are available
Anyone tried this before and maybe has a workaround/solution?
Thanks in advance!
long time no talk @novas1r1 there's no solution for this other than using x64 version of windows as flutter isn't supporting arm at the moment.
Please see this PR, winsparkle does not support arm64 yet.
https://github.com/vslavik/winsparkle/pull/249
@lijy91 it was merged two days ago :D
Please see this https://github.com/vslavik/winsparkle/pull/249, winsparkle does not support arm64 yet.
FYI: https://github.com/vslavik/winsparkle/commit/1163282b1a4556493efa701078ffb6273830f90c