1 Building gtkmm under Sun Solaris
2 ================================
4 This README refers currently only to Sun Forte[tm] C++ compiler (WS6U2)
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
16 CC: Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-10 2002/09/16
18 You will not be able to compile gtkmm with the unpatched compiler
19 installation. Also, it is important to hide any gcc installation
23 The installation procedure:
25 * Recent versions of the following GNU utilities should be avalaible in
33 The version information (in brackets) apply to my GNU installation.
35 * Assuming your compiler installation is in /opt/SUNWspro, the following
36 environment changes are required:
38 PATH=/opt/SUNWspro/bin:$PATH
39 LD_LIBRARY_PATH=/opt/SUNWspro/bin:$LD_LIBRARY_PATH
40 export PATH LD_LIBRARY_PATH
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
49 * Select an installation directory ($PREFIX).
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.
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:
63 CPPFLAGS=-I$PREFIX/include CFLAGS="-I$PREFIX/include $CFLAGS" \
64 ./configure --prefix=$PREFIX
68 * gtkmm-Installation. For each package of libsigc++-1.2.x, gtkmm-2.0.x do:
71 ./configure --prefix=$PREFIX
75 * Verification can easily done by
77 cd gtkmm-1.2.x/examples
80 and testing all built executables.
83 Feel free to contact the gtkmm mailing list in case of problems compiling gtkmm under Sun
87 Michael v. Szombathely, 31-Oct-02