23
|
1 |
Welcome to the OpenSolaris Desktop Common Build Environment [CBE]
|
|
2 |
|
|
3 |
Version @CBE_VERSION@ (@DATE@, @ARCH@ architecture)
|
|
4 |
|
|
5 |
|
|
6 |
What is the Desktop CBE?
|
|
7 |
|
|
8 |
The Desktop CBE is a collection of tools needed for building GNOME,
|
|
9 |
KDE or SFE packages.
|
|
10 |
|
|
11 |
Supported operating systems:
|
|
12 |
|
|
13 |
- Solaris 10
|
|
14 |
- Solaris Nevada (a.k.a. Solaris Express Community Edition or
|
|
15 |
Solaris Express Developer Edition)
|
|
16 |
- OpenSolaris
|
|
17 |
|
|
18 |
Most of the tools in the Desktop CBE are included in Solaris Nevada
|
|
19 |
and OpenSolaris, but sometimes using different names (e.g. ginstall
|
|
20 |
instead of install, gmake instead of make). The Desktop CBE
|
|
21 |
will not install duplicate packages, instead it will create
|
|
22 |
symbolic links to the tools shipped with the OS.
|
|
23 |
|
|
24 |
The following tools are included:
|
|
25 |
|
38
|
26 |
For KDE: ant, GNU m4, autoconf, automake, libtool, bison, GNU coreutils,
|
23
|
27 |
GNU diff, flex, GNU gettext, subversion, GNU awk, GNU sed,
|
|
28 |
cmake, GNU make, yasm
|
|
29 |
For GNOME/SFE: ant, GNU m4, autoconf, automake, libtool, bison,
|
|
30 |
GNU coreutils, GNU diff, flex, GNU gettext, GNU make,
|
|
31 |
subversion
|
|
32 |
Optional tools: rsync cvs
|
|
33 |
|
|
34 |
Tool Versions:
|
|
35 |
|
38
|
36 |
- ant: 1.7.1
|
23
|
37 |
- autoconf: 2.61
|
|
38 |
- automake: 1.10.1
|
|
39 |
- bison: 2.3
|
|
40 |
- cmake: 2.4.8
|
|
41 |
- coreutils: 6.10
|
|
42 |
- cvs: 1.12.13
|
|
43 |
- diff: 2.8.1
|
|
44 |
- flex: 2.5.33
|
|
45 |
- gettext: 0.16.1
|
|
46 |
- gawk: 3.1.6
|
|
47 |
- sed: 4.1.5
|
|
48 |
- libtool: 1.5.26
|
|
49 |
- libtool: 2.2.4
|
|
50 |
- m4: 1.4.9
|
|
51 |
- make: 3.81
|
38
|
52 |
- rsync: 3.0.4
|
23
|
53 |
- svn: 1.4.6
|
38
|
54 |
- yasm: 0.7.1
|
23
|
55 |
|
|
56 |
|
|
57 |
What's new in this release (@CBE_VERSION@)?
|
|
58 |
|
|
59 |
This release combines the JDS CBE (GNOME, SFE build env) and the
|
|
60 |
KBE (KDE build env). Those who used the JDS CBE before will
|
|
61 |
find the following improvements:
|
|
62 |
|
|
63 |
- newer tools
|
|
64 |
- only the missing tools (i.e. those not shipped in the OS) are
|
|
65 |
installed
|
|
66 |
- supports multiple compilers (see Using the Desktop CBE below)
|
|
67 |
|
|
68 |
|
|
69 |
Installing the Desktop CBE
|
|
70 |
|
|
71 |
After unpacking the CBE tarball (which you have already done if
|
|
72 |
you're reading this document ;) run the cbe-install script.
|
|
73 |
(If you have a previous JDS CBE installed, you can use the
|
|
74 |
cbe-remove script to uninstall it.)
|
|
75 |
|
|
76 |
The cbe-install script is interactive and will guide you
|
|
77 |
through the installation process.
|
|
78 |
|
|
79 |
Use the -n option for non-interactive installation. In this case
|
|
80 |
the default answers will be assumed for all questions:
|
|
81 |
|
|
82 |
$ ./cbe-install -n --gnome --compiler /opt/SUNWspro/bin/cc
|
|
83 |
|
|
84 |
Run ./cbe-install --help for more information about command line
|
|
85 |
options.
|
|
86 |
|
|
87 |
The binary packages included in the Desktop CBE tarball are
|
|
88 |
compiled for installation in /opt/dtbld. If you wish to
|
|
89 |
install the Desktop CBE in a different prefix, use the
|
|
90 |
source tarball.
|
|
91 |
|
|
92 |
Using the Desktop CBE
|
|
93 |
|
|
94 |
The cbe-install script will locate the C compilers on your
|
|
95 |
system and set up "environment config files" in
|
|
96 |
/opt/dtcbe/lib/cbe-env. One of these config files will be
|
|
97 |
selected as the default. Depending on your shell, you
|
|
98 |
can use the env.sh or env.csh scripts to set up your
|
|
99 |
build environment for one of the compilers:
|
|
100 |
|
|
101 |
bash$ . /opt/dtcbe/bin/env.sh gcc3
|
|
102 |
Desktop CBE version 1.7.0 built on 2008-06-16 by laca@tecra
|
|
103 |
Using CC=/usr/bin/gcc
|
|
104 |
Using CXX=/usr/bin/g++
|
|
105 |
Setting PATH=/opt/dtbld/bin:/usr/ccs/bin:/usr/gnu/bin:/usr/bin:/usr/sbin:/bin:/usr/sfw/bin
|
|
106 |
|
|
107 |
tcsh% source /opt/dtbld/bin/env.csh ss12
|
|
108 |
Desktop CBE version 1.7.0 built on 2008-06-16 by laca@tecra
|
|
109 |
Using CC=/opt/SUNWspro/bin/cc
|
|
110 |
Using CXX=/opt/SUNWspro/bin/CC
|
|
111 |
Setting PATH=/opt/dtbld/bin:/opt/SUNWspro/bin:/usr/ccs/bin:/usr/gnu/bin:/usr/bin:/usr/sbin:/bin:/usr/sfw/bin
|
|
112 |
|
|
113 |
zsh% source /opt/dtbld/bin/env.sh foo
|
|
114 |
Desktop CBE version 1.7.0 built on 2008-06-18 by laca@tecra
|
|
115 |
ERROR: Unknown CBE environment: foo
|
|
116 |
|
|
117 |
Valid choices are:
|
|
118 |
|
|
119 |
default -> ss12
|
|
120 |
gcc3
|
|
121 |
gcc4
|
|
122 |
sexp
|
|
123 |
ss12
|
|
124 |
|
|
125 |
Note: you cannot pass arguments after source <file> when using the csh
|
|
126 |
shell. You can start a subshell, though:
|
|
127 |
|
|
128 |
If you run the env scripts instead of "sourcing" them, they will
|
|
129 |
start a subshell. The shell started will be $SHELL:
|
|
130 |
|
|
131 |
bash$ /opt/dtbld/bin/env.sh ss12
|
|
132 |
Desktop CBE version 1.7.0 built on 2008-06-18 by laca@tecra
|
|
133 |
Using CC=/opt/SUNWspro/bin/cc
|
|
134 |
Using CXX=/opt/SUNWspro/bin/CC
|
|
135 |
Setting PATH=/opt/dtbld/bin:/opt/SUNWspro/bin:/usr/ccs/bin:/usr/gnu/bin:/usr/bin:/usr/sbin:/bin:/usr/sfw/bin
|
|
136 |
Starting subshell /bin/bash --norc --noprofile
|
|
137 |
bash$
|
|
138 |
|
|
139 |
bash$ SHELL=/bin/csh /opt/dtbld/bin/env.sh sexp
|
|
140 |
Desktop CBE version 1.7.0 built on 2008-06-18 by laca@tecra
|
|
141 |
Using CC=/opt/SunStudioExpress/bin/cc
|
|
142 |
Using CXX=/opt/SunStudioExpress/bin/CC
|
|
143 |
Setting PATH=/opt/dtbld/bin:/opt/SunStudioExpress/bin:/usr/ccs/bin:/usr/gnu/bin:/usr/bin:/usr/sbin:/bin:/usr/sfw/bin
|
|
144 |
Starting subshell /bin/csh -f
|
|
145 |
csh%
|
|
146 |
|
29
|
147 |
Use the env_include.sh script for setting up the Desktop build
|
|
148 |
environment in scripts (sh, bash, ksh, zsh should work). This script
|
|
149 |
provides the init_dt_cbe function. It takes one [optional] argument:
|
|
150 |
the name of a CBE environment (found in /opt/dtbld/lib/cbe-env).
|
23
|
151 |
You can set the JDS_CBE_ENV_QUIET variable to 1 to make the env script
|
|
152 |
silent. This is useful when calling it from your .profile or .bashrc,
|
|
153 |
for example:
|
|
154 |
|
|
155 |
bash$ cat ~/.bashrc
|
|
156 |
PS1='\u@\h:\w> '
|
|
157 |
JDS_CBE_ENV_QUIET=1
|
29
|
158 |
. /opt/dtbld/bin/env_include.sh
|
|
159 |
init_dt_cbe ss12
|
23
|
160 |
export EDITOR=vi
|
|
161 |
export PAGER=less
|
|
162 |
export PATH=$HOME/bin:$PATH
|