firebase-cpp-sdk icon indicating copy to clipboard operation
firebase-cpp-sdk copied to clipboard

Firebase C++ SDK - Windows 10 - Build Error

Open Nowz27 opened this issue 2 years ago • 10 comments

[REQUIRED] Please fill in the following fields:

  • Pre-built SDK from the website or open-source from this repo: Open-Source from this repo
  • Firebase C++ SDK version: 11.4.0
  • Main Firebase Components in concern: All
  • Other Firebase Components in use: All
  • Platform you are using the C++ SDK on: Windows
  • Platform you are targeting: Windows

[REQUIRED] Please describe the question here:

I m getting a build error while trying to build Firebase C++ SDK on Windows 10

Below is the error message while building using CMake :

CMake Error at desktop_build/external/src/firestore/cmake/firebase_utils.cmake:87 (message): firebase_execute_process(): command failed with non-zero exit code 1: C:/Program Files/CMake/bin/cmake.exe --build . -- (working directory: E:/Program Files/Firebase/firebase-cpp-sdk-11.4.0/desktop_build/external/src/firestore-build/external) Call Stack (most recent call first): desktop_build/external/src/firestore/cmake/external_rules.cmake:61 (firebase_execute_process) desktop_build/external/src/firestore/CMakeLists.txt:118 (download_external_sources)

Commands used for the building : mkdir desktop_build && cd desktop_build cmake -G “Visual Studio 16 2019” ..

I have both 2019 and 2022 versions of VS Community installed

Tried with Firebase C++ SDK Version - 11.3.0 as well and getting the same error

Not able to recognise the root cause of the error.

Nowz27 avatar Sep 19 '23 15:09 Nowz27

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.

google-oss-bot avatar Sep 19 '23 15:09 google-oss-bot

i am getting the same error

ouardito avatar Oct 28 '23 19:10 ouardito

why there is no one responding to this question, i am sure it is an error to be reviewed...

Thank you

ouardito avatar Oct 28 '23 19:10 ouardito

I have the same problem during ([ 46%] Performing patch step for 'snappy') step i had CMake Error at cmake-build-debug/external/src/firestore/cmake/firebase_utils.cmake:87 (message): firebase_execute_process(): command failed with non-zero exit code 2: C:/Program Files/JetBrains/CLion 2023.2.2/bin/cmake/win/x64/bin/cmake.exe --build . -- (working directory: F:/firebase-cpp-sdk/cmake-build-debug/external/src/firestore-build/external)

AlexBychek avatar Nov 02 '23 14:11 AlexBychek

Also under Windows 10 i have "Getting released firebase-ios-sdk @ CocoaPods-10.16.0 " it is correct?

AlexBychek avatar Nov 02 '23 14:11 AlexBychek

I'm having this issue as well

JaredEzz avatar Dec 12 '23 18:12 JaredEzz

  add_subdirectory given source
  "C:/Users/jared/IdeaProjects/isurrf_ui/build/windows/extracted/firebase_cpp_sdk_windows"
  which is not an existing directory.


CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:95 (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:96 (string):
  string sub-command REPLACE requires at least four arguments.


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


Exception: Unable to generate build files```

JaredEzz avatar Dec 12 '23 18:12 JaredEzz

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.13.9, on Microsoft Windows [Version 10.0.22631.2792], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.7.3)
[!] Android Studio (not installed)
[√] IntelliJ IDEA Ultimate Edition (version 2023.3)
[√] VS Code, 64-bit edition (version 1.85.0)
[√] Connected device (3 available)
[√] Network resources

! Doctor found issues in 1 category.

JaredEzz avatar Dec 12 '23 18:12 JaredEzz

Same issue here.

glsee avatar Feb 18 '24 05:02 glsee

I found that the build scripts require the patch and sed utilities, which on Windows you can install e.g. via Chocolatey:

choco install patch sed

triplef avatar Mar 21 '24 14:03 triplef