Strip trailing whitespace.
[ardour.git] / libs / gtkmm2 / README.SUN
1 Building gtkmm under Sun Solaris
2 ================================
3
4 This README refers currently only to Sun Forte[tm] C++ compiler (WS6U2)
5 under Solaris 8/Sparc.
6
7 The described procedure to compile gtkmm with Sun's commercial C++
8 compiler assumes the default compiler installation of Forte[tm] C++ 6
9 update 2. Furthermore all currently available product and adequate SunOS
10 patches for Forte[tm] C++ 6 update 2, which can be donwload from the
11 links given at http://access1.sun.com/sundev/fdp6u2-patches.html, have
12 to be applied. After that your compiler should give the following
13 version information:
14
15   $ CC -V
16   CC: Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-10 2002/09/16
17
18 You will not be able to compile gtkmm with the unpatched compiler
19 installation. Also, it is important to hide any gcc installation
20 from your PATH.
21
22
23 The installation procedure:
24
25 * Recent versions of the following GNU utilities should be avalaible in
26   your PATH:
27
28     make        (3.79.1)
29     libtool     (1.4.2)
30     m4          (1.4)
31     perl        (5.6.1)
32
33     The version information (in brackets) apply to my GNU installation.
34
35 * Assuming your compiler installation is in /opt/SUNWspro, the following
36   environment changes are required:
37
38     PATH=/opt/SUNWspro/bin:$PATH
39     LD_LIBRARY_PATH=/opt/SUNWspro/bin:$LD_LIBRARY_PATH
40     export PATH LD_LIBRARY_PATH
41
42     CC="cc"
43     CXX="CC"
44     LD="CC"
45     CFLAGS="-g"         or "-g -xO3" for better optimization
46     CXXFLAGS="-g"       or "-g -O3" for better optimization
47     export CC CXX LD CFLAGS CXXFLAGS
48
49 * Select an installation directory ($PREFIX).
50
51 * The image libraries jpeg-6b, libpng-1.2.5 and tiff-v3.5.7 are pre-
52   requisites to build gtk+ libraries. They can be obtained from
53   www.sunfreeware.com or build from source. Compiling from source
54   requires some manual corrections (basically prefix settings in the
55   makefiles), because their build mechanism are rather old. All three
56   libraries should be build as shared libraries and installed to the
57   choosen installation directory.
58
59 * gtk+-Installation. For each package of pkgconfig-0.12.0, glib-2.0.6,
60   atk-1.0.3, pango-1.0.4, gtk+-2.0.6 do:
61
62     cd <package-path>
63     CPPFLAGS=-I$PREFIX/include CFLAGS="-I$PREFIX/include $CFLAGS" \
64     ./configure --prefix=$PREFIX
65     make
66     make install
67
68 * gtkmm-Installation. For each package of libsigc++-1.2.x, gtkmm-2.0.x do:
69
70     cd <package-path>
71     ./configure --prefix=$PREFIX
72     make
73     make install
74
75 * Verification can easily done by
76
77     cd gtkmm-1.2.x/examples
78     make
79
80     and testing all built executables.
81
82
83 Feel free to contact the gtkmm mailing list in case of problems compiling gtkmm under Sun
84 Solaris.
85
86
87 Michael v. Szombathely, 31-Oct-02
88 <szombath@bifab.de>