DevelopersWin32Environment
Version 5 (Dan Smith, 12/28/2012 08:25 am)
1 | 1 | Dan Smith | h1. Setting up a Win32 Development Environment |
---|---|---|---|
2 | 1 | Dan Smith | |
3 | 1 | Dan Smith | h2. Library and Runtime Prerequisites |
4 | 1 | Dan Smith | |
5 | 1 | Dan Smith | Get and install the following in this order: |
6 | 1 | Dan Smith | |
7 | 1 | Dan Smith | # "Python 2.7.x":http://python.org/download/releases/2.7.3/ |
8 | 1 | Dan Smith | # "PyGTK Win32 All-in-one installer":http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/2.24/ |
9 | 1 | Dan Smith | # "PyLibXML2":http://users.skynet.be/sbi/libxml-python/ |
10 | 1 | Dan Smith | # "PyWin32":http://sourceforge.net/projects/pywin32/files/pywin32/ |
11 | 1 | Dan Smith | # "PySerial":http://sourceforge.net/projects/pyserial/files/pyserial/2.5/ |
12 | 1 | Dan Smith | |
13 | 3 | Dan Smith | Notes: |
14 | 4 | Dan Smith | |
15 | 3 | Dan Smith | * For any of the above, be sure to get the latest version, and the py27 variant if/when available. |
16 | 3 | Dan Smith | * If you are on 64-bit Windows, be sure to either download the 32 or 64-bit variants of each of the above. They must all match bitness in order to work together. |
17 | 3 | Dan Smith | |
18 | 5 | Dan Smith | When everything is installed, you will want to make sure that Python is in your system PATH variable: |
19 | 5 | Dan Smith | |
20 | 5 | Dan Smith | h3. Windows XP |
21 | 5 | Dan Smith | |
22 | 5 | Dan Smith | * On the Desktop or in the Start menu, right-click on *My Computer* and choose *Properties* |
23 | 5 | Dan Smith | * In the dialog that opens, on the *Advanced* tab, click on *Environment Variables* |
24 | 5 | Dan Smith | * Under *System variables*, find *Path*, select it, and then edit *Edit* |
25 | 5 | Dan Smith | * At the end of the existing value, add exactly this string: @;C:\Python27\bin@ (obviously adjust this path if you installed it elsewhere. Don't forget the leading semicolon) |
26 | 5 | Dan Smith | * Click the *OK* buttons until you're done. |
27 | 5 | Dan Smith | |
28 | 5 | Dan Smith | h3. Windows Vista/7 |
29 | 5 | Dan Smith | |
30 | 5 | Dan Smith | * In the Windows menu, right-click on the *Computer* item and choose *Properties* |
31 | 5 | Dan Smith | * Click on *Advanced System Settings* on the left |
32 | 5 | Dan Smith | * In the dialog that opens, click on *Environment Variables* |
33 | 5 | Dan Smith | * Under *System variables*, find *Path*, select it, and then edit *Edit* |
34 | 5 | Dan Smith | * At the end of the existing value, add exactly this string: @;C:\Python27\bin@ (obviously adjust this path if you installed it elsewhere. Don't forget the leading semicolon) |
35 | 5 | Dan Smith | * Click the *OK* buttons until you're done. |
36 | 5 | Dan Smith | |
37 | 1 | Dan Smith | h2. CHIRP Development Process |
38 | 1 | Dan Smith | |
39 | 1 | Dan Smith | Get and install the mercurial source code management tool: |
40 | 1 | Dan Smith | |
41 | 1 | Dan Smith | * "Mercurial SCM":http://mercurial.selenic.com/downloads/ |
42 | 1 | Dan Smith | |
43 | 1 | Dan Smith | |
44 | 1 | Dan Smith | h2. Clone the repository |
45 | 1 | Dan Smith | |
46 | 2 | Dan Smith | The next step is to download a copy of the repository. This is done from the command-line, and will create a @chirp.hg/@ directory in your current directory. Thus, you should change to the place you want it to be first. For example: |
47 | 1 | Dan Smith | |
48 | 2 | Dan Smith | <pre> |
49 | 2 | Dan Smith | C:\Users\Foo> cd \MyWorkspace |
50 | 2 | Dan Smith | C:\MyWorkspace> hg clone http://d-rats.com/hg/chirp.hg |
51 | 2 | Dan Smith | </pre> |
52 | 1 | Dan Smith | |
53 | 1 | Dan Smith | h2. Run chirp |
54 | 1 | Dan Smith | |
55 | 2 | Dan Smith | Python should be in your search path from the install, but if not, put it in the system PATH environment variable. Once you do that, you should be able to enter the directory that was created in the clone step above, and run chirpw with python: |
56 | 1 | Dan Smith | |
57 | 2 | Dan Smith | <pre> |
58 | 2 | Dan Smith | C:\MyWorkspace> cd chirp.hg |
59 | 2 | Dan Smith | C:\MyWorkspace\chirp.hg> python chirpw |
60 | 2 | Dan Smith | </pre> |