firebase / firebase/firebase-cpp-sdk

[Question] How to compile the Release build?

Đang mở
#1,628 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
needs-triage new type: question
Ngôn ngữ chính
C++
Star
326
Fork
137
Merge trung bình
3 ngày 9 giờ
Pull request đã merge (30 ngày)
5

Mô tả

### [REQUIRED] Please fill in the following fields:

* Pre-built SDK from the [website](https://firebase.google.com/download/cpp) 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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.