Prev Up (Under construction)


Xpm is a C function library for Xpixmap manipulations. It includes command line tools, cxpm, sxpm, to check and show/convert Xpixmap files.

Compilation (V3.5.9)

AIX 4.1,5.3,6.1,7.1

Straightforward. Unpack the source archive. Then, in the source directory:
                        # to avoid pkgconfig trouble:
export  XPM_LIBS=-lX11
export SXPM_LIBS="-lXt -lXext -lX11"
                                           # use a temporary install directory
./configure CC=cc CFLAGS="-O2 -qmaxmem=-1" --prefix=/tmp/libXpm-3.5.9/  # 4.x, C 3.6.6
./configure CC=cc CFLAGS=-O2               --prefix=/tmp/libXpm-3.5.9/  # 5.x, C 6 
                                           # AIX 6.1, cc/xlC 9.0; AIX 7.1, cc/xlC 12.1:
configure --prefix=/tmp/libXpm-3.5.9/ CC=cc XPM_CFLAGS="-O2 -D_THREAD_SAFE -D_LARGE_FILES" XPM_LIBS="-lX11" SXPM_CFLAGS="-O2 -D_THREAD_SAFE -D_LARGE_FILES" SXPM_LIBS="-lXt -lXext -lX11" CFLAGS="-O2 -D_LARGE_FILES -D_THREAD_SAFE -qcpluscmt" --disable-shared --enable-static
make clean
make install

Compilation (obsolete procedure)

Tru64 4.x/5.1, HP-UX 11/10.20, AIX 5.1

Xpm 3.5.5 didn't configure properly (autoconf crap, "pkg-config script missing"). Manually:
  1. cd libXpm-3.5.5/src
    cc -c -Ae -D_REENTRANT +z -I../include/X11 *.c  # HP-UX 10.20 
    cc -c                     -I../include/X11 *.c  # non HP-UX 
    ar -rv libXpm.a *.o
    ar -st libXpm.a
    cd ../cxpm
    cc -o cxpm                     -I../src -I../include/X11 cxpm.c 
    cc -o cxpm -Ae -D_REENTRANT +z -I../src -I../include/X11 cxpm.c # HP-UX 10.20
    cd ../sxpm
    cc -o sxpm sxpm.c                     -I../src -I../include/                       -L../src -lXpm -lXt -lXext -lX11 
    cc -o sxpm sxpm.c -Ae -D_REENTRANT +z -I../src -I../include/ -I/usr/include/X11R6/ -L../src -lXpm -lXt -lXext -lX11 # HP-UX 10.20
    cd ..
  2. Install into some $DST directory:
    mkdir -p           $DST/lib
    cp src/libXpm.a    $DST/lib
    mkdir -p           $DST/bin
    cp cxpm/cxpm       $DST/bin
    cp sxpm/sxpm       $DST/bin
    mkdir -p           $DST/man/man1
    cp cxpm/   $DST/man/man1/cxpm.1
    cp sxpm/   $DST/man/man1/sxpm.1
    mkdir -p           $DST/include/X11
    cp /X11/*.h $DST/include/X11
    # examples to do
  3. package into an $DEPOT directory with:
    tar -cvf - ./ | compress > $DEPOT/libXpm-3.5.5.tar.Z

Last updated: Wed Mar 19 19:43:22 CET 2014 , M.Kraemer