quick_blue icon indicating copy to clipboard operation
quick_blue copied to clipboard

Many Issues compiling example project

Open jamldev opened this issue 3 years ago • 8 comments

Hello!

When compiling the example project for windows (or just adding the quick_blue: ^0.4.1+1 depedency) will give the error code:

Building Windows application... NUGET.EXE not found. CMake Error at flutter/ephemeral/.plugin_symlinks/quick_blue_windows/windows/CMakeLists.txt:10 (message): Please install this executable, and run CMake again.

Then if I add nuget.exe to the root project directory, it gives the following build error:

D:\vs\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(157,5): error MSB3073: The command "setlocal [D:\code\quick_blue-master\quick_blue_example\build\windows\INSTALL.vcxproj] D:\vs\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(157,5): error MSB3073: D:\vs\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe -DBUILD_TYPE=Debug -P cmake_install.cmake [D:\code\quick_blue-master\quick_blue_example\build\windows\INSTALL.vcxproj] D:\vs\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(157,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [D:\code\quick_blue-master\quick_blue_example\build\windows\INSTALL.vcxproj] D:\vs\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(157,5): error MSB3073: :cmEnd [D:\code\quick_blue-master\quick_blue_example\build\windows\INSTALL.vcxproj] D:\vs\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(157,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone [D:\code\quick_blue-master\quick_blue_example\build\windows\INSTALL.vcxproj] D:\vs\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(157,5): error MSB3073: :cmErrorLevel [D:\code\quick_blue-master\quick_blue_example\build\windows\INSTALL.vcxproj] D:\vs\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(157,5): error MSB3073: exit /b %1 [D:\code\quick_blue-master\quick_blue_example\build\windows\INSTALL.vcxproj] D:\vs\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(157,5): error MSB3073: :cmDone [D:\code\quick_blue-master\quick_blue_example\build\windows\INSTALL.vcxproj] D:\vs\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(157,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd [D:\code\quick_blue-master\quick_blue_example\build\windows\INSTALL.vcxproj] D:\vs\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(157,5): error MSB3073: :VCEnd" exited with code 1. [D:\code\quick_blue-master\quick_blue_example\build\windows\INSTALL.vcxproj] Exception: Build process failed.

Anything I still need to install or do? I can't compile your example project or even the package in any way, and help would be appreciated!

jamldev avatar Mar 30 '22 16:03 jamldev

https://github.com/woodemi/quick_notify/discussions/8

Sunbreak avatar Mar 30 '22 16:03 Sunbreak

woodemi/quick_notify#8

I did all the steps and I'm getting this error:

`CMake Error at flutter/ephemeral/.plugin_symlinks/quick_blue_windows/windows/CMakeLists.txt:6 (target_link_libraries): Cannot specify link libraries for target "PRIVATE" which is not built by this project.

Exception: Unable to generate build files`

I have added nuget to PATH, when I use "nuget help" on cmd it shows all commands,

Here is my CMake file: CMakeLists.txt

jamldev avatar Mar 31 '22 12:03 jamldev

Can you share your Cmake file? I think most issues stem from the file

jamldev avatar Mar 31 '22 15:03 jamldev

Can you share your Cmake file? I think most issues stem from the file

Mine is in the example. And it passes the CI build: https://github.com/woodemi/quick_blue/actions/runs/2028264252

Please post your flutter doctor -v and full error log

Sunbreak avatar Mar 31 '22 23:03 Sunbreak

Flutter doctor -v:

[√] Flutter (Channel stable, 2.10.4, on Microsoft Windows [Version 10.0.19041.450], locale en-US) • Flutter version 2.10.4 at D:\code\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision c860cba910 (7 days ago), 2022-03-25 00:23:12 -0500 • Engine revision 57d3bac3dd • Dart version 2.16.2 • DevTools version 2.9.2

[√] Android toolchain - develop for Android devices (Android SDK version 32.0.0) • Android SDK at C:\Users\vista\AppData\Local\Android\sdk • Platform android-32, build-tools 32.0.0 • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822) • All Android licenses accepted.

[√] Chrome - develop for the web • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.1.2) • Visual Studio at D:\vs • Visual Studio Community 2022 version 17.1.32319.34 • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2021.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 • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)

[√] VS Code (version 1.66.0) • VS Code at C:\Users\vista\AppData\Local\Programs\Microsoft VS Code • Flutter extension can be installed from: https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[√] Connected device (3 available) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19041.450] • Chrome (web) • chrome • web-javascript • Google Chrome 99.0.4844.84 • Edge (web) • edge • web-javascript • Microsoft Edge 99.0.1150.55

[√] HTTP Host Availability • All required HTTP hosts are available

• No issues found!


When compiling the quick_blue_example, fresh download, I get this error now:

Launching lib\main.dart on Windows in debug mode... Building Windows application... Error connecting to the service protocol: failed to connect to http://127.0.0.1:63759/1DHSDbgqb2w=/


Should I modify the CMake? I have nuget installed, but I'm already using the one in the quick_blue_example you gave.

jamldev avatar Apr 01 '22 09:04 jamldev

Launching lib\main.dart on Windows in debug mode... Building Windows application... Error connecting to the service protocol: failed to connect to http://127.0.0.1:63759/1DHSDbgqb2w=/

Error indicated that building was success but attaching debugger failed

Could you post flutter run -d windows -v or flutter build windows -v?

Sunbreak avatar Apr 01 '22 09:04 Sunbreak

Both indecated that build is success. But flutter run -d windows -v failed with attaching to debugger

I suggest use Visual Studio 2019. Flutter haven't support Visual Studio 2022 officially and I haven't test on latter

Sunbreak avatar Apr 01 '22 21:04 Sunbreak