yanshouwang / bluetooth_low_energy

A Flutter plugin for controlling the bluetooth low energy.
https://pub.dev/packages/bluetooth_low_energy
MIT License
40 stars 14 forks source link

build failure on Windows #73

Closed SungchangChoi closed 1 month ago

SungchangChoi commented 1 month ago

Hi, I'm trying to use BLE on Windows and when I build with example code, I got this log blow. (bluetooth_low_energy is 5.0.7)

Building Windows application... D:\WORK\FITSIG\CODE\FT\ble_test\windows\flutter\ephemeral.plugin_symlinks\bluetooth_low_energy_windows\windows\my_central_manager.h(1,1): error C2220: ���� ����� ������ ó���˴ϴ�. [D:\WORK\FITSIG\CODE\FT\ble_test\build\windows\x64\plugins\bluetooth_low_energy_windows\bluetooth_low_energy_windows_plugin.vcxproj] D:\WORK\FITSIG\CODE\FT\ble_test\windows\flutter\ephemeral.plugin_symlinks\bluetooth_low_energy_windows\windows\my_central_manager.h(1,1): warning C4819: ���� �ڵ� ������(949)���� ǥ���� �� ���� ���ڰ� ���Ͽ� ��� �ֽ��ϴ�. �����Ͱ� �սǵ��� �ʰ� �Ϸ��� �ش� ������ �����ڵ� �������� �����Ͻʽÿ�. [D:\WORK\FITSIG\CODE\FT\ble_test\build\windows\x64\plugins\bluetooth_low_energy_windows\bluetooth_low_energy_windows_plugin.vcxproj] D:\WORK\FITSIG\CODE\FT\ble_test\windows\flutter\ephemeral.plugin_symlinks\bluetooth_low_energy_windows\windows\my_central_manager.h(1,1): error C2220: ���� ����� ������ ó���˴ϴ�. [D:\WORK\FITSIG\CODE\FT\ble_test\build\windows\x64\plugins\bluetooth_low_energy_windows\bluetooth_low_energy_windows_plugin.vcxproj] D:\WORK\FITSIG\CODE\FT\ble_test\windows\flutter\ephemeral.plugin_symlinks\bluetooth_low_energy_windows\windows\my_central_manager.h(1,1): warning C4819: ���� �ڵ� ������(949)���� ǥ���� �� ���� ���ڰ� ���Ͽ� ��� �ֽ��ϴ�. �����Ͱ� �սǵ��� �ʰ� �Ϸ��� �ش� ������ �����ڵ� �������� �����Ͻʽÿ�. [D:\WORK\FITSIG\CODE\FT\ble_test\build\windows\x64\plugins\bluetooth_low_energy_windows\bluetooth_low_energy_windows_plugin.vcxproj] D:\WORK\FITSIG\CODE\FT\ble_test\windows\flutter\ephemeral.plugin_symlinks\bluetooth_low_energy_windows\windows\my_central_manager.cpp(1,1): error C2220: ���� ����� ������ ó���˴ϴ�. [D:\WORK\FITSIG\CODE\FT\ble_test\build\windows\x64\plugins\bluetooth_low_energy_windows\bluetooth_low_energy_windows_plugin.vcxproj] D:\WORK\FITSIG\CODE\FT\ble_test\windows\flutter\ephemeral.plugin_symlinks\bluetooth_low_energy_windows\windows\my_central_manager.cpp(1,1): warning C4819: ���� �ڵ� ������(949)���� ǥ���� �� ���� ���ڰ� ���Ͽ� ��� �ֽ��ϴ�. �����Ͱ� �սǵ��� �ʰ� �Ϸ��� �ش� ������ �����ڵ� �������� �����Ͻʽÿ�. [D:\WORK\FITSIG\CODE\FT\ble_test\build\windows\x64\plugins\bluetooth_low_energy_windows\bluetooth_low_energy_windows_plugin.vcxproj] D:\WORK\FITSIG\CODE\FT\ble_test\windows\flutter\ephemeral.plugin_symlinks\bluetooth_low_energy_windows\windows\my_central_manager.h(1,1): warning C4819: ���� �ڵ� ������(949)���� ǥ���� �� ���� ���ڰ� ���Ͽ� ��� �ֽ��ϴ�. �����Ͱ� �սǵ��� �ʰ� �Ϸ��� �ش� ������ �����ڵ� �������� �����Ͻʽÿ�. [D:\WORK\FITSIG\CODE\FT\ble_test\build\windows\x64\plugins\bluetooth_low_energy_windows\bluetooth_low_energy_windows_plugin.vcxproj] D:\WORK\FITSIG\CODE\FT\ble_test\windows\flutter\ephemeral.plugin_symlinks\bluetooth_low_energy_windows\windows\my_central_manager.cpp(678,33): error C2039: 'format': 'std'�� ����� �ƴմϴ�. [D:\WORK\FITSIG\CODE\FT\ble_test\build\windows\x64\plugins\bluetooth_low_energy_windows\bluetooth_low_energy_windows_plugin.vcxproj] D:\WORK\FITSIG\CODE\FT\ble_test\windows\flutter\ephemeral.plugin_symlinks\bluetooth_low_energy_windows\windows\my_central_manager.cpp(678,39): error C3861: 'format': �ĺ��ڸ� ã�� �� �����ϴ�. [D:\WORK\FITSIG\CODE\FT\ble_test\build\windows\x64\plugins\bluetooth_low_energy_windows\bluetooth_low_energy_windows_plugin.vcxproj] D:\WORK\FITSIG\CODE\FT\ble_test\windows\flutter\ephemeral.plugin_symlinks\bluetooth_low_energy_windows\windows\my_central_manager.cpp(687,33): error C2039: 'format': 'std'�� ����� �ƴմϴ�. [D:\WORK\FITSIG\CODE\FT\ble_test\build\windows\x64\plugins\bluetooth_low_energy_windows\bluetooth_low_energy_windows_plugin.vcxproj] D:\WORK\FITSIG\CODE\FT\ble_test\windows\flutter\ephemeral.plugin_symlinks\bluetooth_low_energy_windows\windows\my_central_manager.cpp(687,39): error C3861: 'format': �ĺ��ڸ� ã�� �� �����ϴ�. [D:\WORK\FITSIG\CODE\FT\ble_test\build\windows\x64\plugins\bluetooth_low_energy_windows\bluetooth_low_energy_windows_plugin.vcxproj] D:\WORK\FITSIG\CODE\FT\ble_test\windows\flutter\ephemeral.plugin_symlinks\bluetooth_low_energy_windows\windows\my_central_manager.cpp(805,15): error C2039: 'format': 'std'�� ����� �ƴմϴ�. [D:\WORK\FITSIG\CODE\FT\ble_test\build\windows\x64\plugins\bluetooth_low_energy_windows\bluetooth_low_energy_windows_plugin.vcxproj] D:\WORK\FITSIG\CODE\FT\ble_test\windows\flutter\ephemeral.plugin_symlinks\bluetooth_low_energy_windows\windows\my_central_manager.cpp(805,21): error C3861: 'format': �ĺ��ڸ� ã�� �� �����ϴ�. [D:\WORK\FITSIG\CODE\FT\ble_test\build\windows\x64\plugins\bluetooth_low_energy_windows\bluetooth_low_energy_windows_plugin.vcxproj] D:\WORK\FITSIG\CODE\FT\ble_test\windows\flutter\ephemeral.plugin_symlinks\bluetooth_low_energy_windows\windows\my_central_manager.cpp(856,13): error C2039: 'formatter': 'std'�� ����� �ƴմϴ�. [D:\WORK\FITSIG\CODE\FT\ble_test\build\windows\x64\plugins\bluetooth_low_energy_windows\bluetooth_low_energy_windows_plugin.vcxproj] D:\WORK\FITSIG\CODE\FT\ble_test\windows\flutter\ephemeral.plugin_symlinks\bluetooth_low_energy_windows\windows\my_central_manager.cpp(856,22): error C3856: 'formatter': ��ȣ�� Ŭ���� ���ø���(��) �ƴմϴ�. [D:\WORK\FITSIG\CODE\FT\ble_test\build\windows\x64\plugins\bluetooth_low_energy_windows\bluetooth_low_energy_windows_plugin.vcxproj] D:\WORK\FITSIG\CODE\FT\ble_test\windows\flutter\ephemeral.plugin_symlinks\bluetooth_low_energy_windows\windows\my_central_manager.cpp(856,30): error C2143: ���� ����: ';'��(��) 'winrt::guid' �տ� �����ϴ�. [D:\WORK\FITSIG\CODE\FT\ble_test\build\windows\x64\plugins\bluetooth_low_energy_windows\bluetooth_low_energy_windows_plugin.vcxproj] D:\WORK\FITSIG\CODE\FT\ble_test\windows\flutter\ephemeral.plugin_symlinks\bluetooth_low_energy_windows\windows\my_central_manager.cpp(856,1): error C2913: ������ Ư��ȭ. 'formatter'��(��) Ŭ���� ���ø��� Ư��ȭ�� �ƴմϴ�. [D:\WORK\FITSIG\CODE\FT\ble_test\build\windows\x64\plugins\bluetooth_low_energy_windows\bluetooth_low_energy_windows_plugin.vcxproj] D:\WORK\FITSIG\CODE\FT\ble_test\windows\flutter\ephemeral.plugin_symlinks\bluetooth_low_energy_windows\windows\my_central_manager.cpp(856,34): error C2059: ���� ����: '>' [D:\WORK\FITSIG\CODE\FT\ble_test\build\windows\x64\plugins\bluetooth_low_energy_windows\bluetooth_low_energy_windows_plugin.vcxproj] D:\WORK\FITSIG\CODE\FT\ble_test\windows\flutter\ephemeral.plugin_symlinks\bluetooth_low_energy_windows\windows\my_central_manager.cpp(856,43): error C2039: 'formatter': 'std'�� ����� �ƴմϴ�. [D:\WORK\FITSIG\CODE\FT\ble_test\build\windows\x64\plugins\bluetooth_low_energy_windows\bluetooth_low_energy_windows_plugin.vcxproj] D:\WORK\FITSIG\CODE\FT\ble_test\windows\flutter\ephemeral.plugin_symlinks\bluetooth_low_energy_windows\windows\my_central_manager.cpp(856,52): error C2059: ���� ����: '<' [D:\WORK\FITSIG\CODE\FT\ble_test\build\windows\x64\plugins\bluetooth_low_energy_windows\bluetooth_low_energy_windows_plugin.vcxproj] D:\WORK\FITSIG\CODE\FT\ble_test\windows\flutter\ephemeral.plugin_symlinks\bluetooth_low_energy_windows\windows\my_central_manager.cpp(857,1): error C2143: ���� ����: ';'��(��) '{' �տ� �����ϴ�. [D:\WORK\FITSIG\CODE\FT\ble_test\build\windows\x64\plugins\bluetooth_low_energy_windows\bluetooth_low_energy_windows_plugin.vcxproj] D:\WORK\FITSIG\CODE\FT\ble_test\windows\flutter\ephemeral.plugin_symlinks\bluetooth_low_energy_windows\windows\my_central_manager.cpp(857,1): error C2447: '{': �Լ� ����� �����ϴ�. ���� ��Ÿ���� ���� ����Դϱ�? [D:\WORK\FITSIG\CODE\FT\ble_test\build\windows\x64\plugins\bluetooth_low_energy_windows\bluetooth_low_energy_windows_plugin.vcxproj] Error: Build process failed.

flutter doctor says : Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 3.22.1, on Microsoft Windows [Version 10.0.19045.4412], locale ko-KR) [√] Windows Version (Installed version of Windows is version 10 or higher) [√] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.1.1) [√] Android Studio (version 2022.1) [√] VS Code (version 1.89.0) [√] Connected device (2 available) [√] Network resources • No issues found!

my Windows is : Windows 10 version 22H2 (OS build 19045.4412)

if any other info you need, tell me. Thank for your flutter Bluetooth low energy, anyway~

SungchangChoi commented 1 month ago

on android, it builds.

yanshouwang commented 1 month ago

Run flutter clean in the example folder and build again to see if this error can be resolved?

And you can switch to the 6.0.0 branch and run flutter clean and flutter build windows -v to see if this still happen.

SungchangChoi commented 1 month ago

After Visual studio update, it(6.0.0) works~! Thanks

72