Changes between Version 13 and Version 14 of building
- Timestamp:
- 06/17/08 12:36:07 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
building
v13 v14 15 15 16 16 ---- 17 = Command Line Building Instructions = 17 18 18 = Building Instructions with a Makefile=19 == Linux/Unix Boxes == 19 20 20 == Step 1==21 === Step 1 === 21 22 22 23 We assume that all the required component are already installed in your system. 23 We also supposed that ''gcc/GNAT'' is in your binary PATH and that your ''LD_LIBRARY_PATH'' 24 contains the installation directory of ''!GtkAda''. 24 We also supposed that ''gcc/GNAT'' is in your binary PATH and ''LD_LIBRARY_PATH'' 25 environment variable contains ''!GtkAda'' and ''Gtk'' libraries directory 26 (i.e. ''libs/linux'' directory). 25 27 26 == Step 2 == 28 For !GtkAda library, one shall replace the ''.../required_packages/GtkAda'' directory content 29 by the one from ''gtkada_unix.tar.gz'' file found in ''.../required_packages/Archive'' directory. 27 30 28 Update the Makefile.vars file : 29 30 * Give Cheddar directory source code location (pointed by ''ROOT_CHEDDAR'' variable). 31 * Update the ''ADAC_INCLUDE'' and the ''ADAC_LIB'' variables according to ''Gtk'', ''!GtkAda'', ''!XmlAda'', ''!BigNumbers'' and ''Ocarina'' installation directories. 32 33 '''Several Makefile.vars examples are provided in Cheddar source code''' (''Makefile.vars.linux'' for Linux, ''Makefile.vars.solaris'' for Solaris, ''Makefile.vars.win32'' for Windows boxes ...) 34 35 == Step 3 == 31 === Step 2 === 36 32 37 33 If necessary, read and update the ''config/*.ads'' packages. These Ada packages contain all Cheddar's configurable constants. 38 34 39 == Step 4==35 === Step 3 === 40 36 41 Type '' gmake'' to compile Cheddar.37 Type ''make altall'' in a terminal to compile all Cheddar tools (''make altalldebug'' for debug version). 42 38 43 == Step 5 == 39 Note : if you want to remove all objects created during Cheddar compilation, 40 type ''make altclean'' (resp. ''make altcleandebug''). 44 41 45 If the compilation succeed, you will find cheddar tools in ''binaries'' directory. 42 == Windows Boxes == 46 43 47 == Step 6==44 === Step 1 === 48 45 49 I nstallation rules :46 If necessary, read and update the ''config/*.ads'' packages. These Ada packages contain all Cheddar's configurable constants. 50 47 51 * On Unix boxes : just copy executables in the installation directory (eg. ''/usr/local/bin'' ). It is supposed that you already installed ''Gtkada'' shared libraries. Do not forget to update your ''LD_LIBRARY_PATH'' shell variable to point to the shared library directory (see ''libs'' directory). 48 === Step 2 === 52 49 53 * On Win32 boxes : copy ''cheddar.exe'' and the ''Dll'' files of the win32dll directory in the '''Same''' installation directory (eg. ''C:\Cheddar''). 50 Open a terminal (choose ''Windows Menu -> execute'' and type ''cmd''). In Cheddar source main directory, 51 type : 54 52 55 == Step 7 == 53 * ''gnatmake -Pcheddargps.gpr -d -XBuild=Release'' : build cheddar tools in ''release'' mode (optimized, no debug information). 56 54 57 Have fun. 55 * ''gnatmake -Pcheddargps.gpr -d -XBuild=Debug'' : build cheddar tools in ''debug'' mode (no optimization). 56 57 * ''gnatclean -r -Pcheddargps.gpr -XBuild=Release'' : remove objects from ''release'' mode compilation. 58 59 * ''gnatclean -r -Pcheddargps.gpr -XBuild=Debug'' : remove objects from ''debug'' mode compilation. 58 60 59 61 ---- … … 77 79 [[Image(htdocs:GPS31.png, nolink, 700)]] 78 80 79 Built binary can be found in Cheddar source code ''trunk/binaries/bin/release or debug'' directory. 80 81 == Step 3 == 82 83 For windows, copy ".exe" files and DLL files stored in the win32dll directory in the '''same''' installation directory (e.g. ''c:\Cheddar''). 81 Cheddar tools binaries can be found in ''trunk/binaries/bin/release or debug'' directory. 84 82 85 83 ---- … … 132 130 Repeat step 3 with xml2xml.adb, aadl2xml.adb, xml2aadl.adb, aadl2aadl.adb and scc.adb. 133 131 134 == Step 5 == 132 ---- 135 133 136 Installation rules : copy ".exe" files and DLL files stored in the win32dll directory in the '''same''' installation directory (e.g. ''c:\Cheddar''). 134 = Installation Instructions = 135 136 If the compilation succeed, Cheddar tools binaries can be found in ''binaries/bin/release'' directory 137 (''binaries/bin/debug'' for debug version). 138 139 * On Unix boxes : just copy executables in the installation directory (eg. ''/usr/local/bin'' ). Your ''LD_LIBRARY_PATH'' shell variable shall point 140 to ''libs/linux'' directory. 141 142 * On Win32 boxes : copy ''cheddar.exe'' and the ''Dll'' files from ''libs/win32dll'' directory in the '''Same''' installation directory (eg. ''C:\Cheddar''). 137 143 138 144 ----