Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[Question] How to compile the Release build?

未关闭
#1,628 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
cmake, cpp, unreal-engine
领域
build-system

调研方向

首先,在 Windows 上使用 CMAKE_BUILD_TYPE=Release 重现针对 firebase_analytics 目标的文档化 CMake configure 和 build 命令。检查生成的 Debug 和 Release 输出位置以及 MSVC iterator-debug-level 设置,然后验证这两种配置生成的库都能与相应的 Unreal Engine 构建进行链接,且不会出现 LNK2038。

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
C++
星标
326
派生
138
平均合并
2 天 16 小时
30 天内合并 PR
3

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

firebase/firebase-cpp-sdk 的其他 Issue

查看 firebase/firebase-cpp-sdk 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。