Revision 1339 trunk/QuickStartVisualC++.txt

QuickStartVisualC++.txt (revision 1339)
3 3
*ADMB-11.1*  
4 4
*Released May 10, 2013*  
5 5

  
6
Describes Quick Start installation procedures for Visual C++ compilers.
6
Describe ADMB build and installation procedures for Windows and Visual C++ compilers.
7 7

  
8 8
---
9
**Note**: For Microsoft Visual C++ 2010, Read [installation help][help]. 
9
_**Note**: For Microsoft Visual C++ 2010, read [installation][help] documentation._
10 10
[help]: http://www.admb-project.org/documentation/installation/admb-installation-visual-c
11 11

  
12
Prerequisites
13
-------------
14

  
15
The following programs should be installed on the local computer.
16

  
17
* Visual C++ installed and updated
18
* Subversion Client SlikSVN 
19

  
12 20
Quick Start Visual C++
13 21
----------------------
14 22

  
15
1. Download [ADMB source distribution](download).
23
1. Open **Visual Studio Command Prompt** window
16 24

  
17
   [download]: http://www.admb-project.org/downloads/
25
2. Download ADMB
18 26

  
19
   Right click the downloaded file and extract to `C:\admb\`.
27
   To get the most current code, download from directly from 
28
   ADMB version control using the command below.
20 29

  
21
2. Open **'Visual Studio Command Prompt**' window and change to admb directory.
30
       C:\> svn checkout http://www.admb-project.org/svn/trunk admb
22 31

  
23
   `C:\> cd admb`
32
   This will download admb trunk folder to _C:\admb\ _.
24 33

  
25
3. Build libraries
34
   If **unable** to checkout, download [ADMB source distribution](download).
35
 
36
   [download]: http://www.admb-project.org/buildbot/snapshots/admb-latest.zip
26 37

  
27
   `C:\admb\> nmake`
38
   Double click downloaded zip file and extract to _C:\admb\ _.
28 39

  
29
   To build with debug symbols,
40
3. Change to admb directory
30 41

  
31
   `C:\admb\> nmake debug`
42
       C:\> cd admb
32 43

  
33
   Takes approximately 15-25 minutes to complete.
44
4. Build ADMB distribution
34 45

  
35
4. Build and run the simple example.
46
       C:\admb\> nmake
36 47

  
37
   `C:\admb\> cd examples\admb\simple`
48
   Build with debug symbols,
38 49

  
39
   `C:\admb\examples\admb\simple\> C:\admb\admb simple`
50
       C:\admb\> nmake debug
40 51

  
41
   `C:\admb\examples\admb\simple\> simple`
52
5. Test ADMB
42 53

  
43
5. *[Optional]* Include admb in system **PATH**.
44
   Avoids the need the to add the prefix path to the admb script.
54
   The following commands build and run the simple example.
45 55

  
46
   A. In the **'System Properties'** window, click on the **'Enviroment Variables'** button.
56
       C:\admb\> cd examples\admb\simple
57
       C:\admb\examples\admb\simple\> C:\admb\admb simple.tpl
58
       C:\admb\examples\admb\simple\> simple.exe
47 59

  
48
   B. In the **'Enviroment Variables'** windows, click on the **'New'** button, then
49
   in the **'Variable name'** input type
60
6. **[OPTIONAL]** Include ADMB in system **PATH**.
50 61

  
51
   **PATH**
62
   Avoids the need the to add the prefix path to the admb script.
52 63

  
53
   and in the **'Variable value'** input type
64
   1. In the **System Properties** window, click on the **Enviroment Variables** button.
54 65

  
55
   `C:\admb\;%PATH%`
66
   2. In the **Enviroment Variables** windows, click on the **New** button, then in the **Variable name** input type `PATH` and in the **Variable value** input type `C:\admb\;%PATH%`.
56 67

  
57
   C. Click the **'OK'** button when done and open a new command prompt.
68
   3. Click the **OK** button when done and open a new command prompt.
58 69

  
59
   `C:\> cd \admb\examples\admb\simple`
60
   `C:\admb\examples\admb\simple\> admb simple`
61
   `C:\admb\examples\admb\simple\> simple`
70
            C:\admb\> cd examples\admb\simple
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff