Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[Question] How to compile the Release build?

Open
#1,628 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cmake, cpp, unreal-engine
Domain
build-system

Research direction

Start by reproducing the documented CMake configure and build commands for the firebase_analytics target with CMAKE_BUILD_TYPE=Release on Windows. Inspect the generated Debug and Release output locations and the MSVC iterator-debug-level settings, then verify that both configurations produce libraries that link with the corresponding Unreal Engine build without LNK2038.

Written by the indexing model from the issue text.

Description

needs-triage new type: question
[REQUIRED] Please fill in the following fields:
  • Pre-built SDK from the website or open-source from this repo: build locally
  • Firebase C++ SDK version: 11.8.0
  • Main Firebase Components in concern: Mainly analytics (Auth, Database, etc.)
  • Other Firebase Components in use: -
  • Platform you are using the C++ SDK on: Windows, VS 2019 (build tools v142) and Unreal Engine 4.27
  • Platform you are targeting: Windows
[REQUIRED] Please describe the question here:

After fullfilling the requirements, I run the build with these command

> mkdir firebase_analytics_build && cd firebase_analytics_build
> cmake -DCMAKE_BUILD_TYPE=Release -DOPENSSL_ROOT_DIR="C:\Users\herpi\Downloads\OpenSSL-3.3.0-Win-pc064\OpenSSL\OpenSSL\3.3.0" -A x64 ..
> cmake --build . --target firebase_analytics -DCMAKE_BUILD_TYPE=Release

The lib file is generated but it's always under the Debug prefix directory. In my case, this debug library will lead to this error while linking the library in my UE4 project.

firebase_app.lib(variant.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in SharedPCH.UnrealEd.ShadowErrors.h.obj

How to build both Release and Debug?

Thank you in advance.

Dominant language
C++
Stars
326
Forks
138
Avg merge
2d 16h
Merged PRs (30d)
3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from firebase/firebase-cpp-sdk

All issues in firebase/firebase-cpp-sdk

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.