Building from the Windows source kit

Here is how I build OpenAMQ and Zyre from the latest source packages on www.openamq.org. I installed Microsoft's free Visual C Express, which is a complete C/C++ compiler and Visual Studio for Windows. It is equivalent to Visual C/C++ 2008.

My machine has a bunch of GNU tools installed on the path. So this is a command-line session. You can do the same with the right clicks.

set IBASE_HOME=C:\ibase
set PATH=C:\ibase\debug\bin:%PATH%
"C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"
wget http://download.imatix.com/openamq/unstable/OpenAMQ-1.4b0.zip
unzip OpenAMQ-1.4b0.zip
cd OpenAMQ-1.4b0\openamq\windows
msbuild OpenAMQ.sln /t:Rebuild /p:Configuration=Debug
  • Set the IBASE_HOME environment variable, which is where we'll be installing the built executables, libaries, and include files. Clickety-click: set IBASE_HOME in the System control panel:
set IBASE_HOME=C:\ibase
  • Set the PATH so that we can find the OpenAMQ and Zyre binaries once they've been installed. Clickety-click: add C:\ibase\debug to your system's environment. However… this means you can't install debug versions of the software. It's better to set the path in your command window. I'll explain how managing release and debug builds.
set PATH=C:\ibase\debug\bin:%PATH%
  • Set the Visual Studio environment variables. Clickety-click: start Visual Studio (in my case, VCExpress):
"C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"
  • Get the source package from iMatix.com. Clickety-click: go to www.openamq.org and click the proper download link:
wget http://download.imatix.com/openamq/unstable/OpenAMQ-1.4b0.zip
  • Unpack the source package. Clickety-click: use the Windows explorer to unzip the downloaded package:
unzip OpenAMQ-1.4b0.zip
  • Go to the right place. Clickety-click: open the Windows Explorer into the OpenAMQ-1.4b0\openamq\windows directory:
cd OpenAMQ-1.4b0\openamq\windows
  • Rebuild OpenAMQ and company. Clickety-click: double-click on the OpenAMQ.sln file, then choose the 'Debug' configuration from the drop-down in the top menu, then click the Build icon:
msbuild openamq.sln /t:Rebuild /p:Configuration=Debug
  • Test that OpenAMQ has been built. Clickety-click: open a Console box and type this command:
amq_server -v
Add a New Comment