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

Many Issues compiling example project #80

Open
jamldev opened this issue Mar 30, 2022 · 8 comments
Open

Many Issues compiling example project #80

jamldev opened this issue Mar 30, 2022 · 8 comments

Comments

@jamldev
Copy link

jamldev commented Mar 30, 2022

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!

@Sunbreak
Copy link
Collaborator

woodemi/quick_notify#8

@jamldev
Copy link
Author

jamldev commented Mar 31, 2022

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
Copy link
Author

jamldev commented Mar 31, 2022

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

@Sunbreak
Copy link
Collaborator

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

@jamldev
Copy link
Author

jamldev commented Apr 1, 2022

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.

@Sunbreak
Copy link
Collaborator

Sunbreak commented Apr 1, 2022

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?

@jamldev
Copy link
Author

jamldev commented Apr 1, 2022

@Sunbreak
Copy link
Collaborator

Sunbreak commented Apr 1, 2022

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

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

2 participants