Building MQWeb

POCO

Before you start building the MQWeb HTTP daemon, you need to build POCO. It’s the only dependency you need to build. POCO is a collection of modern, powerful open source C++ class libraries and frameworks for building network- and internet-based applications that run on desktop, server, mobile and embedded systems.

Download and extract the archive on your system.

CMake

MQWeb needs CMake as build tool. CMake can generate Visual Studio solutions, make files, Codelite workspaces and more.

WebSphere MQ

To build MQWeb you need to install the WebSphere MQ SDK package. Make sure you select this component when installing WebSphere MQ.

Building MQWeb for Linux
Building MQWeb for Windows

Linux

POCO

Create a directory shared in the directory where POCO is extracted. Make this directory the current working directory and run the configure command:

../configure --shared --omit=Data/MySQL,Data/ODBC --no-tests --no-samples

The MySQL and ODBC data libraries are omitted because MQWeb doesn’t need them. If you only going to use POCO for MQWeb, there is also no need to build the tests and samples.

You can also omit the build of the XML library, when you define POCO_UTIL_NO_XMLCONFIGURATION in Poco/Foundation/Config.h. You also need to update premake.lua in the MQWeb folder and remove the XML definitions.

Now you are ready to build POCO.

make

and install … (not required, but recommended for production)

make install

MQWeb

Download a MQWeb source archive from the releases or just download an archive from the source tree. Note that the master always points to the latest release.

Premake or CMake can be used to generate makefiles, project files, …

CMake

Create a build folder and make it the current directory. When running CMake the following properties can be used:

Some examples:

cmake -DCMAKE_BUILD_TYPE=debug ..  
cmake -DCMAKE_BUILD_TYPE=debug -DPOCO_INSTALLED=N -DPOCO_PREFIX=/development/poco-1.6.1-all/shared ..

Windows

To build MQWeb on Windows you need Visual Studio. MQWeb can be build with the free Express editions.

POCO

Build the Foundation, JSON, XML, Util and Net libraries.

You can omit the build of the XML library, when you define POCO_UTIL_NO_XMLCONFIGURATION in Poco/Foundation/Config.h. Open premake.lua in the MQWeb folder and remove the XML definitions.

MQWeb

Download a MQWeb source archive from the releases or just download an archive from the source tree. Note that the master always points to the latest release, while the source tree with the latest branch points to code that is work in progress and it is possible that it doesn’t work.

CMake

Use CMake to generate a Visual Studio solution, codelite workspace, …