Then go to the MinGW website and download the packages to install MinGW. You will need the following packages:
Open a shell and change into the directory you have unpacked the Boost package to. Type the following command:
bjam "-sTOOLS=mingw" --prefix=C:\Boost install
Change into the directory "C:\Boost\include\boost-version''.
There is a directory "boost'' containing the Boost headers.
Move this directory into the include directory of MinGW with following
command:
mv boost C:\MinGW\include
Now change into the directory "C:\Boost\lib''. Since gcc does not
support #pragma comments we have to rename the compiled libraries
when copying them to the MinGW lib directory. Just execute the following
commands:
mv libboost_date_time-mgw-s.lib C:\MinGW\lib\boost_date_time.lib
mv libboost_filesystem-mgw-s.lib C:\MinGW\lib\boost_filesystem.lib
mv libboost_iostreams-mgw-s.lib C:\MinGW\lib\boost_iostreams.lib
mv libboost_prg_exec_monitor-mgw-s.lib C:\MinGW\lib\boost_prg_exec_monitor.lib
mv libboost_program_options-mgw-s.lib C:\MinGW\lib\boost_program_options.lib
mv libboost_regex-mgw-s.lib C:\MinGW\lib\boost_regex.lib
mv libboost_serialization-mgw-s.lib C:\MinGW\lib\boost_serialization.lib
mv libboost_signals-mgw-s.lib C:\MinGW\lib\boost_signals.lib
mv libboost_test_exec_monitor-mgw-s.lib C:\MinGW\lib\boost_test_exec_monitor.lib
mv libboost_unit_test_framework-mgw-s.lib C:\MinGW\lib\boost_unit_test_framework.lib
mv libboost_wave-mgw-s.lib C:\MinGW\lib\boost_wave.lib
After that you can delete the directory you unpacked the boost sources to.
You may change your search path on Windows 2000/XP with the following steps:
Download wxWidgets from the wxWidgets website. Alwis has been developed with the version 2.6.2. It is incompatible with older versions (less than 2.6). It should work with newer versions but it may require changes to the source code. Unpack the downloaded file to "C:\'', a new directory called "wxWidgets-2.6.2'' will be created.
Open a shell and change into your wxWidgets directory. If you plan to compile a debug version of Alwis you will need the debug version of wxWidgets. Execute the following commands to build it:
mkdir build-debug
cd build-debug
bash ../configure --with-msw --enable-html --enable-debug
--enable-debug_gdb --disable-shared
--prefix=C:/wxWidgets
make
make install
For building the release version of Alwis you will only need the release version
of wxWidgets. Execute the following commands to build it:
mkdir build-release
cd build-release
bash ../configure --with-msw --enable-html --disable-debug
--disable-shared --prefix=C:/wxWidgets
make
make install
You may execute both sequences of commands if you need both versions of wxWidgets.
There are no file name clashes between the two versions.Now change to directory "utils/tex2rtf'' within your wxWidgets directory and execute the following commands:
make
cd src
strip -s -v tex2rtf.exe
upx --best -v tex2rtf.exe
Copy the resulting file "tex2rtf.exe'' to a directory contained
in your search path, e.g. "C:\MinGW\bin''. It is needed to compile
the help files.
In the downloaded archive (regardless of version and optimization level) contains some header files (*.h) and some precompiled libraries (*.a). Sometimes the archive contains a directory structure. The paths stored in the archive should not be used. Unpack the header files to your MinGW's include directory (e.g. "C:\MinGW\include'') and the library files to your MinGW's lib directory (e.g. "C:\MinGW\lib''). Remember not to use the paths stored in the archive. That's all.
You need to adapt your search path when compiling OCaml programs (at least temporarily). For more information see the OCaml build notes.
make gui
make tools_cpp
make tools_ocaml
make help
make setup
Probably you will need to check you search path settings before invoking
"make tools_ocaml''. For further details see the OCaml build instructions.
For more details on how to build the single components of Alwis please refer
to the following sections.
make clean
make FINAL=1
Now change into the gui directory and type the following commands:
make clean
make FINAL=1
Now there should be a file called "alwis.exe''. You may omit
the parameter "FINAL=1'' when building the core and gui in order
to get the debug version of Alwis. Note: The debug version of Alwis
is quite huge - about 70 MB.When having problems building the GUI you should check the settings in the GUI's makefile. Maybe you have to adapt some settings like the path to your wxWidgets directory.
cd stemmer
make clean
make
cd ..
make clean
make FINAL=1
Now there should be five executables called "cat2stream.exe'',
"filterstream.exe'', "stemstream.exe'',
"stream2matrix.exe'' and "stream2queries.exe''.
Again you may omit the parameter "FINAL=1'' in order to get
the debug versions of these tools.
Important: Now the directory "C:\Cygwin\bin'' has to precede the directory "C:\MinGW\bin'' in you search path. There is an incompatibility between the OCaml compiler and the non-Cygwin version of MinGW. If you get strange errors while compiling you should check your search path for this order.
Change into the directory "src/queryengine''. Just type following commands to build the query engine:
make
make pack
Now change into the directory "src/tools/compute-plsi''. Again just
type the following commands to build the tool for calculating PLSI models:
make
make pack
And finally change into the directory "src/mdevices''. Once again just
type the following commands to build the precision recall measurement device:
make
make pack