-
Notifications
You must be signed in to change notification settings - Fork 14
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
Linker error when using GRPC #29
Comments
That's very strange. This library should be automatically linked already: see
Do you have "GRPC" in your |
The proto files are generated in an other package.
client package with proto file:
|
Thank you. I was able to reproduce the issue. The problem is that when catkin_package exports libraries, it doesn't export the dependencies automatically. As a workaround, you can use the following code in your client package with proto:
I will dig deeper into this to see what is the best way to handle this case. |
Thank you very much for your prompt answers and the workaround! |
In fact, all you need is
I will update the README to reflect this. |
When I try to create a grpc service in an other catkin package, I have to manually add ".... /devel/lib/libgrpc++_unsecure.so" to target_link_libraries in the corresponding CMakeLists.txt. Otherwise I get a linker error when building the package.
The text was updated successfully, but these errors were encountered: