Changes between Version 7 and Version 8 of Platforms/Windows

Show
Ignore:
Timestamp:
12/23/10 18:51:31 (4 years ago)
Author:
cotto
Comment:

rework instructions on getting the mscv and mingw environments set up

Legend:

Unmodified
Added
Removed
Modified
  • Platforms/Windows

    v7 v8  
    22 
    33=== Developers working on Windows === 
     4|| Christoph Otto  || Win7/x86    || MinGW/GCC 4.4.3, Windows SDK 7.1 || 
    45|| François Perrad || Win2000-SP4 || MinGW/GCC 3.4.2 || 
    5 || Ronald Blaschke || Windows XP, Windows XP x64 || Visual C++ 9.0 || 
    6 || Paul Cochrane || Windows XP || Visual C++ 2005 Express Edition || 
     6 
    77 
    88=== Development on Windows === 
     9 
    910==== What to download and install ==== 
    1011 * [http://strawberryperl.com Strawberry Perl] 
    1112 * [http://code.google.com/p/msysgit/downloads/list Git] (pick a "Full installer for official Git" release) 
    12 One of the following: 
    13  * [http://www.microsoft.com/downloads/en/details.aspx?FamilyID=6b6c21d2-2006-4afa-9702-529fa782d63b&displaylang=en Microsoft Windows SDK] 
    14  * [http://www.microsoft.com/express/download/ Microsoft Visual Studio 2008 Express Edition for C++]  
    15  * [http://www.microsoft.com/express/Downloads/#2010-Visual-CPP Microsoft Visual C++ 2010 Express] 
     13 * [http://www.microsoft.com/downloads/en/details.aspx?FamilyID=6b6c21d2-2006-4afa-9702-529fa782d63b&displaylang=en Microsoft Windows SDK] (only needed to build with msvc; installing a version of Visual Studio will also get you the Windows SDK) 
    1614 
    1715==== Setting up Microsoft Windows SDK ==== 
    18 The free download of Microsoft's Windows SDK doesn't require registration and comes with the C compiler tools needed to build Parrot using a Microsoft toolchain.  The latest version (7.1 as of this writing) requires the .Net framework 4.0, which may take some time to download and install.  Neither the Windows SDK nor the .Net framework 4.0 require a reboot. 
     16The free download of Microsoft's Windows SDK doesn't require registration and comes with the C compiler tools needed to build Parrot using a Microsoft toolchain.  The latest version (7.1 as of this writing) requires the .Net framework 4.0, which may take some time to download and install.  Neither the Windows SDK nor the .Net framework 4.0 require a reboot.  You'll need to use the correct shell.  This is in the Start Menu under All Programs -> Microsoft Windows SDK -> Windows SDK Command Prompt.   
    1917 
    20 ==== Setting up Microsoft Visual Studio 2008 ==== 
    21 Now you will need to register the software, otherwise you can only use it for 30 days. To register, start up the `Visual C++ Express` program directly from the Start Menu. Go to the Help menu and select "Register Product". Then click on the "Register now" link in the window which appears. You'll need to get a Hotmail email account so that you can log in and eventually get the registration number. Once you've done that, sign in and you should be presented with a web form to fill out. Fill this information out and you should then be given a registration key. Copy and paste this key into the relevant field in `Visual C++ Express`. You can now close the program; you'll be developing Parrot from within the command line interface anyway :-) 
    22  
    23 ==== Setting up Microsoft Visual C++ 2010 Express ==== 
    24 Microsoft Visual C++ 2010 Express doesn't require a registration. It only forces you to download and install a bunch of other stuff related to Windows development. 
    25  
    26 ==== Get Parrot ==== 
    27 Open up the Visual Studio 2008 or Windows SDK command prompt, and create a clone of Parrot's repository in a suitable location: 
     18==== Configuring and Building Parrot (MinGW) ==== 
     19If you want to build with the MinGW toolchain, just install Strawberry Perl and let Configure.pl pick up its defaults from that: 
    2820{{{ 
    29 git clone https://github.com/parrot/parrot.git parrot_msvc 
     21git clone git://github.com/parrot/parrot.git parrot-mingw 
     22cd parrot-mingw 
     23perl Configure.pl 
     24gmake 
     25gmake test 
    3026}}} 
    3127 
    32 ==== Environment setup ==== 
    33 When using MSVC 2010, run "C:\Program Files\Microsoft Visual Studio 10.0\VC\vcvarsall.bat". 
    34  
    35 ==== Configuring and Building Parrot (MingW) ==== 
    36 You should now be able to run these steps: 
    37 {{{ 
    38 perl Configure.pl 
    39 nmake 
    40 nmake test 
    41 }}} 
    42  
    43 This will build parrot with MingW.  This is because Strawberry Perl is built with gcc and Configure.pl gets its settings from the perl used to run Configure.pl.  See below for instructions on using the Microsoft compiler toolchain with Strawberry Perl. 
    44  
    4528==== Configuring and Building Parrot (Strawberry/msvc) ==== 
    46  
    47 Strawberry Perl is community-driven full featured Perl for Windows systems. Parrot's `Configure.pl` determines compiler options from Perl 
    48 executable.  Strawberry Perl is compiled with gcc, so `Configure.pl` will try to use gcc's options on VS compiler and linker, which will result in nothing - you won't be able to compile/test Parrot. In order to fix that you have to set up compiler's options manually.   
    49  
    50 First of all, open a Visual Studio Command Prompt (Windows->Microsoft Visual Studio 2010->Visual Studio Tools) or Windows SDK Command Prompt (depending on which you installed) and navigate to directory with your git clone of Parrot.  The following options should get you a workable Makefile: 
     29Strawberry Perl is community-driven full featured Perl for Windows systems.  Parrot's `Configure.pl` determines compiler options from perl 
     30executable.  Because Strawberry Perl is compiled with gcc, Parrot's Configure.pl will build with Strawberry Perl's toolchain by default.  Use the following arguments to Configure.pl in the Windows SDK command prompr and you should be able to build with msvc. 
    5131 
    5232{{{ 
     
    5434}}} 
    5535 
    56 Now you can run `nmake`. Enjoy your parrot.exe!  Let  
     36Now you can run `nmake`. Enjoy your parrot.exe!  Let us know if you have any problems. 
    5737 
    5838==== Setting up the cpan shell ====