[MacPorts] #69179: protobuf3-cpp: include static libraries
MacPorts
noreply at macports.org
Thu Jul 25 04:23:58 UTC 2024
#69179: protobuf3-cpp: include static libraries
----------------------------+----------------------
Reporter: ChrisDodd | Owner: mascguy
Type: enhancement | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: protobuf3-cpp |
----------------------------+----------------------
Changes (by ryandesign):
* cc: achernya (added)
Comment:
If you just want a static libprotobuf.a to use for your own purposes, and
you want to use MacPorts to build it, you could edit the protobuf3-cpp
portfile (`sudo port edit protobuf3-cpp`), change
`-DBUILD_SHARED_LIBS:BOOL=ON` to `-DBUILD_SHARED_LIBS:BOOL=OFF`, forcibly
uninstall the protobuf3-cpp port if you already have it installed (`sudo
port -f uninstall protobuf3-cpp`), then install it from source (`sudo port
-s install protobuf3-cpp`). Hopefully this works and the port then
contains libprotobuf.a which you can copy to wherever you need it. Be sure
to uninstall this nonstandard protobuf3-cpp port, undo your edits to the
portfile, and reinstall the standard one right away or you will cause
problems for ports that depend on protobuf3-cpp.
--
Ticket URL: <https://trac.macports.org/ticket/69179#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list