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

Why "cc_ros_library" will generate .so and .a at the same time? And how can I choose one to pack? #12

Closed
sunzhec2702 opened this issue Mar 13, 2024 · 1 comment

Comments

@sunzhec2702
Copy link

Hi Milan

This project is very nice and useful for ROS + bazel user.

But when I try to use it and learn it, I didn't get why "cc_ros_library" will generate .so and .a at the same time? And how can I choose one to pack?

Would you please give me a help on this?

Thanks

@mvukov
Copy link
Owner

mvukov commented Mar 17, 2024

Hi, cc_ros_library is a macro that wraps Bazel's native cc_library. When you build a library, then it creates .so and .a indeed; one typically doesn't build libs, but build executables and runs tests. But, when you build an executable then it doesn't build libraries, but links object files directly into an executable.

And how can I choose one to pack?

Can you elaborate on this one, please?

@mvukov mvukov closed this as completed Jun 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants