This page describes the steps to take in order to compile the real-time toolkit (RTT) on a Windows machine, under MinGW and pthreads-32.
The following has been tested on Windows XP, running in a virtual machine on Mac OS X Leopard.
Warning: the default GCC 3.4.5 compiler in MinGW outputs a lot of warnings when compiling RTT. Mostly they are "foo might be used uninitialized in this function" in STL code.
See detailed instructions in URL's above and below, but basically (unless otherwise noted, all actions are in MSys Unix shell, and, all unix-built items are installed in /mingw (which is c:\msys\1.0\mingw in DOS prompt) )
cmake-xxx/bootstrap --prefix=/mingw --no-qt-gui make && make installRun pthreads32 installer (just untar's)
- manually copy pre-built/include/* to /c/mingw/include (C:\mingw/include) - manually copy pre-built/lib/*GC2* to /c/mingw/lib (C:\mingw/lib) - to run pthreads tests, need to copy prebuilt .a/.dll into .. dir, and copy queueuserapcex to ../..Boost (as at 2009-Jan, use v1.35 not v1.37 until we fix RTT for v1.37)
*** DOS shell *** cd boost-jam-xxx .\build.bat gcc ** won't build in unix shell with build.sh ** *** unix shell *** cd boost-jam-xxx cp binntx86/bjame.exe /mingw/bin cd ~/software/build/boost_1_35 bjam --toolset=gcc --layout=system --prefix=/mingw --with-date_time --with-graph \ --with-system --with-function_types --with-program_options installCppunit, get tarball from sourceforge
untar and configure with --prefix=/mingw correct line 7528 in libtool, to be c:/MinGW/bin../lib/dllcrt2.o for first item make && make install
cd /path/to/rtt; patch -p0 < patch-rtt-mingw-1.patch
download, follow MinGW build instructions on the website. add "#undef ACE_LACKS_USECONDS_T" to ace/config-win32-mingw.h" before compiling copy ace/libACE.dll to /mingw/lib make TAO ** this fails You can build all we need by manually doing ''make'' in the following directories. Note that the last couple of TAO dir's have problems. ace, ace/protocols, kokyu, tao, tao/TAO_IDL, tao/orbsvcsNB Can parallel build ace but not its tests nor tao.
NB Not all tests pass. At least one of the ACE tests fail.