Skip to content

The problem getting on windows debugging, how can solve this issue #1608

Open
@Yasilkhan

Description

@Yasilkhan

Launching lib\main.dart on Windows in debug mode...
Building Windows application...
CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:119 (add_subdirectory):
The source directory

C:/Users/DELL/model_clon_pizza_romi_new/build/windows/x64/extracted/firebase_cpp_sdk_windows

does not contain a CMakeLists.txt file.

CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:125 (get_target_property):
get_target_property() called with non-existent target "firebase_app".

CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:126 (string):
string sub-command REPLACE requires at least four arguments.

CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:127 (set_target_properties):
set_target_properties Can not find target to add properties to:
firebase_app

CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:125 (get_target_property):
get_target_property() called with non-existent target "firebase_auth".

CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:126 (string):
string sub-command REPLACE requires at least four arguments.

CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:127 (set_target_properties):
set_target_properties Can not find target to add properties to:
firebase_auth

CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:125 (get_target_property):
get_target_property() called with non-existent target "firebase_storage".

CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:126 (string):
string sub-command REPLACE requires at least four arguments.

CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:127 (set_target_properties):
set_target_properties Can not find target to add properties to:
firebase_storage

CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:125 (get_target_property):
get_target_property() called with non-existent target "firebase_firestore".

CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:126 (string):
string sub-command REPLACE requires at least four arguments.

CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:127 (set_target_properties):
set_target_properties Can not find target to add properties to:
firebase_firestore

Error: Unable to generate build files

I followed these command
flutter clean
flutter pub upgrade firebase core
flutter pub get
flutter build [windows]

but three have no changes still getting error

Activity

google-oss-bot

google-oss-bot commented on Jun 13, 2024

@google-oss-bot

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.
JamalB96

JamalB96 commented on Jun 17, 2024

@JamalB96

I encountered the same problem when connecting Firebase and trying to run it on Windows

paulpv

paulpv commented on Jul 1, 2024

@paulpv

Seems like a problem with the flutterfire scripts and not firebase-cpp-sdk itself.

Given the above error:

CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:119 (add_subdirectory):
The source directory
C:/Users/DELL/model_clon_pizza_romi_new/build/windows/x64/extracted/firebase_cpp_sdk_windows
does not contain a CMakeLists.txt file.

That error looks to be coming from:
https://github.com/firebase/flutterfire/blob/a292282d0e64808e4498f065d033852f89795dc0/packages/firebase_core/firebase_core/windows/CMakeLists.txt#L28

I downloaded https://dl.google.com/firebase/sdk/cpp/firebase_cpp_sdk_windows_12.1.0.zip and unzipped it and there is indeed a CMakeLists.txt:

% pwd
/Users/paul.peavyhouse/Downloads/firebase_cpp_sdk_windows
% ls -la
total 12984
drwxr-xr-x@  11 paul.peavyhouse  staff      352 Jun 26 04:33 .
drwx------@ 239 paul.peavyhouse  staff     7648 Jul  1 09:18 ..
-rw-r--r--@   1 paul.peavyhouse  staff     4609 Jun 26 04:05 CMakeLists.txt
-rw-r--r--@   1 paul.peavyhouse  staff   114609 Jun 26 04:05 NOTICES
-rw-r--r--@   1 paul.peavyhouse  staff   191453 Jun 26 04:08 file_hashes.txt
-rw-r--r--@   1 paul.peavyhouse  staff  6198889 Jun 26 04:07 generate_xml_from_google_services_json.exe
-rwxr-xr-x@   1 paul.peavyhouse  staff    17455 Jun 26 04:07 generate_xml_from_google_services_json.py
drwxr-xr-x@   4 paul.peavyhouse  staff      128 Jun 26 04:05 include
drwxr-xr-x@   3 paul.peavyhouse  staff       96 Jun 26 04:33 libs
-rw-r--r--@   1 paul.peavyhouse  staff   103222 Jun 26 04:05 readme.md
-rw-r--r--@   1 paul.peavyhouse  staff      190 Jun 26 04:33 readme_windows.md
myhexolink

