Changes between Version 7 and Version 8 of Platforms/Windows
- Timestamp:
- 12/23/10 18:51:31 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Platforms/Windows
v7 v8 2 2 3 3 === Developers working on Windows === 4 || Christoph Otto || Win7/x86 || MinGW/GCC 4.4.3, Windows SDK 7.1 || 4 5 || 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 7 7 8 8 === Development on Windows === 9 9 10 ==== What to download and install ==== 10 11 * [http://strawberryperl.com Strawberry Perl] 11 12 * [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) 16 14 17 15 ==== 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. 16 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. You'll need to use the correct shell. This is in the Start Menu under All Programs -> Microsoft Windows SDK -> Windows SDK Command Prompt. 19 17 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) ==== 19 If you want to build with the MinGW toolchain, just install Strawberry Perl and let Configure.pl pick up its defaults from that: 28 20 {{{ 29 git clone https://github.com/parrot/parrot.git parrot_msvc 21 git clone git://github.com/parrot/parrot.git parrot-mingw 22 cd parrot-mingw 23 perl Configure.pl 24 gmake 25 gmake test 30 26 }}} 31 27 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.pl39 nmake40 nmake test41 }}}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 45 28 ==== 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: 29 Strawberry Perl is community-driven full featured Perl for Windows systems. Parrot's `Configure.pl` determines compiler options from perl 30 executable. 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. 51 31 52 32 {{{ … … 54 34 }}} 55 35 56 Now you can run `nmake`. Enjoy your parrot.exe! Let 36 Now you can run `nmake`. Enjoy your parrot.exe! Let us know if you have any problems. 57 37 58 38 ==== Setting up the cpan shell ====