[Rprotobuf-yada] Fwd: Re: [protobuf] multi arch build of protobuf on macosx
Romain Francois
romain.francois at dbmail.com
Thu Apr 8 08:12:32 CEST 2010
... so we can default to -lprotobuf -lz when there is no pkg-config
-------- Message original --------
Sujet: Re: [protobuf] multi arch build of protobuf on macosx
Date : Wed, 7 Apr 2010 17:46:00 -0700
De : Kenton Varda <kenton at google.com>
Pour : Jason Hsueh <jasonh at google.com>
Copie à : Romain Francois <romain.francois.r.enthusiast at gmail.com>,
Protocol Buffers <protobuf at googlegroups.com>
You can download and install pkg-config pretty easily.
Typically the only flags needed to link against libprotobuf are
-lprotobuf, -lz, and whatever flags are required by pthreads on your
system. No cflags are required unless your headers were installed
somewhere unusual (but you might want -pthread to ensure that GCC
produces thread-safe code). Note, though, that these requirements could
change in the future, if libprotobuf gains other dependencies.
On Wed, Apr 7, 2010 at 12:48 PM, Jason Hsueh <jasonh at google.com
<mailto:jasonh at google.com>> wrote:
Kenton, do you have any experience compiling protobufs on OSX?
On Wed, Apr 7, 2010 at 9:34 AM, Romain Francois
<romain.francois.r.enthusiast at gmail.com
<mailto:romain.francois.r.enthusiast at gmail.com>> wrote:
Hello,
Please bear with me if this is obvious ... I'm new to OSX.
Are there instructions somewhere to build protobuf for both i386
and x86_64 architectures on OSX.
Also, on linux I can do :
$ pkg-config --libs protobuf
$ pkg-config --cflags protobuf
but OSX does not have pkg-config. I can get it through fink or
something but I wondered if there was some other way to grab the
information.
Romain
--
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://bit.ly/9aKDM9 : embed images in Rd documents
|- http://tr.im/OIXN : raster images and RImageJ
|- http://tr.im/OcQe : Rcpp 0.7.7
--
You received this message because you are subscribed to the
Google Groups "Protocol Buffers" group.
To post to this group, send email to protobuf at googlegroups.com
<mailto:protobuf at googlegroups.com>.
To unsubscribe from this group, send email to
protobuf+unsubscribe at googlegroups.com
<mailto:protobuf%2Bunsubscribe at googlegroups.com>.
For more options, visit this group at
http://groups.google.com/group/protobuf?hl=en.
--
You received this message because you are subscribed to the Google
Groups "Protocol Buffers" group.
To post to this group, send email to protobuf at googlegroups.com
<mailto:protobuf at googlegroups.com>.
To unsubscribe from this group, send email to
protobuf+unsubscribe at googlegroups.com
<mailto:protobuf%2Bunsubscribe at googlegroups.com>.
For more options, visit this group at
http://groups.google.com/group/protobuf?hl=en.
More information about the Rprotobuf-yada
mailing list