myhexolink commented on Jul 29, 2024

@myhexolink

I have the same issue.

CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:119 (add_subdirectory):
  The source directory

    C:/Users/USER/StudioProjects/hexolink4/build/windows/x64/extracted/firebase_cpp_sdk_windows

  does not contain a CMakeLists.txt file.


CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:125 (get_target_property):
  get_target_property() called with non-existent target "firebase_app".


CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:126 (string):
  string sub-command REPLACE requires at least four arguments.


CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:127 (set_target_properties):
  set_target_properties Can not find target to add properties to:
  firebase_app


CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:125 (get_target_property):
  get_target_property() called with non-existent target "firebase_auth".


CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:126 (string):
  string sub-command REPLACE requires at least four arguments.


CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:127 (set_target_properties):
  set_target_properties Can not find target to add properties to:
  firebase_auth


CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:125 (get_target_property):
  get_target_property() called with non-existent target "firebase_storage".


CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:126 (string):
  string sub-command REPLACE requires at least four arguments.


CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:127 (set_target_properties):
  set_target_properties Can not find target to add properties to:
  firebase_storage


CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:125 (get_target_property):
  get_target_property() called with non-existent target "firebase_firestore".


CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:126 (string):
  string sub-command REPLACE requires at least four arguments.


CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:127 (set_target_properties):
  set_target_properties Can not find target to add properties to:
  firebase_firestore


Error: Unable to generate build files

So, how to fix it?

alfaruqrizqi18

alfaruqrizqi18 commented on Sep 19, 2024

@alfaruqrizqi18

any update for this problem?

Yasilkhan

Yasilkhan commented on Sep 19, 2024

@Yasilkhan
Author

Please delete build/windows/x64/CMakeLists.txt file and CMakeFile folder then flutter clean command run on your terminal and then flutter run command. I solved this error in this way

md-rifatkhan

md-rifatkhan commented on Dec 26, 2024

@md-rifatkhan

Any updates? I've stopped my app and when tried to rerun, get this issue and still same:

Launching lib\main.dart on Windows in debug mode...
Building Windows application...
cmake -E tar: error: ZIP decompression failed (-5)
CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:119 (add_subdirectory):
  The source directory

    E:/Android Project/Tools/anihon/build/windows/x64/extracted/firebase_cpp_sdk_windows

  does not contain a CMakeLists.txt file.


CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:125 (get_target_property):
  get_target_property() called with non-existent target "firebase_app".


CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:126 (string):
  string sub-command REPLACE requires at least four arguments.


CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:127 (set_target_properties):
  set_target_properties Can not find target to add properties to:
  firebase_app


CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:125 (get_target_property):
  get_target_property() called with non-existent target "firebase_auth".


CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:126 (string):
  string sub-command REPLACE requires at least four arguments.


CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:127 (set_target_properties):
  set_target_properties Can not find target to add properties to:
  firebase_auth


CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:125 (get_target_property):
  get_target_property() called with non-existent target "firebase_storage".


CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:126 (string):
  string sub-command REPLACE requires at least four arguments.


CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:127 (set_target_properties):
  set_target_properties Can not find target to add properties to:
  firebase_storage


CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:125 (get_target_property):
  get_target_property() called with non-existent target "firebase_firestore".


CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:126 (string):
  string sub-command REPLACE requires at least four arguments.


CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:127 (set_target_properties):
  set_target_properties Can not find target to add properties to:
  firebase_firestore


Error: Unable to generate build files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @paulpv@google-oss-bot@alfaruqrizqi18@md-rifatkhan@JamalB96

        Issue actions

          The problem getting on windows debugging, how can solve this issue · Issue #1608 · firebase/firebase-cpp-sdk