Avida

 

root / avida-ed / README

Revision 347, 2.8 kB (checked in by brysonda, 5 years ago)

Implement command line argument loading for cAvidaConfig. Can easily co-exist next to the current config object, though it is incompatible with existing genesis files. WORLD-X and WORLD-Y have to be WORLD_X and WORLD_Y, respectively. C++ will not allow dashes in identifiers. The default configuration file name for cAvidaConfig is set to 'avida.cfg' in order to avoid the clash with old style genesis files.

Line 
1Avida 2.3.x
2----------------------------------------------------------------------
3Digital Evolution Laboratory at Michigan State University
4
5
6REQUIREMENTS
7----------------------------------------------------------------------
8
9In order to build Avida, you must have CMake 2.x installed.
10CMake 2.x is available from http://www.cmake.org
11
12NCurses, in order to build the console viewer.
13
14OR
15
16In Mac OS X, an Xcode project has been provided for building the
17'primitive' console only version of Avida, as well as the NCurses
18viewer.  Xcode 2.1 or greater is required.
19
20
21GETTING STARTED
22----------------------------------------------------------------------
23
24To compile and install Avida, all you have to do is run:
25$ ./build_avida
26
27By default, you will get an optimized version of the code, as well as
28the NCurses viewer. The installation goes into a directory called
29'work' that is created in a subdirectory named 'build' directory.
30See below how to change that.
31
32OR
33
34In Mac OS X's Xcode, click the 'Build' button on the project window.
35
36
37CMAKE CONFIGURATION OPTIONS
38----------------------------------------------------------------------
39
40Here are the main options available when configuring and building
41Avida with cmake :
42
43AVD_CONSISTENCY_TEST_PRIMITIVE
44 -  This is a BOOL, either ON or OFF, to enable primitive consistency
45    test suites.
46 OFF by default.
47
48AVD_GUI_NCURSES
49 -  This is a BOOL, either ON or OFF, to enable building Avida console
50    interface.
51 ON by default.
52
53AVD_PRIMITIVE
54This is a BOOL, either ON or OFF, to enable building interfaceless
55Avida (fastest version).
56ON by default.
57
58AVD_UNIT_TESTS
59 -  This is a BOOL, either ON or OFF, to enable building primitive
60    unit test suites.
61 OFF by default.
62
63CMAKE_BUILD_TYPE
64 -  This is a STRING, one of "None", "Debug", "Release",
65    "RelWithDebInfo", "MinSizeRel", to vary optimization levels and
66    debugging information in the build.
67 "Release" by default.
68
69
70
71CONFIGURING THE CMAKE BUILD
72----------------------------------------------------------------------
73
74There are three ways by which you can set the various options.
75
76
77For a simple 'gui' like interface, from the build directory run:
78$ ccmake ../
79
80Pressing 'c' will configure
81Pressing 'g' will generate the make files and exit
82
83
84If you'd like to be prompted with questions for each option, execute
85the following from the build directory:
86$ cmake -i ../
87
88
89From the command-line option, the cmake option -D allows setting Avida
90configuration options with the following syntax:
91-D<variable name>:<type>=<value>
92
93To completely specify each of the above Avida options, cd into your
94build directory and type something like :
95$ cmake -DAVD_CONSISTENCY_TEST_PRIMITIVE:BOOL=OFF \
96  -DAVD_GUI_NCURSES:BOOL=ON \
97  -DAVD_PRIMITIVE:BOOL=ON \
98  -DAVD_UNIT_TESTS:BOOL=OFF \
99  -DCMAKE_BUILD_TYPE:STRING=Release \
100  path-to-source-directory
101
102
103
104Revised 2005-16-10 DMB
Note: See TracBrowser for help on using the browser.