Building XSane 0.96 for OS/2
Here some information how to build
First of all you need the
sources of XSane 0.96
You need the same tools / environement / libs as described in
my page for building SANE 1.0.14
need a libsane.a (which you will have if you managed to build scanimage).
For TIFF-support you need a ported tiff-library. I used
I used the following steps to build
Hardware that is known to work with this version:
Hardware that is known to work with previous versions:
Scan, Copy and OCR
- In /XFree86/lib convert /libgimp122.lib to libginp122.a with
emximp -o libgimp122.a libgimp122.lib
- sh configure --disable-sanetest --disable-gtktest --disable-gimptest --with-sane-prefix=/usr --enable-gimp --disable-gtk2 --prefix=/XFree86
- In xsane-0.96/src/Makefile
LIBS = -lgimp -LG:/XFree86/lib .... -lz -lm
LIBS = -llibgimp122 -LG:/XFree86/lib .... -lz /usr/lib/libsane.a -lpthreads -liconv
- In line 9027 of xsane-0.96/src/xsane.c
- make install
- If you don't have allready, manually create the directory ~/.sane
~ has to be replaced with the value of your HOME environement variable.
I did not try/use Mail
. If you find a way to make Fax work,
please tell me
works here standalone and also as GIMP-Plugin
If you don't have the time/wish to build XSane yourself, you can
DOWNLOAD THE BINARY PACKAGE
Here's the link to the Xsane-0.96-README for OS/2
You need a working version of SANE an X11-server and some additional dll's
or somewhere else in your libpath (if you don't have them allready installed) to run XSane.
Tell me if I missed one.
I use my own build of SANE 1.0.14 (but it should also work with other
SANE's which have a libsane.dll like the 1.05
version provided by Paul Smedley
It works here with both XFree86 for OS/2 Version 4.3.0 and
also with HOBLink X11
It should with other XServers too.
But be careful and allways have a backup, You might get TRAPs
It runs fine with my hardware (without TRAPs now), but is not much tested elsewhere.
Tell me whether it works for you.
to Oliver Rauch who helped me to make this work
and included the OS/2 specific changes, which were necessary
to build this release, into the source-code. Thanks also to Christian Hennecke
for the first positive feedback, James for the pointer to z.dll and Dave for the info
how to convert libgimp122.lib to libgimp122.a
I hope, I did not miss something important. Feel free to send me your comments.
Last modified 20 October 2008, Franz Bakan