Blame README.SUN

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