Added a new directory structure and fixed boost compiler problems.
This commit is contained in:
@ -1,11 +1,4 @@
|
||||
This repository was forked from https://launchpad.net/mysql-replication-listener.
|
||||
---
|
||||
|
||||
The MySQL Replicant Library is a C++ library for reading MySQL
|
||||
replication events, either by connecting to a server or by reading
|
||||
from a file. To handle reading from a server, it includes a very
|
||||
simple client.
|
||||
|
||||
This code was forked from https://github.com/SponsorPay/mysql-replication-listener
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
@ -13,24 +6,6 @@ Dependencies
|
||||
You need to have CMake version 2.8 or later and Boost version 1.35.0
|
||||
or later since Asio is required.
|
||||
|
||||
To be able to run the unit tests, you have to have Google Test
|
||||
installed. Google Test will be automatically installed if cmake is
|
||||
called as:
|
||||
|
||||
cmake . -DENABLE_DOWNLOADS=1
|
||||
|
||||
|
||||
Directory structure
|
||||
-------------------
|
||||
|
||||
.
|
||||
|-- doc Documentation
|
||||
|-- examples Examples
|
||||
| `-- mysql2lucene Example application replicating rows to SOLR
|
||||
|-- include Include files
|
||||
|-- src Source files for library
|
||||
`-- tests Unit test files and directories
|
||||
|
||||
|
||||
Building
|
||||
--------
|
||||
@ -40,29 +15,3 @@ To build the entire package, it is first necessary to run CMake to build all the
|
||||
cmake .
|
||||
make -j4
|
||||
|
||||
Some of the examples are using third-party software, which can require
|
||||
extra parameters to be given to CMake.
|
||||
|
||||
If you want to perform an out-of-source build, you can just create a
|
||||
build directory and execute CMake there.
|
||||
|
||||
mkdir build
|
||||
cd build
|
||||
cmake <source directory>
|
||||
make -j4
|
||||
|
||||
|
||||
Building the mysql2lucene Example
|
||||
---------------------------------
|
||||
|
||||
To build the mysql2lucene example, it is necessary to ensure that the
|
||||
'FindCLucene.cmake' is in the CMAKE_MODULE_PATH, which on my machine
|
||||
require me to write:
|
||||
|
||||
cmake . -DCMAKE_MODULE_PATH:String=/usr/share/kde4/apps/cmake/modules
|
||||
|
||||
In addition, there is a bug in the packaging of CLucene on Ubuntu in
|
||||
that the 'clucene-config.h' file is placed in '/usr/lib/CLucene' but
|
||||
not in '/usr/include/CLucene', causing compiler failure when
|
||||
attempting to use CLucene. The 'CMakeLists.txt' file hacks around this
|
||||
by adding the libraries explicitly, but it seems unnecessary.
|
||||
|
Reference in New Issue
Block a user