Rev 30 | Blame | Compare with Previous | Last modification | View Log | RSS feed
Thrift C++ Software LibraryLicense=======Licensed to the Apache Software Foundation (ASF) under oneor more contributor license agreements. See the NOTICE filedistributed with this work for additional informationregarding copyright ownership. The ASF licenses this fileto you under the Apache License, Version 2.0 (the"License"); you may not use this file except in compliancewith the License. You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing,software distributed under the License is distributed on an"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANYKIND, either express or implied. See the License for thespecific language governing permissions and limitationsunder the License.Using Thrift with C++=====================The Thrift C++ libraries are built using the GNU tools. Follow the instructionsin the top-level README, or run bootstrap.sh in this folder to generate theMakefiles.In case you do not want to open another README file, do this:./bootstrap.sh./configure (--with-boost=/usr/local)makesudo make installThrift is divided into two libraries.libthriftThe core Thrift library contains all the core Thrift code. It requiresboost shared pointers, pthreads, and librt.libthriftnbThis library contains the Thrift nonblocking server, which uses libevent.To link this library you will also need to link libevent.Linking Against Thrift======================After you build and install Thrift the libraries are installed to/usr/local/lib by default. Make sure this is in your LDPATH.On Linux, the best way to do this is to ensure that /usr/local/lib is inyour /etc/ld.so.conf and then run /sbin/ldconfig.Depending upon whether you are linking dynamically or statically and howyour build environment it set up, you may need to include additionallibraries when linking against thrift, such as librt and/or libpthread. Ifyou are using libthriftnb you will also need libevent.Dependencies============boost shared pointershttp://www.boost.org/libs/smart_ptr/smart_ptr.htmlibevent (for libthriftnb only)http://monkey.org/~provos/libevent/