File: tutorial.rst

package info (click to toggle)
ns3 3.29%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 126,180 kB
  • sloc: cpp: 490,768; python: 367,771; perl: 8,720; ansic: 7,158; xml: 3,842; makefile: 2,035; sh: 771
file content (45 lines) | stat: -rw-r--r-- 1,339 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
How do you get started with bake ?
==================================

A typical user session to build everything:::

  wget http://www.nsnam.org/bakeconf.xml
  bake configure -a
  bake download
  bake build

The result:

* bakefile.xml: contains output of configuration step
* 'source' directory: contains downloaded code:
** one file per tarball downloaded
** one directory per module
** one directory/objdir per module which contains all object files built
* 'build' directory: contains the libraries, headers, and binaries installed by each module

A more advanced user:::

  wget http://www.nsnam.org/bakeconf.xml
  mkdir opt
  cd opt
  bake configure -c ../bakeconf.xml -a --sourcedir=../source --builddir=. --objdir=opt --set=CFLAGS=-O3
  bake download
  bake build
  # now, build debug version
  cd ..
  mkdir dbg
  cd dbg
  bake configure -c ../bakeconf.xml -a --sourcedir=../source --builddir=. --objdir=dbg --set=CFLAGS=-O0
  bake build

The result:

* opt/bakefile.xml contains optimized build configuration
* dbg/bakefile.xml contains debug build configuration
* source contains all source code:
** source/module/opt contains optimized object files
** source/module/dbg contains debug object files
* opt/ contains headers, libraries, binaries for optimized build
* dbg/ contains headers, libraries, binaries for debug build