-
Notifications
You must be signed in to change notification settings - Fork 365
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
Use DP library in make project #121
Comments
I managed to figure out how normal third party libraries should work when using them with make. But it seems like the differential privacy library uses protobuf auto generated header files ( .pb.h files ). I can't find them in the bazel folders. |
I believe you can use the linked files and the header files to use them in a Makefile. You might also be able to automate this step and only require Bazel (or Bazelisk) for building the DP Lib. You can find the Hope this helps :) |
Thanks for the help. As far as I understand it now the differential privacy library is more targeted for Googles internal use. Therefore it is basically assumed that bazel is used during all steps. However, this makes it very difficult for others to integrate the library into existing projects which are not bazel based. |
Hello,
I am sorry for bothering you with this question but I have been struggling for the past days and have not found a solution yet.
I want to use this differential privacy C library in a larger project which relies on
make
.The first idea was to create a .so or .a file which are mostly self containing. But apparently this is not possible as all the important code is contained inside
.h
files. Those do not produce .o files, so from my understanding no.so
or.a
files can be produced.Simply copying all files from the library to the new make projects and including them does not work due to the dependencies, e.g. abseil and protobuf.
Does anyone have a suggestion on how this could (or should) be done? I do not want to switch my whole project to Bazel just because a single dependency relies on it.
Edit: Turns out it can be included with sources just like any other C++ third party library. I really got myself confused with trying to create an .so file, which is not possible.
The text was updated successfully, but these errors were encountered: