[Question] How to compile the Release build?
还没有人认领这个 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 内容生成。
描述
[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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
firebase/firebase-cpp-sdk 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
firebase/firebase-cpp-sdk#1905 · 2 条评论 ·
-
api: firestore
难度 5/5 一周以上 新手友好度 35/100
firebase/firebase-cpp-sdk#1920 · 3 条评论 ·
-
难度 3/5 1-2 天 新手友好度 70/100
firebase/firebase-cpp-sdk#1904 · 1 条评论 ·
-
new type: question
难度 4/5 3-5 天 新手友好度 45/100
firebase/firebase-cpp-sdk#1892 · 1 条评论 ·
-
nightly-testing
难度 4/5 3-5 天 新手友好度 25/100
firebase/firebase-cpp-sdk#1859 ·
查看 firebase/firebase-cpp-sdk 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
-
good first issue
难度 2/5 1-3 小时 新手友好度 75/100
ros2/message_filters#338 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
subsurface/subsurface#4984 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
flutter-webrtc/flutter-webrtc#2206 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
google-ai-edge/LiteRT-LM#3739 ·