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

Not able to create windows build #1668

Open
1 of 5 tasks
WasimMemon opened this issue May 22, 2024 · 0 comments
Open
1 of 5 tasks

Not able to create windows build #1668

WasimMemon opened this issue May 22, 2024 · 0 comments
Labels
bug Something isn't working needs triage

Comments

@WasimMemon
Copy link

WasimMemon commented May 22, 2024

Describe the bug
When I try to create build for windows app with msix package I am getting this error.

Lib : v 5.11 and 5.12 (Tested in)

Building Windows application... 142.3s Unhandled exception: print_job.obj : error LNK2019: unresolved external symbol __imp_FPDF_InitLibraryWithConfig referenced in function "public: void __cdecl nfet::PrintJob::rasterPdf(class std::vector<unsigned char,class std::allocator<unsigned char> >,class std::vector<int,class std::allocator<int> >,double)" (?rasterPdf@PrintJob@nfet@@QEAAXV?$vector@EV?$allocator@E@std@@@std@@V?$vector@HV?$allocator@H@std@@@4@N@Z) [s_desktop\build\windows\arm64\plugins\printing\printing_plugin.vcxproj] print_job.obj : error LNK2019: unresolved external symbol __imp_FPDF_DestroyLibrary referenced in function "public: void __cdecl nfet::PrintJob::rasterPdf(class std::vector<unsigned char,class std::allocator<unsigned char> >,class std::vector<int,class std::allocator<int> >,double)" (?rasterPdf@PrintJob@nfet@@QEAAXV?$vector@EV?$allocator@E@std@@@std@@V?$vector@HV?$allocator@H@std@@@4@N@Z) [s_desktop\build\windows\arm64\plugins\printing\printing_plugin.vcxproj] print_job.obj : error LNK2019: unresolved external symbol __imp_FPDF_LoadMemDocument64 referenced in function "public: void __cdecl nfet::PrintJob::rasterPdf(class std::vector<unsigned char,class std::allocator<unsigned char> >,class std::vector<int,class std::allocator<int> >,double)" (?rasterPdf@PrintJob@nfet@@QEAAXV?$vector@EV?$allocator@E@std@@@std@@V?$vector@HV?$allocator@H@std@@@4@N@Z) [s_desktop\build\windows\arm64\plugins\printing\printing_plugin.vcxproj] print_job.obj : error LNK2019: unresolved external symbol __imp_FPDF_GetPageCount referenced in function "public: void __cdecl nfet::PrintJob::rasterPdf(class std::vector<unsigned char,class std::allocator<unsigned char> >,class std::vector<int,class std::allocator<int> >,double)" (?rasterPdf@PrintJob@nfet@@QEAAXV?$vector@EV?$allocator@E@std@@@std@@V?$vector@HV?$allocator@H@std@@@4@N@Z) [s_desktop\build\windows\arm64\plugins\printing\printing_plugin.vcxproj] print_job.obj : error LNK2019: unresolved external symbol __imp_FPDF_LoadPage referenced in function "public: void __cdecl nfet::PrintJob::rasterPdf(class std::vector<unsigned char,class std::allocator<unsigned char> >,class std::vector<int,class std::allocator<int> >,double)" (?rasterPdf@PrintJob@nfet@@QEAAXV?$vector@EV?$allocator@E@std@@@std@@V?$vector@HV?$allocator@H@std@@@4@N@Z) [s_desktop\build\windows\arm64\plugins\printing\printing_plugin.vcxproj] print_job.obj : error LNK2019: unresolved external symbol __imp_FPDF_GetPageWidth referenced in function "public: void __cdecl nfet::PrintJob::rasterPdf(class std::vector<unsigned char,class std::allocator<unsigned char> >,class std::vector<int,class std::allocator<int> >,double)" (?rasterPdf@PrintJob@nfet@@QEAAXV?$vector@EV?$allocator@E@std@@@std@@V?$vector@HV?$allocator@H@std@@@4@N@Z) [s_desktop\build\windows\arm64\plugins\printing\printing_plugin.vcxproj] print_job.obj : error LNK2019: unresolved external symbol __imp_FPDF_GetPageHeight referenced in function "public: void __cdecl nfet::PrintJob::rasterPdf(class std::vector<unsigned char,class std::allocator<unsigned char> >,class std::vector<int,class std::allocator<int> >,double)" (?rasterPdf@PrintJob@nfet@@QEAAXV?$vector@EV?$allocator@E@std@@@std@@V?$vector@HV?$allocator@H@std@@@4@N@Z) [s_desktop\build\windows\arm64\plugins\printing\printing_plugin.vcxproj] print_job.obj : error LNK2019: unresolved external symbol __imp_FPDF_RenderPage referenced in function "public: void __cdecl nfet::PrintJob::writeJob(class std::vector<unsigned char,class std::allocator<unsigned char> >)" (?writeJob@PrintJob@nfet@@QEAAXV?$vector@EV?$allocator@E@std@@@std@@@Z) [s_desktop\build\windows\arm64\plugins\printing\printing_plugin.vcxproj] print_job.obj : error LNK2019: unresolved external symbol __imp_FPDF_RenderPageBitmap referenced in function "public: void __cdecl nfet::PrintJob::rasterPdf(class std::vector<unsigned char,class std::allocator<unsigned char> >,class std::vector<int,class std::allocator<int> >,double)" (?rasterPdf@PrintJob@nfet@@QEAAXV?$vector@EV?$allocator@E@std@@@std@@V?$vector@HV?$allocator@H@std@@@4@N@Z) [s_desktop\build\windows\arm64\plugins\printing\printing_plugin.vcxproj] print_job.obj : error LNK2019: unresolved external symbol __imp_FPDF_ClosePage referenced in function "public: void __cdecl nfet::PrintJob::rasterPdf(class std::vector<unsigned char,class std::allocator<unsigned char> >,class std::vector<int,class std::allocator<int> >,double)" (?rasterPdf@PrintJob@nfet@@QEAAXV?$vector@EV?$allocator@E@std@@@std@@V?$vector@HV?$allocator@H@std@@@4@N@Z) [s_desktop\build\windows\arm64\plugins\printing\printing_plugin.vcxproj] print_job.obj : error LNK2019: unresolved external symbol __imp_FPDF_CloseDocument referenced in function "public: void __cdecl nfet::PrintJob::rasterPdf(class std::vector<unsigned char,class std::allocator<unsigned char> >,class std::vector<int,class std::allocator<int> >,double)" (?rasterPdf@PrintJob@nfet@@QEAAXV?$vector@EV?$allocator@E@std@@@std@@V?$vector@HV?$allocator@H@std@@@4@N@Z) [s_desktop\build\windows\arm64\plugins\printing\printing_plugin.vcxproj] print_job.obj : error LNK2019: unresolved external symbol __imp_FPDFBitmap_Create referenced in function "public: void __cdecl nfet::PrintJob::rasterPdf(class std::vector<unsigned char,class std::allocator<unsigned char> >,class std::vector<int,class std::allocator<int> >,double)" (?rasterPdf@PrintJob@nfet@@QEAAXV?$vector@EV?$allocator@E@std@@@std@@V?$vector@HV?$allocator@H@std@@@4@N@Z) [s_desktop\build\windows\arm64\plugins\printing\printing_plugin.vcxproj] print_job.obj : error LNK2019: unresolved external symbol __imp_FPDFBitmap_FillRect referenced in function "public: void __cdecl nfet::PrintJob::rasterPdf(class std::vector<unsigned char,class std::allocator<unsigned char> >,class std::vector<int,class std::allocator<int> >,double)" (?rasterPdf@PrintJob@nfet@@QEAAXV?$vector@EV?$allocator@E@std@@@std@@V?$vector@HV?$allocator@H@std@@@4@N@Z) [s_desktop\build\windows\arm64\plugins\printing\printing_plugin.vcxproj] print_job.obj : error LNK2019: unresolved external symbol __imp_FPDFBitmap_GetBuffer referenced in function "public: void __cdecl nfet::PrintJob::rasterPdf(class std::vector<unsigned char,class std::allocator<unsigned char> >,class std::vector<int,class std::allocator<int> >,double)" (?rasterPdf@PrintJob@nfet@@QEAAXV?$vector@EV?$allocator@E@std@@@std@@V?$vector@HV?$allocator@H@std@@@4@N@Z) [s_desktop\build\windows\arm64\plugins\printing\printing_plugin.vcxproj] print_job.obj : error LNK2019: unresolved external symbol __imp_FPDFBitmap_GetStride referenced in function "public: void __cdecl nfet::PrintJob::rasterPdf(class std::vector<unsigned char,class std::allocator<unsigned char> >,class std::vector<int,class std::allocator<int> >,double)" (?rasterPdf@PrintJob@nfet@@QEAAXV?$vector@EV?$allocator@E@std@@@std@@V?$vector@HV?$allocator@H@std@@@4@N@Z) [s_desktops_desktop\build\windows\arm64\plugins\printing\printing_plugin.vcxproj] print_job.obj : error LNK2019: unresolved external symbol __imp_FPDFBitmap_Destroy referenced in function "public: void __cdecl nfet::PrintJob::rasterPdf(class std::vector<unsigned char,class std::allocator<unsigned char> >,class std::vector<int,class std::allocator<int> >,double)" (?rasterPdf@PrintJob@nfet@@QEAAXV?$vector@EV?$allocator@E@std@@@std@@V?$vector@HV?$allocator@H@std@@@4@N@Z) [s_desktop\build\windows\arm64\plugins\printing\printing_plugin.vcxproj] ..\..\pdfium-src\lib\pdfium.dll.lib : warning LNK4272: library machine type 'x64' conflicts with target machine type 'ARM64' [s_desktop\build\windows\arm64\plugins\printing\printing_plugin.vcxproj] s_desktop\build\windows\arm64\plugins\printing\Release\printing_plugin.dll : fatal error LNK1120: 16 unresolved externals [s_desktop\build\windows\arm64\plugins\printing\printing_plugin.vcxproj] Build process failed.

