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

Fix C++ linking error on macOS / Windows due to missing libraries #8991

Merged
merged 7 commits into from
Feb 11, 2025

Conversation

grtlr
Copy link
Contributor

@grtlr grtlr commented Feb 11, 2025

Related

What

It looks like we were missing some macOS frameworks that are required for linking tonic when using native certificates.

@grtlr
Copy link
Contributor Author

grtlr commented Feb 11, 2025

@rerun-bot full-check

@grtlr grtlr added the exclude from changelog PRs with this won't show up in CHANGELOG.md label Feb 11, 2025
@grtlr
Copy link
Contributor Author

grtlr commented Feb 11, 2025

@rerun-bot full-check

Copy link

@grtlr
Copy link
Contributor Author

grtlr commented Feb 11, 2025

@rerun-bot full-check

Copy link

@grtlr grtlr marked this pull request as ready for review February 11, 2025 11:18
@grtlr grtlr force-pushed the grtlr/fix-cpp-certificate-apple branch from 8388748 to ee9d6b4 Compare February 11, 2025 11:43
@grtlr grtlr force-pushed the grtlr/fix-cpp-certificate-apple branch from ee9d6b4 to 5181d4d Compare February 11, 2025 11:44
@grtlr
Copy link
Contributor Author

grtlr commented Feb 11, 2025

@rerun-bot full-check

Copy link

elseif(UNIX) # if(LINUX) # CMake 3.25
target_link_libraries(rerun_c INTERFACE "-lm -ldl -pthread")
elseif(WIN32)
target_link_libraries(rerun_c INTERFACE ws2_32.dll Bcrypt.dll Userenv.dll ntdll.dll)
target_link_options(rerun_c INTERFACE "/NODEFAULTLIB:MSVCRT")
Copy link
Member

@Wumpf Wumpf Feb 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this needed, seems very fishy

@grtlr grtlr marked this pull request as draft February 11, 2025 12:58
@grtlr grtlr changed the title Fix cpp linking error on macOS due to missing frameworks Fix C++ linking error on macOS / Windows due to missing libraries Feb 11, 2025
@grtlr
Copy link
Contributor Author

grtlr commented Feb 11, 2025

@rerun-bot full-check

Copy link

@grtlr grtlr marked this pull request as ready for review February 11, 2025 14:43
@grtlr grtlr requested a review from Wumpf February 11, 2025 14:44
@Wumpf Wumpf merged commit d81064c into main Feb 11, 2025
75 checks passed
@Wumpf Wumpf deleted the grtlr/fix-cpp-certificate-apple branch February 11, 2025 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exclude from changelog PRs with this won't show up in CHANGELOG.md
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants