-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
sentry-native port requires zlib dependency on windows + problems on linux #39114
Comments
Linux: It seems that the issue had been raised in sentry-native before, but the proposed fixed was never forwarded to vcpkg: |
@Patrix9999, Thanks for posting this issue, regarding the first problem on Windows, I have not reproduced your problem locally. Here is my reproduction example.
CMakeProject1.cpp:
Config:
|
I'll try to come up with reproducable sample project that has this issue. |
From my initial tests i can conclude that this Here's a very simple project that has this issue (i've removed all of the fancy configuration files, to present the issue in a simplest way) The problem occurs during generation stage while using triplet that statically compiles the code, e.g: How to generate/build the project:
Such project won't be generated correctly, and it will produce the following error:
The issue can be avoided by compiling the vcpkg ports as dynamic libraries, or by adding additional |
@Patrix9999, thanks for the repro project, I have reproduced this Windows bug and fixed it, I will submit it in my PR. |
No problem, i'm just glad that i was able to help you to find a solution to this problem quicker (i would personally try to open a pull request, but unfortunately i didn't have time to investigate what might be the issue). |
Describe the bug
Hi!
I have two issues regarding the using of the sentry-native port.
sentry-native
as vcpkg dependency, i'm getting this error:This problem might be solved by adding additional project dependency for zlib in vcpkg, however i'm not sure if this is correct behaviour, shouldn't
sentry-native
be a standalone port?nullptr
after initialization of sentry) the crash raport doesn't gets send to the sentry backend.Environment
To Reproduce
Steps to reproduce the behavior (linux):
VCPKG_ROOT
path to locally installed vcpkg2, Generate a project via this command:
cmake . --preset Linux-x64-Release
cmake --build . --preset Linux-x64-Release
crashpad-handler
executable fromout/build/Linux-x64-Release/vcpkg_installed/x64-linux/tools/sentry-native
into/out/build/Linux-x64-Release
Expected behavior
The application should send a crashreport to a sentry backend on linux.
I'm not getting any issues while building & running my other project that depends on
sentry-native
as source dependency (crash report is being properly send to sentry backend).Additional context
I'm using sentry-native 0.7.5 version (baseline: 67cc167)
And here's my ready to compile project that you can use to reproduce the issue
cmake-test.zip
You just need to set the
DSN
inmain.cpp
, and you're ready to build/test the project.The text was updated successfully, but these errors were encountered: