Coder Social home page Coder Social logo

Comments (6)

Tradias avatar Tradias commented on May 17, 2024

As an immediate workaround you can set the CMake variable ASIO_GRPC_DISABLE_AUTOLINK before calling find_package/add_subdirectory for asio-grpc. Then it won't link with anything.

I changed it because I though that _unsecure is the baseline and that everything else depends on it. Seems like that is not the case.

from asio-grpc.

reusing-code avatar reusing-code commented on May 17, 2024

Thank you for the quick response!

I'll try that, thanks.

I changed it because I though that _unsecure is the baseline and that everything else depends on it. Seems like that is not the case.

Yeah, and there is not a lot of documentation what those different grpc targets are and when to use what. It doesn't even lead to link errors, when both are linked in the same binary, it just leads to grpc calls hanging indefinitely.

This is the issue that happens in that case: grpc/grpc#24422 (comment)

from asio-grpc.

Tradias avatar Tradias commented on May 17, 2024

I will change the default linkage back to gRPC::grpc++ in v3 of asio-grpc and let power users utilize ASIO_GRPC_DISABLE_AUTOLINK + gRPC::grpc++_unsecure as they see fit.

Did my suggestion regarding ASIO_GRPC_DISABLE_AUTOLINK work for you?

from asio-grpc.

reusing-code avatar reusing-code commented on May 17, 2024

Thank you, sounds great!

To be honest, I have yet to try ASIO_GRPC_DISABLE_AUTOLINK , currently still working with my ugly workaround.

from asio-grpc.

Tradias avatar Tradias commented on May 17, 2024

Asio-grpc v3 now links with gRPC::grpc++ by default. I am also changing that in conan-center conan-io/conan-center-index#22910.

from asio-grpc.

reusing-code avatar reusing-code commented on May 17, 2024

Cool, thank you! I'll look into migrating to v3

from asio-grpc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.