To Reproduce
Build windows app with flutter build -d windows -v

Expected behavior
It should create build for windows app

Flutter Doctor
`[√] Flutter (Channel master, 3.22.0-39.0.pre.2, on Microsoft Windows [Version 10.0.22631.2861], locale en-US)
• Flutter version 3.22.0-39.0.pre.2 on channel master at C:\Users\wasimmemon\Desktop\flutter_windows_3.22.0-stable\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision d02292dbc4 (26 hours ago), 2024-05-20 21:25:37 -0700
• Engine revision c2ef01f6f1
• Dart version 3.5.0 (build 3.5.0-172.0.dev)
• DevTools version 2.36.0-dev.10

[√] Windows Version (Installed version of Windows is version 10 or higher)

[X] Android toolchain - develop for Android devices
X Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
flutter config --android-sdk to update to that location.

[X] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.11.0 Preview 1.0)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Preview
• Visual Studio Community 2022 version 17.11.34909.67
• The current Visual Studio installation is a pre-release version. It may not be supported by Flutter yet.
• Windows 10 SDK version 10.0.22621.0

[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).

[√] VS Code (version 1.89.1)
• VS Code at C:\Users\wasimmemon\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.88.0

[√] Connected device (2 available)
• Windows (desktop) • windows • windows-arm64 • Microsoft Windows [Version 10.0.22631.2861]
• Edge (web) • edge • web-javascript • Microsoft Edge 125.0.2535.51`

Desktop (please complete the following information):

  • iOS
  • Android
  • Browser
  • Windows
  • Linux
@WasimMemon WasimMemon added bug Something isn't working needs triage labels May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

1 participant