This document addresses OpenMS users and explains the installation procedure for building OpenMS from its sources. If you only want to use the OpenMS Proteomics Pipeline (TOPP), you are strongly encouraged to download the windows binary installer (see here), instead of building OpenMS from sources. For more information read the install instructions for the TOPP binaries.
This document especially considers the installation of several libraries which are required by OpenMS. Most of these libraries are made available in our "contrib-package" (see below).
If you encounter errors during configuring/compiling our software, have a look at our "Known Issues" section (documentation), maybe the error is already known. If not, please write to the mailing list.
Notation of this tutorial
Command Prompt
which are already open are not refreshed. You will need a to open a new one. Pre-Requisites (Software)
7-Zip
(see http://www.7-zip.org/) patch
(see http://gnuwin32.sourceforge.net/packages/patch.htm) %OpenMS depends on several other libraries. On a windows system, these are usually not present.
We require Qt version 4.5 or higher. Qt comes in two flavors: commercial or non-commercial - choose whatever is applicable to you: read more on the Trolltech website <OL> <LI>non-commercial: <OL> <LI>download Qt source (Qt for Open Source C++ development on Windows - http://qt.nokia.com/downloads/windows-cpp) <LI>extract zip file <LI>open a Visual Studio Command Line (use x64 version if you want 64bit apps!) <LI>$ cd <path-to-qt> <LI>$ configure.exe -no-phonon-backend -no-script <LI>$ nmake <LI>now you should have Link-Libraries and DLL's (debug and release) in your <Qt>/lib directory </OL> <LI>commercial: <OL> <LI>we have no experience here, but it should be possible to get the DLL's and Link-Libraries here as well. </OL> <LI>add the <Qt>/bin (!) directory to your PATH Environment Variable </OL>
In order to make the installation of the remaining required libraries easier, we composed a "contrib-package" containing the libraries Boost, GSL, libSVM, SeqAn, glpk, zlib, libbz2 and Xerces-C. This contrib package has several advantages over manual installation
Download:
The contrib package is contained in the OpenMS release package.
If you are using the developer version of OpenMS, you must check out the contrib from Sourceforge SVN repository
> svn co https://open-ms.svn.sourceforge.net/svnroot/open-ms/contrib
to obtain the latest developer version (potentially unstable).
Installation:
On Vista/Win7 some programs using during contrib creation (e.g. patch.exe) require elevation, otherwise the contrib will not build. Thus, you need an admin account with disabled UAC (User Account Control) or alternatively you can start a command line by right-clicking on its link and choosing "Run as administrator", while UAC is still enabled.
After you got the source code for the contrib package open a VisualStudio Command line (see Start-Menu).
call CMake to build the contrib
Be aware that you can build 64bit apps even if your operating system is only 32bit (cross-compiling), but you will not be able to run 64bit apps in this case.
The <generator> you use must be one of the Visual Studio Generators. This is because some contrib libs require Visual Studio to build. Be careful to specify the Generator suffixed with "Win64" if you want a 64bit contrib! Type <tt>$ cmake</tt> to see a list of available generators.<br> Example:
<LI>add the <path_to_contrib_build>/lib directory to your PATH Environment Variable (this is so Windows can find the DLL's when running our executables). </OL>
This section is voluntary. If you can live with the online documentation, you do not need to build your own.
In order to build the class documentation (doc & doc_internal targets), TOPP tutorials (doc_tutorials target) and more, you will need to install three programs:
dot
. You should install the above apps prior to installing OpenMS, because otherwise during the configuration step the documentation targets will be disabled. If you already have a working installation of OpenMS (without documentation), you can simply install the above programms and then delete the CMakeCache.txt file in your OpenMS build directory and reconfigure OpenMS by calling cmake (see below). No need to recompile the library!
If you have not installed the libraries which %OpenMS requires, please refer to the section @ref install_win_contrib above. <br> Assuming you have successfully installed the dependent libraries, you need to get the %OpenMS source code. The latest stable version of %OpenMS can be found in the <a href="http://www.OpenMS.de/download.php" target="_blank">download</a> page. For further (e.g. latest developer version from SVN) info see the <a href="http://open-ms.sourceforge.net/download.php" target="_blank">download instructions</a>. <br> <br> After you got the source code open a VisualStudio Command line (see Start-Menu). To create Visual Studio Project Files using CMake: <OL> <LI>open a Visual Studio Command Line (use x64 version if you want 64bit apps!) <LI>create a build directory for %OpenMS<br> -e.g. $ mkdir OpenMS_Win64 <LI>call CMake to create the BuildSystem there
The choice of <generator> is dependent on your system. Type $ cmake
to see a list of available generators. If you use a Visual Studio Generator, it should be identical to the one used for building the contrib. Example:
</OL> Now there should be a <tt>OpenMS.sln</tt> file in your build directory, which you can open using Visual Studio. If you choose another generator (e.g. Eclipse) you will find something equivalent. In Visual Studio execute the 'targets' project, which will show you the most prominent targets. Try to build the %OpenMS library - the target is called 'OpenMS'. This will create the %OpenMS dll. If you used the debug configuration it will be called OpenMSd.dll, in release mode its called OpenMS.dll.<br> As a last step you should add the location of the %OpenMS dll to your PATH environment. This is required for TOPP tools like TOPPAS, which might otherwise not work. Also external projects (see @subpage external_code) require the %OpenMS dll (OpenMS.dll or OpenMSd.dll) to be in the PATH. Depending on the generator and configuration used you will find the dll in [OpenMS_build]/bin/Release or [OpenMS_build]/bin/Debug or just [OpenMS_build]/bin. In the same folder the TOPP tools will reside once build (see next section). Be aware that the order of directories in the PATH variable determines which dll or executable is used, if no absolute path was given when the executable was called. So the PATH might need to be updated (add/delete/reorder entries) if you are working with multiple installations or configurations of %OpenMS.
TOPP is a toolset for the analysis of HPLC/MS data. It consists of several small applications that can be chained to create analysis pipelines tailored for a specific problem. <BR> <BR> After you have built %OpenMS, you can build the TOPP tools by building the "TOPP" project in the IDE. <br>
Each class in OpenMS and each TOPP tool have a unit test. To build and execute the tests, go to your %OpenMS build_tree and further into ./source/TEST. There you'll find an OpenMS_tests.sln file, which you can open. For other generators an equivalent file with another suffix will be present. Now, build the 'test_build' target and the 'RUN_TESTS' target. You can also run the tests in a command prompt in <OpenMS_build_tree>/source/TEST using $ ctest Single tests can be run with $ ctest -R <testname>, e.g. $ ctest -R Base64_test For more syntax on ctest look at the online documentation at http://cmake.org/.
This information is based on an old OpenMS version and might not work.
OpenMS accesses databases via QT. This instruction is based on QT 4.3.2. Other versions might differ. We try to install a MySQL driver (installing other db-drivers should work accordingly).
The open-source version of QT (which is precompiled on windows) does not come with an enabled MySQL driver, so you'll need to recompile QT.
Before that however, you'll need to build the MySQL-driver itself.
Download MySQLServer4.1 and install it.
Build QT with DB support
and wait ...
now build OpenMS
Query OK, 1 row affected (0.14 sec)
OpenMS / TOPP release 1.9.0 | Documentation generated on Sun Oct 27 2013 01:11:37 using doxygen 1.8.4 |