Changes between Version 13 and Version 14 of building


Ignore:
Timestamp:
06/17/08 12:36:07 (16 years ago)
Author:
jlegrand
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • building

    v13 v14  
    1515 
    1616---- 
     17= Command Line Building Instructions = 
    1718 
    18 = Building Instructions with a Makefile = 
     19== Linux/Unix Boxes == 
    1920 
    20 == Step 1 == 
     21=== Step 1 === 
    2122 
    2223We 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''. 
     24We also supposed that ''gcc/GNAT'' is in your binary PATH and ''LD_LIBRARY_PATH''  
     25environment variable contains ''!GtkAda'' and ''Gtk'' libraries directory 
     26(i.e. ''libs/linux'' directory). 
    2527 
    26 == Step 2 == 
     28For !GtkAda library, one shall replace the ''.../required_packages/GtkAda'' directory content 
     29by the one from ''gtkada_unix.tar.gz'' file found in ''.../required_packages/Archive'' directory. 
    2730 
    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 === 
    3632 
    3733If necessary, read and update the ''config/*.ads'' packages. These Ada packages contain all Cheddar's configurable constants. 
    3834 
    39 == Step 4 == 
     35=== Step 3 === 
    4036 
    41 Type ''gmake'' to compile Cheddar. 
     37Type ''make altall'' in a terminal to compile all Cheddar tools (''make altalldebug'' for debug version). 
    4238 
    43 == Step 5 == 
     39Note : if you want to remove all objects created during Cheddar compilation,  
     40type ''make altclean'' (resp. ''make altcleandebug''). 
    4441 
    45 If the compilation succeed, you will find cheddar tools in ''binaries'' directory.  
     42== Windows Boxes == 
    4643 
    47 == Step 6 == 
     44=== Step 1 === 
    4845 
    49 Installation rules : 
     46If necessary, read and update the ''config/*.ads'' packages. These Ada packages contain all Cheddar's configurable constants. 
    5047 
    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 === 
    5249 
    53  * On Win32 boxes : copy ''cheddar.exe'' and the ''Dll'' files of the win32dll directory in the '''Same''' installation directory (eg. ''C:\Cheddar''). 
     50Open a terminal (choose ''Windows Menu -> execute'' and type ''cmd''). In Cheddar source main directory, 
     51type : 
    5452 
    55 == Step 7 == 
     53 * ''gnatmake -Pcheddargps.gpr -d -XBuild=Release'' : build cheddar tools in ''release'' mode (optimized, no debug information). 
    5654 
    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. 
    5860 
    5961---- 
     
    7779[[Image(htdocs:GPS31.png, nolink, 700)]] 
    7880 
    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''). 
     81Cheddar tools binaries can be found in ''trunk/binaries/bin/release or debug'' directory. 
    8482 
    8583---- 
     
    132130Repeat step 3 with xml2xml.adb, aadl2xml.adb, xml2aadl.adb, aadl2aadl.adb and scc.adb. 
    133131 
    134 == Step 5 == 
     132---- 
    135133 
    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 
     136If 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  
     140to ''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''). 
    137143 
    138144----