Skip to content

cmake: when building static executable, linking nghttp3 failed (USE_OPENSSL_QUIC is ON) #17010

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

Closed
wants to merge 2 commits into from

Conversation

yunbj
Copy link

@yunbj yunbj commented Apr 10, 2025

Though cmake finds nghttp3 by pkg-config, nghttp3 isn't linked properly.
Because library directory is not given by -L.

When running cmake, I use following option.

BUILD_SHARD_LIBS is OFF
BUILD_STATIC_LIBS is ON
BUILD_STATIC_CURL is ON
CURL_DISABLE_INSTALL is ON

@vszakats vszakats added the HTTP/3 h3 or quic related label Apr 10, 2025
Co-authored-by: Viktor Szakats <vszakats@users.noreply.github.com>
@vszakats vszakats closed this in 4622099 Apr 12, 2025
@vszakats
Copy link
Member

Thank you @yunbj!

nbaws pushed a commit to nbaws/curl that referenced this pull request Apr 26, 2025
Though cmake finds nghttp3 by pkg-config, nghttp3 isn't linked properly.
Because library directory is not given by -L.

Closes curl#17010
nbaws pushed a commit to nbaws/curl that referenced this pull request Apr 26, 2025
Though cmake finds nghttp3 by pkg-config, nghttp3 isn't linked properly.
Because library directory is not given by -L.

Closes curl#17010
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build cmake HTTP/3 h3 or quic related
Development

Successfully merging this pull request may close these issues.

3 participants