Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Error on Windows Build - Even though we are not importing Zxing package for Windows #124

Open
kannaKannaK opened this issue Jan 19, 2024 · 0 comments

Comments

@kannaKannaK
Copy link

windows/flutter/CMakeLists.txt does not use FLUTTER_TARGET_PLATFORM, updating.
Building Windows application...
Nuget.exe not found, trying to download or use cached version.
C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\windows\flutter\ephemeral.plugin_symlinks\flutter_zxing\src\zxing\core\src\Pattern.h(197,10): warning C4244: 'return': conversion from 'const float_t' to 'float', possible loss of data [C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\build\windows\x64\plugins\flutter_zxing\shared\zxing\core\ZXing.vcxproj]
C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\windows\flutter\ephemeral.plugin_symlinks\flutter_zxing\src\zxing\core\src\qrcode\QRDecoder.cpp(309,30): warning C4101: 'e': unreferenced local variable [C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\build\windows\x64\plugins\flutter_zxing\shared\zxing\core\ZXing.vcxproj]
C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\windows\flutter\ephemeral.plugin_symlinks\flutter_zxing\src\zxing\core\src\qrcode\QRDetector.cpp(48,54): warning C4305: 'argument': truncation from 'double' to 'float' [C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\build\windows\x64\plugins\flutter_zxing\shared\zxing\core\ZXing.vcxproj]
C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\windows\flutter\ephemeral.plugin_symlinks\flutter_zxing\src\zxing\core\src\qrcode\QRDetector.cpp(636,19): warning C4244: 'initializing': conversion from 'int' to 'float', possible loss of data [C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\build\windows\x64\plugins\flutter_zxing\shared\zxing\core\ZXing.vcxproj]
C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\windows\flutter\ephemeral.plugin_symlinks\flutter_zxing\src\zxing\core\src\qrcode\QRDetector.cpp(786,25): warning C4244: 'argument': conversion from 'ptrdiff_t' to 'int', possible loss of data [C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\build\windows\x64\plugins\flutter_zxing\shared\zxing\core\ZXing.vcxproj]
C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\windows\flutter\ephemeral.plugin_symlinks\flutter_zxing\src\zxing\core\src\qrcode\QRDetector.cpp(787,25): warning C4244: 'argument': conversion from 'ptrdiff_t' to 'int', possible loss of data [C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\build\windows\x64\plugins\flutter_zxing\shared\zxing\core\ZXing.vcxproj]
C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\windows\flutter\ephemeral.plugin_symlinks\flutter_zxing\src\zxing\core\src\Pattern.h(197,10): warning C4244: 'return': conversion from 'const float_t' to 'float', possible loss of data [C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\build\windows\x64\plugins\flutter_zxing\shared\zxing\core\ZXing.vcxproj]
C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\windows\flutter\ephemeral.plugin_symlinks\flutter_zxing\src\zxing\core\src\ImageView.h(78,17): error C2589: '(': illegal token on right side of '::' [C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\build\windows\x64\plugins\flutter_zxing\shared\flutter_zxing.vcxproj]
C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\windows\flutter\ephemeral.plugin_symlinks\flutter_zxing\src\zxing\core\src\ImageView.h(78,12): error C2062: type 'unknown-type' unexpected [C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\build\windows\x64\plugins\flutter_zxing\shared\flutter_zxing.vcxproj]
C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\windows\flutter\ephemeral.plugin_symlinks\flutter_zxing\src\zxing\core\src\ImageView.h(78,17): error C2059: syntax error: ')' [C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\build\windows\x64\plugins\flutter_zxing\shared\flutter_zxing.vcxproj]
C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\windows\flutter\ephemeral.plugin_symlinks\flutter_zxing\src\zxing\core\src\ImageView.h(79,17): error C2589: '(': illegal token on right side of '::' [C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\build\windows\x64\plugins\flutter_zxing\shared\flutter_zxing.vcxproj]
C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\windows\flutter\ephemeral.plugin_symlinks\flutter_zxing\src\zxing\core\src\ImageView.h(79,12): error C2062: type 'unknown-type' unexpected [C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\build\windows\x64\plugins\flutter_zxing\shared\flutter_zxing.vcxproj]
C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\windows\flutter\ephemeral.plugin_symlinks\flutter_zxing\src\zxing\core\src\ImageView.h(79,17): error C2059: syntax error: ')' [C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\build\windows\x64\plugins\flutter_zxing\shared\flutter_zxing.vcxproj]
C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\windows\flutter\ephemeral.plugin_symlinks\flutter_zxing\src\zxing\core\src\ImageView.h(80,48): error C2589: '(': illegal token on right side of '::' [C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\build\windows\x64\plugins\flutter_zxing\shared\flutter_zxing.vcxproj]
C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\windows\flutter\ephemeral.plugin_symlinks\flutter_zxing\src\zxing\core\src\ImageView.h(80,43): error C2062: type 'unknown-type' unexpected [C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\build\windows\x64\plugins\flutter_zxing\shared\flutter_zxing.vcxproj]
C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\windows\flutter\ephemeral.plugin_symlinks\flutter_zxing\src\zxing\core\src\ImageView.h(80,48): error C2059: syntax error: ')' [C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\build\windows\x64\plugins\flutter_zxing\shared\flutter_zxing.vcxproj]
C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\windows\flutter\ephemeral.plugin_symlinks\flutter_zxing\src\zxing\core\src\ImageView.h(81,49): error C2589: '(': illegal token on right side of '::' [C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\build\windows\x64\plugins\flutter_zxing\shared\flutter_zxing.vcxproj]
C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\windows\flutter\ephemeral.plugin_symlinks\flutter_zxing\src\zxing\core\src\ImageView.h(81,44): error C2062: type 'unknown-type' unexpected [C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\build\windows\x64\plugins\flutter_zxing\shared\flutter_zxing.vcxproj]
C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\windows\flutter\ephemeral.plugin_symlinks\flutter_zxing\src\zxing\core\src\ImageView.h(81,49): error C2059: syntax error: ')' [C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\build\windows\x64\plugins\flutter_zxing\shared\flutter_zxing.vcxproj]
C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\windows\flutter\ephemeral.plugin_symlinks\flutter_zxing\src\native_zxing.cpp(21,9): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\build\windows\x64\plugins\flutter_zxing\shared\flutter_zxing.vcxproj]
C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\windows\flutter\ephemeral.plugin_symlinks\flutter_zxing\src\native_zxing.cpp(27,9): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\build\windows\x64\plugins\flutter_zxing\shared\flutter_zxing.vcxproj]
C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\windows\flutter\ephemeral.plugin_symlinks\flutter_zxing\src\native_zxing.cpp(33,43): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\build\windows\x64\plugins\flutter_zxing\shared\flutter_zxing.vcxproj]
C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\windows\flutter\ephemeral.plugin_symlinks\flutter_zxing\src\native_zxing.cpp(47,10): error C2375: 'setLogEnabled': redefinition; different linkage [C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\build\windows\x64\plugins\flutter_zxing\shared\flutter_zxing.vcxproj]
C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\windows\flutter\ephemeral.plugin_symlinks\flutter_zxing\src\native_zxing.cpp(53,17): error C2375: 'version': redefinition; different linkage [C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\build\windows\x64\plugins\flutter_zxing\shared\flutter_zxing.vcxproj]
C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\windows\flutter\ephemeral.plugin_symlinks\flutter_zxing\src\native_zxing.cpp(60,23): error C2375: 'readBarcode': redefinition; different linkage [C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\build\windows\x64\plugins\flutter_zxing\shared\flutter_zxing.vcxproj]
C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\windows\flutter\ephemeral.plugin_symlinks\flutter_zxing\src\native_zxing.cpp(86,24): error C2375: 'readBarcodes': redefinition; different linkage [C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\build\windows\x64\plugins\flutter_zxing\shared\flutter_zxing.vcxproj]
C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\windows\flutter\ephemeral.plugin_symlinks\flutter_zxing\src\native_zxing.cpp(119,25): error C2375: 'encodeBarcode': redefinition; different linkage [C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\build\windows\x64\plugins\flutter_zxing\shared\flutter_zxing.vcxproj]
C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\windows\flutter\ephemeral.plugin_symlinks\flutter_zxing\src\native_zxing.cpp(136,13): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\gecloud\jenkins\workspace\CI-CD\FX2\SMAX Windows\build\windows\x64\plugins\flutter_zxing\shared\flutter_zxing.vcxproj]
Building Windows application... 484.1s
Build process failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant