blob: 09a5c34d14b6a5e5e5bef48f401ff169e6052e6a [file] [log] [blame]
Mark Slee54b7ab92007-03-06 00:06:27 +00001Thrift C++ Software Library
2
3README Author: Mark Slee (mcslee@facebook.com)
4Last Modified: 2007-Mar-05
5
6Thrift is distributed under the Thrift open source software license.
7Please see the included LICENSE file.
8
9Using Thrift with C++
10=====================
11
12The Thrift C++ libraries are built using the GNU tools. Follow the instructions
13in the top-level README, or run bootstrap.sh in this folder to generate the
14Makefiles.
15
16In case you do not want to open another README file, do this:
17 ./bootstrap.sh
18 ./configure (--with-boost=/usr/local)
19 make
20 sudo make install
21
22Thrift is divided into two libraries.
23
24libthrift
25 The core Thrift library contains all the core Thrift code. It requires
26 boost shared pointers, pthreads, and librt.
27
28libthriftnb
29 This library contains the Thrift nonblocking server, which uses libevent.
30 To link this library you will also need to link libevent.
31
32Linking Against Thrift
33======================
34
35After you build and install Thrift the libraries are installed to
36/usr/local/lib by default. Make sure this is in your LDPATH.
37
38On Linux, the best way to do this is to ensure that /usr/local/lib is in
39your /etc/ld.so.conf and then run /sbin/ldconfig.
40
41Depending upon whether you are linking dynamically or statically and how
42your build environment it set up, you may need to include additional
43libraries when linking against thrift, such as librt and/or libpthread. If
44you are using libthriftnb you will also need libevent.
45
46Dependencies
47============
48
49boost shared pointers
50http://www.boost.org/libs/smart_ptr/smart_ptr.htm
51
52libevent (for libthriftnb only)
53http://monkey.org/~provos/libevent/