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