Revision 543 trunk/docs/install/readme-macos.txt

readme-macos.txt (revision 543)
1 1
Installation
2 2
============
3
  Describes the installation procedure for installing ADMB
4
  from the binary installation file.
3
The installation procedure for installing ADMB
4
from the package installer file.
5 5

  
6
  Prerequistes
7
  ------------
8
  * Apple Developer Tools (XCode) must be installed
9
    from http://www.apple.com/xcode/.
6
Prerequisites
7
------------
8
* Apple Developer Tools (XCode) must be installed
9
  from http://www.apple.com/xcode/.
10 10

  
11
  Procedure
12
  ---------
13
  1. Open ADMB dmg file. 
14
  2. In the mounted disk image (ADMB 10.1), double click the 
15
     pkg installer and follow the installation instructions.
16
  3. Once the installation is "Finished", follow the "Quick Start" 
17
     procedure below to build and run the simple example.
11
Procedure
12
---------
13
1. Open ADMB dmg file. 
14
2. In the mounted disk image "ADMB", copy "ADMB-Terminal"
15
   to the "Applications" folder.
18 16

  
19 17
Quick Start
20 18
===========
21
  Describes the procedure for building and running the
22
  ADMB simple example.
19
Describes the procedure for building and running the
20
ADMB simple example.
23 21

  
24
  1. Open Terminal located in /Applications/Utilities,
25
     then type admb for Usage options.
22
1. Open "ADMB-Terminal" located in /Applications,
23
   then type admb for Usage options.
26 24

  
27
     $ admb
28
     Usage: admb [-d] [-g] [-r] [-s] model
25
   $ admb
26
   Usage: admb [-d] [-g] [-r] [-s] model
29 27

  
30
     Build AD Model Builder executable from TPL.
28
   Build AD Model Builder executable from TPL.
31 29

  
32
       -d     Create DLL
33
       -g     Insert debugging symbols
34
       -r     Create ADMB-RE
35
       -s     Enforce safe bounds
36
       model  Filename prefix, e.g. simple
30
     -d     Create DLL
31
     -g     Insert debugging symbols
32
     -r     Create ADMB-RE
33
     -s     Enforce safe bounds
34
     model  Filename prefix, e.g. simple
37 35

  
38
  2. Copy simple from examples.
36
2. Copy simple example from ADMB_HOME.
39 37

  
40
     $ cp -R /usr/local/admb/examples/admb/simple .
38
   $ cp -R $ADMB_HOME/examples/admb/simple .
41 39

  
42
  3. Must change to the copied simple directory .
40
3. Must change to the copied simple directory .
43 41

  
44
     $ cd simple
42
   $ cd simple
45 43

  
46
  4. Build the simple example.
44
4. Build the simple example.
47 45

  
48
     $ admb simple
46
   $ admb simple
49 47

  
50
     *** Parsing: tpl2cpp simple
48
   *** Parsing: tpl2cpp simple
51 49

  
52
     *** Compiling: adcomp simple
53
     g++ -c -O3 -Wno-deprecated  -DOPT_LIB -D__GNUDOS__ -Dlinux -DUSE_LAPLACE -fpermissive -I. -I/usr/local/admb/include simple.cpp
50
   *** Compiling: adcomp simple
51
   g++ -c -O3 -Wno-deprecated  -DOPT_LIB -D__GNUDOS__ -Dlinux -DUSE_LAPLACE -fpermissive -I. -I/usr/local/admb/include simple.cpp
54 52

  
55
     *** Linking: adlink simple
56
     g++ -O3 -L/usr/local/admb/lib simple.o -ldf1b2o -ladmod -ladt -lado -ldf1b2o -ladmod -ladt -lado -o simple
53
   *** Linking: adlink simple
54
   g++ -O3 -L/usr/local/admb/lib simple.o -ldf1b2o -ladmod -ladt -lado -ldf1b2o -ladmod -ladt -lado -o simple
57 55

  
58
     Successful build of executable: simple
56
   Successful build of executable: simple
59 57

  
60
   5. Run the simple example.
58
5. Run the simple example.
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff