Blame README.SUN

Packit 78284e
Building gtkmm under Sun Solaris
Packit 78284e
================================
Packit 78284e
Packit 78284e
This README refers currently only to Sun Forte[tm] C++ compiler (WS6U2)
Packit 78284e
under Solaris 8/Sparc.
Packit 78284e
Packit 78284e
The described procedure to compile gtkmm with Sun's commercial C++
Packit 78284e
compiler assumes the default compiler installation of Forte[tm] C++ 6
Packit 78284e
update 2. Furthermore all currently available product and adequate SunOS
Packit 78284e
patches for Forte[tm] C++ 6 update 2, which can be donwload from the
Packit 78284e
links given at http://access1.sun.com/sundev/fdp6u2-patches.html, have
Packit 78284e
to be applied. After that your compiler should give the following
Packit 78284e
version information:
Packit 78284e
Packit 78284e
  $ CC -V
Packit 78284e
  CC: Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-10 2002/09/16
Packit 78284e
Packit 78284e
You will not be able to compile gtkmm with the unpatched compiler
Packit 78284e
installation. Also, it is important to hide any gcc installation
Packit 78284e
from your PATH.
Packit 78284e
Packit 78284e
Packit 78284e
The installation procedure:
Packit 78284e
Packit 78284e
* Recent versions of the following GNU utilities should be avalaible in
Packit 78284e
  your PATH:
Packit 78284e
Packit 78284e
    make        (3.79.1)
Packit 78284e
    libtool     (1.4.2)
Packit 78284e
    m4          (1.4)
Packit 78284e
    perl        (5.6.1)
Packit 78284e
Packit 78284e
    The version information (in brackets) apply to my GNU installation.
Packit 78284e
Packit 78284e
* Assuming your compiler installation is in /opt/SUNWspro, the following
Packit 78284e
  environment changes are required:
Packit 78284e
Packit 78284e
    PATH=/opt/SUNWspro/bin:$PATH
Packit 78284e
    LD_LIBRARY_PATH=/opt/SUNWspro/bin:$LD_LIBRARY_PATH
Packit 78284e
    export PATH LD_LIBRARY_PATH
Packit 78284e
Packit 78284e
    CC="cc"
Packit 78284e
    CXX="CC"
Packit 78284e
    LD="CC"
Packit 78284e
    CFLAGS="-g"         or "-g -xO3" for better optimization
Packit 78284e
    CXXFLAGS="-g"       or "-g -O3" for better optimization
Packit 78284e
    export CC CXX LD CFLAGS CXXFLAGS
Packit 78284e
Packit 78284e
* Select an installation directory ($PREFIX).
Packit 78284e
Packit 78284e
* The image libraries jpeg-6b, libpng-1.2.5 and tiff-v3.5.7 are pre-
Packit 78284e
  requisites to build gtk+ libraries. They can be obtained from
Packit 78284e
  www.sunfreeware.com or build from source. Compiling from source
Packit 78284e
  requires some manual corrections (basically prefix settings in the
Packit 78284e
  makefiles), because their build mechanism are rather old. All three
Packit 78284e
  libraries should be build as shared libraries and installed to the
Packit 78284e
  choosen installation directory.
Packit 78284e
Packit 78284e
* gtk+-Installation. For each package of pkgconfig-0.12.0, glib-2.0.6,
Packit 78284e
  atk-1.0.3, pango-1.0.4, gtk+-2.0.6 do:
Packit 78284e
Packit 78284e
    cd <package-path>
Packit 78284e
    CPPFLAGS=-I$PREFIX/include CFLAGS="-I$PREFIX/include $CFLAGS" \
Packit 78284e
    ./configure --prefix=$PREFIX
Packit 78284e
    make
Packit 78284e
    make install
Packit 78284e
Packit 78284e
* gtkmm-Installation. For each package of libsigc++-1.2.x, gtkmm-2.0.x do:
Packit 78284e
Packit 78284e
    cd <package-path>
Packit 78284e
    ./configure --prefix=$PREFIX
Packit 78284e
    make
Packit 78284e
    make install
Packit 78284e
Packit 78284e
* Verification can easily done by
Packit 78284e
Packit 78284e
    cd gtkmm-1.2.x/examples
Packit 78284e
    make
Packit 78284e
Packit 78284e
    and testing all built executables.
Packit 78284e
Packit 78284e
Packit 78284e
Feel free to contact the gtkmm mailing list in case of problems compiling gtkmm under Sun
Packit 78284e
Solaris.
Packit 78284e
Packit 78284e
Packit 78284e
Michael v. Szombathely, 31-Oct-02
Packit 78284e
<szombath@bifab.de>