[sane-devel] building sane-frontends on OS/2
Sun, 5 May 2002 15:48:10 +0200
On Sat, May 04, 2002 at 01:36:58AM +0200, Franz Bakan wrote:
> >> -lpthreads is needed because of:
> #include <glibconfig.h>
> #include <pthread.>
> #define read(A,B,C) pthread_read((A),(B),(C))
> #define write(A,B,C) pthread_write((A),(B),(C))
> So the right fix is to add -lpthreads to the near end of gtk12-config?
The right fix would be that the glib people already did that :-)
> >> 3. Change 'GIMP_LIBS = -lgimp' to 'GIMP_LIBS = -lgimp121' in sane-frontends/src/Makefile
> >Same here. gimp-config (or gimp-tool) --libs should return the correct
> >names. I don't think we can do anything about this in SANE, because
> >the name seems to change with every version (1.2.1 = 121, 1.2.2 =
> >122?) of gimp.
> Maybe the call of sane-config --libs, gtk-config and gimp-config doesn't work with OS/2?
> sane-config works partly, but
> sane-config --libs
> -lsane -lsyslog -lsocket -lm -ljpeg
> It should return:
> -llibsane ...
It shouldn't, the library's name is libsane, but the "-l" is always
without the "lib". It seems to work with libsyslog and the other libs
so I have no idea why it doesn't work with SANE.
> But this is perhaps a result of the old version of libtool I have to use ...
> But renaming libsane.a to sane.a is not enough :-(
> from config.log:
> configure:2733: checking for SANE - version >= 1.0.0
> configure:2813: gcc -o conftest.exe -D__EMX__ -DOS2 -Zmtd -D__ST_MT_ERRNO__ -fstack-check \
> -O2 -mprobe -Wall -D_GNU_SOURCE -Zmtd -D__ST_MT_ERRNO__ -O2 -Zsysv-signals \
> conftest.c -lsyslog -lsocket -lm 1>&5
> configure: In function `main':
> configure:2771: warning: implicit declaration of function `system'
> configure:2778: parse error before `=='
> configure:2779: parse error before `>'
> The first parse error comes from:
> if ( ($sane_config_major_version == major) &&
Maybe $sane_config_major_version is empty/not set? It's set above in
sane_config_major_version=`$SANE_CONFIG $sane_config_args --version | \
Maybe add something like
echo "sane_config_major_version is \"$sane_config_major_version\""
after this line to see what happens.
> gtk-config works but there is no 'gimp-config' on OS/2