1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Flutter] CMake Build Errors with Firebase Integration in Flutter Project

Discussão em 'Mobile' iniciado por Stack, Outubro 25, 2024 às 12:23.

  1. Stack

    Stack Membro Participativo

    I am encountering multiple CMake build errors when trying to integrate Firebase into my Flutter project for Windows. The errors indicate that the required CMakeLists.txt file is missing from the Firebase SDK directory, and there are non-existent targets related to Firebase components. Below are the specific error messages received during the build process:

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

    D:/infinity_pms_client/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 Steps to Reproduce:

    Set up the Flutter project with Firebase dependencies in pubspec.yaml. Run flutter build windows to compile the project. Observe the build errors related to CMake and Firebase.

    Expected Result: The project should build successfully without errors related to missing CMake files or non-existent Firebase targets.

    Actual Result: The build fails with multiple CMake errors as listed above.

    Has anyone else encountered similar CMake errors when integrating Firebase? What steps can be taken to resolve these missing files and target issues in the CMake configuration? Are there specific versions of Firebase or Flutter that are known to work without these build issues? Thank you!

    Continue reading...

Compartilhe esta Página