onlinecity / oclog Goto Github PK
View Code? Open in Web Editor NEWcpp logging components
cpp logging components
Hi - Im trying to compile oclog after installing thrift, but keep getting this message.
I neede to change the path to trift because it was pointing to /usr/local/include, instead of /usr/local/include/thrift
root@cpp-smpp:~/oclog# make
[ 8%] Building CXX object src/CMakeFiles/oclog.dir/Sink.cpp.o
[ 16%] Building CXX object src/CMakeFiles/oclog.dir/ScribeSink.cpp.o
[ 25%] Building CXX object src/CMakeFiles/oclog.dir/FileSink.cpp.o
[ 33%] Building CXX object src/CMakeFiles/oclog.dir/hexdump.cpp.o
[ 41%] Building CXX object src/CMakeFiles/oclog.dir//scribe/FacebookBase.cpp.o
[ 50%] Building CXX object src/CMakeFiles/oclog.dir//scribe/FacebookService.cpp.o
[ 58%] Building CXX object src/CMakeFiles/oclog.dir//scribe/fb303_constants.cpp.o
[ 66%] Building CXX object src/CMakeFiles/oclog.dir//scribe/fb303_types.cpp.o
[ 75%] Building CXX object src/CMakeFiles/oclog.dir//scribe/scribe_constants.cpp.o
[ 83%] Building CXX object src/CMakeFiles/oclog.dir//scribe/scribe.cpp.o
[ 91%] Building CXX object src/CMakeFiles/oclog.dir/__/scribe/scribe_types.cpp.o
Linking CXX shared library liboclog.so
[ 91%] Built target oclog
[100%] Building CXX object test/CMakeFiles/unittest.dir/testrun.cpp.o
Linking CXX executable unittest
../src/liboclog.so.1.0.0: undefined reference to apache::thrift::TApplicationException::read(apache::thrift::protocol::TProtocol*)' ../src/liboclog.so.1.0.0: undefined reference to
apache::thrift::concurrency::Mutex::DEFAULT_INITIALIZER(void_)'
../src/liboclog.so.1.0.0: undefined reference to apache::thrift::concurrency::ReadWriteMutex::release() const' ../src/liboclog.so.1.0.0: undefined reference to
vtable for apache::thrift::concurrency::ReadWriteMutex'
../src/liboclog.so.1.0.0: undefined reference to vtable for apache::thrift::transport::TFramedTransport' ../src/liboclog.so.1.0.0: undefined reference to
apache::thrift::concurrency::ReadWriteMutex::acquireWrite() const'
../src/liboclog.so.1.0.0: undefined reference to apache::thrift::concurrency::ReadWriteMutex::ReadWriteMutex()' ../src/liboclog.so.1.0.0: undefined reference to
apache::thrift::concurrency::Mutex::Mutex(void ()(void))'
../src/liboclog.so.1.0.0: undefined reference to apache::thrift::concurrency::ReadWriteMutex::acquireRead() const' ../src/liboclog.so.1.0.0: undefined reference to
typeinfo for apache::thrift::concurrency::ReadWriteMutex'
../src/liboclog.so.1.0.0: undefined reference to apache::thrift::concurrency::ReadWriteMutex::attemptWrite() const' ../src/liboclog.so.1.0.0: undefined reference to
apache::thrift::transport::TSocket::TSocket(std::basic_string<char, std::char_traits, std::allocator >, int)'
../src/liboclog.so.1.0.0: undefined reference to vtable for apache::thrift::concurrency::Mutex' ../src/liboclog.so.1.0.0: undefined reference to
apache::thrift::concurrency::ReadWriteMutex::attemptRead() const'
../src/liboclog.so.1.0.0: undefined reference to `apache::thrift::TApplicationException::write(apache::thrift::protocol::TProtocol_) const'
collect2: ld returned 1 exit status
make[2]: *** [test/unittest] Error 1
make[1]: *** [test/CMakeFiles/unittest.dir/all] Error 2
make: *** [all] Error 2
----- UPDATE -----
I was missing a ldconfig, and rerunning cmake
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.