Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] How to compile the Release build? #1628

Open
herpiko opened this issue Jul 19, 2024 · 1 comment
Open

[Question] How to compile the Release build? #1628

herpiko opened this issue Jul 19, 2024 · 1 comment

Comments

@herpiko
Copy link

herpiko commented Jul 19, 2024

[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.

@google-oss-bot
Copy link

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

@herpiko herpiko changed the title [Question] [Question] How to compile the Release build? Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants