TPP:Building Windows-native binaries with Mingw
From SPCTools
Revision as of 22:28, 6 May 2009 Ntasman (Talk | contribs) (creating mingw build page) ← Previous diff |
Revision as of 22:37, 6 May 2009 Ntasman (Talk | contribs) Next diff → |
||
Line 10: | Line 10: | ||
I abbreviate the Microsoft Visual Studio Professional 2005 tools as MSVC. | I abbreviate the Microsoft Visual Studio Professional 2005 tools as MSVC. | ||
+ | |||
+ | ==Requirements== | ||
+ | These are explained throughout the tutorial | ||
+ | |||
+ | *ability to install software (usually, Administrator access) | ||
+ | |||
+ | #source code | ||
+ | #Mingw | ||
+ | #Msys (mingw shell) | ||
+ | #NSIS installer | ||
+ | #MSVC (see below) | ||
==MSVC Requirement== | ==MSVC Requirement== | ||
- | For a complete build you need to also build the converters under MSVC. Please see that page for more information. | + | For a complete build (suitable for creating an installer) you need to also build the converters under MSVC. Please see that page for more information. |
==Getting the source code== | ==Getting the source code== | ||
- | Please see [[TPP:Getting the sourcecode for a windows build]] | + | |
==Where are the Mingw build files created?== | ==Where are the Mingw build files created?== | ||
<tpp>/build/mingw | <tpp>/build/mingw | ||
+ | |||
+ | ==install mingw== | ||
+ | possibly old link from Sept 2008: http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=240780 | ||
+ | |||
+ | *if g++ isn't included in this (I forget of the top if my head), | ||
+ | also install gcc-core and gcc-g++, 3.4.5, from here: | ||
+ | possibly old link: http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=82723&release_id=428244 | ||
+ | |||
+ | ==download and install Msys== | ||
+ | *following all default choices in the installer: | ||
+ | possibly old link: http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=24963&release_id=89960 | ||
+ | |||
+ | ==install tortioseSVN and check out code== | ||
+ | Please see [[TPP:Getting the sourcecode for a windows build]] | ||
+ | And be sure that at the same top level directory, check out win_lib, qualscore, and the tpp. | ||
+ | |||
+ | ==Older builds: win_lib/boost== | ||
+ | |||
+ | (In newer TPP revisions, boost is more automatically build for you.) | ||
+ | from the msys shell, go into win_lib and do "make -f Makefile.boost" and wait a long time | ||
+ | OR | ||
+ | download my precompiled boost libs: | ||
+ | http://tools.proteomecenter.org/software/boost_1_35_0-stage-lib.zip | ||
+ | Note that you'll need to unzip win_lib/boost...zip first, then this one. There are so many files in both, that it's still a ~15 minute process! | ||
+ | |||
+ | Note: boost always fails to build some small percentage of its targets. Ignore this (unless you get boost errors later on.) | ||
+ | |||
+ | ==download and install the NSIS Installer== | ||
+ | |||
+ | ==from tpp/src, "make"== | ||
+ | |||
+ | ==from tpp/src, "make install"== | ||
+ | -- note: make install will require the converters, which can only be | ||
+ | built with MSVC. You can download the official releases and drop them | ||
+ | where the installer script expects, or edit the installer file | ||
+ | (tpp/installer_win32/TPP_files.nsh) and comment out that section. | ||
+ | |||
+ | ==done!== | ||
+ | The installer will automatically start if successful. |
Revision as of 22:37, 6 May 2009
Original author
Natalie Tasman, May 2009 TPP 4.2.1
Introduction
This guide is for software developers who might wish to build the TPP on their own system for building and testing modification to the code. TPP users do not have to build the system on their computer, and can simply use the pre-build Windows TPP installer.
This is a very rough guide, and the addition of any more detail and/or screenshots would be welcome.
I abbreviate the Microsoft Visual Studio Professional 2005 tools as MSVC.
Requirements
These are explained throughout the tutorial
- ability to install software (usually, Administrator access)
- source code
- Mingw
- Msys (mingw shell)
- NSIS installer
- MSVC (see below)
MSVC Requirement
For a complete build (suitable for creating an installer) you need to also build the converters under MSVC. Please see that page for more information.
Getting the source code
Where are the Mingw build files created?
<tpp>/build/mingw
install mingw
possibly old link from Sept 2008: http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=240780
- if g++ isn't included in this (I forget of the top if my head),
also install gcc-core and gcc-g++, 3.4.5, from here: possibly old link: http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=82723&release_id=428244
download and install Msys
- following all default choices in the installer:
possibly old link: http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=24963&release_id=89960
install tortioseSVN and check out code
Please see TPP:Getting the sourcecode for a windows build And be sure that at the same top level directory, check out win_lib, qualscore, and the tpp.
Older builds: win_lib/boost
(In newer TPP revisions, boost is more automatically build for you.) from the msys shell, go into win_lib and do "make -f Makefile.boost" and wait a long time
OR
download my precompiled boost libs: http://tools.proteomecenter.org/software/boost_1_35_0-stage-lib.zip Note that you'll need to unzip win_lib/boost...zip first, then this one. There are so many files in both, that it's still a ~15 minute process!
Note: boost always fails to build some small percentage of its targets. Ignore this (unless you get boost errors later on.)
download and install the NSIS Installer
from tpp/src, "make"
from tpp/src, "make install"
-- note: make install will require the converters, which can only be built with MSVC. You can download the official releases and drop them where the installer script expects, or edit the installer file (tpp/installer_win32/TPP_files.nsh) and comment out that section.
done!
The installer will automatically start if successful.