Prev Up (Under construction)

xpaint

X bitmap/pixmap editor.

Compilation (V2.6.7)

Needs the xpm library.
Code and build procedures have a few bugs.

HP-UX 10.20

V2.6.7 is the last xpaint to compile on 10.20 (lack of dl* functions)
In misc.h change
#if defined(BSD4_4) || defined(HPArchitecture) || defined(SGIArchitecture) || defined(_AIX) || defined(_SCO_DS)

#if defined(BSD4_4) || defined(__hpux) || defined(SGIArchitecture) || defined(_AIX) || defined(_SCO_DS)
Adapt/fix the Imakefile:
# HPArchitecture
EXTRA_LIBRARIES = -ldld
HP_FLAGS = -Wl,-a,archive_shared
#endif

LOCAL_LIBRARIES = $(HP_FLAGS) -Lrw -lrw $(XPM_LIB) $(TIFF_LIB) $(SGI_LIB) $(JPEG_LIB) $(PNG_LIB)

$(CC) $(CFLAGS) substads.c -o substads

$(CC) $(CFLAGS) preproc.c -o preproc
Adapt Local.config. Example specifying the location of support libraries and temporary destination:
SHAREDIR = /tmp/xpaint-2.6.7/share/xpaint
XAPPLOADDIR = /tmp/xpaint-2.6.7/lib/X11/app-defaults

TIFF_INCLUDE = -I/nfs/local/1020/include
JPEG_INCLUDE = -I/nfs/local/1020/include
PNG_INCLUDE = -I/nfs/local/1020/include

XPM_LIB     = -L/nfs/local/1020/lib -lXpm
XPM_INCLUDE = -I/nfs/local/1020/include/X11

BINDIR = /tmp/xpaint-2.6.7/bin
MANDIR = /tmp/xpaint-2.6.7/man/mann
Then run
xmkmf

make Makefiles   # this doesn't work for the subdirectories, use instead:
cd bitmaps; ln -s big_tools tools; xmkmf; cd ..
cd Docs;    xmkmf; cd ..
cd rw;      xmkmf; cd ..
 
make xaw
make install    
make install.man 

Compilation (V2.7.8.1)

Needs the xpm library and the dlxxx functions (dlfcn.h header)
xpaint comes with a strange (and buggy) xmkmf procedure. Fixes are numereous, here are a couple of diff's:
$ diff xpaint-2.7.8.1/Imakefile xpaint-2.7.8.1-original/Imakefile
9c9
< # #include "./Local.xawdefs"
---
> #include "./Local.xawdefs"
11,15d10
< # non-standard installation (example):
< XAPPLOADDIR = lib/X11/app-defaults
< # enable non-root installation by specifying an appropriate group
< INSTALLFLAGS = $(InstallFlags) -g biodev
< 
110,112d104
< #if defined(HPArchitecture) || defined AIXArchitecture
< LOCAL_LIBRARIES = -Lrw -lrw $(XPM_LIB) $(TIFF_LIB) $(SGI_LIB) $(JPEG_LIB) $(PNG_LIB)
< #else
114d105
< #endif
$ diff xpaint-2.7.8.1/Local.config xpaint-2.7.8.1-orig/Local.config
12c12
< DESTDIR = /tmp/xpaint-2.7.8.1/
< SHAREDIR = share/xpaint
---
> SHAREDIR = /usr/share/xpaint
20,21c20,21
< XCOMM LPCCMD = /usr/sbin/lpc status
< #undef LPCCMD 
---
> LPCCMD = /usr/sbin/lpc status
> #define LPCCMD 
86d85
< CC = cc
97,98c96
< TIFF_INCLUDE = -I/nfs/bio/local.AIX/53/include
---
> TIFF_INCLUDE =
109,110c107
< JPEG_INCLUDE = -I/nfs/bio/local.AIX/53/include
---
> JPEG_INCLUDE =
121,122c118
< PNG_INCLUDE = -I/nfs/bio/local.AIX/53/include
---
> PNG_INCLUDE =
140,141d135
< XPM_LIB     = -L/nfs/bio/local.AIX/53/lib -lXpm -lXaw3d -lXt -lXext -lXmu -lX11 -lm
146,147d139
< XPM_INCLUDE = -I/nfs/bio/local.AIX/53/include/ -I/nfs/bio/local.AIX/53/include/X11
157,160c149,150
< BINDIR = bin
< MANDIR = man/mann
$ diff xpaint-2.7.8.1/configure /tmp/xpaint-2.7.8.1/configure
10,11c10
<    WIDGETS=... [a-z] [A-Z]
---
>    WIDGETS=... [a:z] [A:Z]
74,77d69
<    ln -sf /nfs/bio/local.AIX/53/include/X11/Xaw3d xaw_incdir
80,81c72,73
<    echo "SYS_LIBRARIES = -lXaw3d -L/nfs/bio/local.AIX/53/lib -lXt -lXext -lXmu -lX11 -lm -L."   
<    echo "SYS_LIBRARIES = -lXaw3d -L/nfs/bio/local.AIX/53/lib -lXt -lXext -lXmu -lX11 -lm -L." >> Local.xawdefs
---
>    echo "SYS_LIBRARIES = -lXaw3d -L."   
>    echo "SYS_LIBRARIES = -lXaw3d -L." >> Local.xawdefs
Then run
xmkmf
make clean
make xaw3d 
make install
make install.man

V2.9.8.2

Needs Xpm, libz libpng libtiff libjpeg. freetype2? Optionally OpenJPEG, JASPER. Comes with a "fake" configure, which seems to be just a wrapper script around imake tools. Too many dependencies and bugs. Quit for now, use 2.7.8.1 instead.

V2.9.9.4

Needs libXft, libXaw3dxft.
          # AIX 6.1, C 9.0
configure --prefix=/tmp/xpaint-2.9.9.4 CC=cc CPPFLAGS="-D_LARGE_FILES -I/bio/local/../61/include" CFLAGS="-O2 -D_LARGE_FILES -I/bio/local/../61/include" LDFLAGS="-L/bio/local/../61/lib"

Installation/Configuration

In some central startup script (e.g. .profile) for all X apps add e.g.
export XFILESEARCHPATH=/nfs/local/1100/lib/X11/app-defaults/%N
and place a softlink to xpaint-2.7.8.1/lib/X11/app-defaults/XPaint into /nfs/local/1100/lib/X11/app-defaults/
Last updated: Wed Jul 24 19:37:44 CED 2013 , M.Kraemer

Impressum Data privacy protection