The build requires the libuuid library that is part of the e2fsprogs package and is available from http://e2fsprogs.sourceforge.net/ which is not always installed by default.
The package contains a complete set of cppunit tests. In order for you to build an run the tests, you will need to download and install the cppunit suite. See http://cppunit.sourceforge.net/cppunit-wiki
or on Fedora type the following:
Make sure that the paths to the installed cppunit library and includes are visible in your current shell before you try building the tests.
Windows users will need to build the cppunit library using the CPPUnit MSVC project files. A discussion of the build process can be found on the CPPUnit wiki under CPPUnit Platform build instructions this covers both MSVC along with many other platforms and tool suites.
GNU Build System (for building on *nix)
To Generate the ./configure script use to create the Makefiles, you need the following software installed:
Building on *nix (Unix/Linux/OS X/Cygwin)
This assumes you have all of the project dependencies installed. We're now ready to create the configure script. To do this, run:
This should be run the first time and anytime you change configure.ac or any of the Makefile.am files.
The configure script will customize the way the software is built and installed into your system along with detecting the available libraries that have been installed. To use the default configuration just run:
For more help on how to customize the build configuration, run:
Once the configure script has run successfully, you are ready to build. Run:
This will build all of the core ActiveMQ CPP source code. To build and install the code into the system directories, run:
You will have to become the superuser in order to be able to install the files.
To generate the doxygen documentation for the project, just run:
In order to build and run the suite of unit tests, run:
This will verify that the library is functioning correctly on the target platform. In addition, it will generate the integration tests binary.
The library also contains a set of tests that are run against a real AMQ broker. These allow you to validate this distribution of ActiveMQ CPP against your broker. Running these without a broker will result in failed tests. The tests currently hard-code the broker url to be tcp://localhost:61613 for stomp and tcp://localhost:61616 for openwire.
The integration tests are built via "make check". To run them, first start a broker and then
This will take quite some time to complete, so be patient.
There is an example application that ships with the distribution in src/examples. The example is compiled by default with the "make" command, but can easily be compiled manually using the command:
Notes for Windows users
We support using the GNU compiler on Windows, using the Cygwin package. However we also support using the MSVC compiler on Windows.
There are a couple or things that you will need to setup to ensure that the MSVC compile succeeds.