To everyone sorry that this email is so long but I've
been trying to figure out how to get my scanner to
work for so long I thought it was time to take it to
cooker. I've included my configure results at the
bottom of the page so you can see where I'm going
wrong.
The captions bellow are from Mandrake Forum under a
recent article about autospec and how to create RPMS.
Buchan was really cool to put some RPMS up and they
almost work so I think it would be a waste not to get
them working
Shad
If someone can make a RPM based on 8.0 Mandrake from
the source here...
http://as6edriver.sourceforge.net/
I would be forever grateful! And able to use my
scanner again.
Shad
Ps. I was able to get it compiled and running on
Mandrake 7.1
So I decided I might as well try autospec out. I have
compiled the as6edriver, and you can find SRPMs and
RPMS at:
http://www.cae.co.za/~bgmilne/mandrake/
Autospec didn't seem to be able to parse the install
scipt (most of the work when creating large RPMs), but
sincew this only
seems to have 2 files, it's not an issue.
I have not run the rpm or spec fiel through any of the
Mandrake suggested tools (like rpmlint) and the Group
specified in the
spec fiel is wrong.
Give it a whirl, and let me know if it works or not.
Make any cosmetic changes to the spec file (after
installing the SRPM, see
Mandrake's RPM Howto first) and send it to contribs.
Buchan
Thanks a million for getting this built. I've been
playing with your rpm it only works only in console
mode (for now). I've also
noticed the only way you can run the RPM is if you
have the Scanner plugged in. I haven't had time to
mess with it much
yet. Currently I can get it to make my scanner test
itself and start to go into a scan mode but about half
way into setting up
the scan the program gives me this error...
Floating point exception (core dumped)
I don't understand what you mean about about not being
able to parse the install scipt. Hopefully I will be
about to figure
this one out.
***I don't know how Buchan got this to configure
because I can't get it to install on my Mandrake
8.0***
[root@aswan as6edriver]# ./configure
loading cache ./config.cache
checking for a BSD compatible install... (cached)
/usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a
cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for ranlib... (cached) ranlib
creating ./config.status
creating Makefile
creating as6edriver/Makefile
creating as6edriver/docs/Makefile
creating as6edriver/docs/en/Makefile
creating config.h
config.h is unchanged
[root@aswan as6edriver]# make
make all-recursive
make[1]: Entering directory
`/usr/src/RPM/SOURCES/as6edriver'
Making all in as6edriver
make[2]: Entering directory
`/usr/src/RPM/SOURCES/as6edriver/as6edriver'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -O3 -c port.c
In file included from port.c:21:
prototypes.h:114:80: warning: no newline at end of
file
port.c:171:1: warning: no newline at end of file
gcc -DHAVE_CONFIG_H -I. -I. -I.. -O3 -c sane.c
In file included from sane.c:20:
prototypes.h:114:80: warning: no newline at end of
file
sane.c:130:1: warning: no newline at end of file
gcc -DHAVE_CONFIG_H -I. -I. -I.. -O3 -c cmdline.c
In file included from cmdline.c:19:
prototypes.h:114:80: warning: no newline at end of
file
gcc -DHAVE_CONFIG_H -I. -I. -I.. -O3 -c wakeup.c
In file included from wakeup.c:16:
prototypes.h:114:80: warning: no newline at end of
file
gcc -DHAVE_CONFIG_H -I. -I. -I.. -O3 -c
testsuite.c
In file included from testsuite.c:19:
prototypes.h:114:80: warning: no newline at end of
file
testsuite.c:465:8: warning: no newline at end of file
gcc -DHAVE_CONFIG_H -I. -I. -I.. -O3 -c scan.c
In file included from scan.c:22:
prototypes.h:114:80: warning: no newline at end of
file
gcc -DHAVE_CONFIG_H -I. -I. -I.. -O3 -c regio.c
In file included from regio.c:24:
prototypes.h:114:80: warning: no newline at end of
file
gcc -DHAVE_CONFIG_H -I. -I. -I.. -O3 -c regdata.c
In file included from regdata.c:32:
prototypes.h:114:80: warning: no newline at end of
file
regdata.c:141:1: warning: no newline at end of file
gcc -DHAVE_CONFIG_H -I. -I. -I.. -O3 -c readbuf.c
In file included from readbuf.c:40:
prototypes.h:114:80: warning: no newline at end of
file
gcc -DHAVE_CONFIG_H -I. -I. -I.. -O3 -c main.c
In file included from main.c:23:
prototypes.h:114:80: warning: no newline at end of
file
[root@aswan as6edriver]# ./configure
loading cache ./config.cache
checking for a BSD compatible install... (cached)
/usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a
cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for ranlib... (cached) ranlib
creating ./config.status
creating Makefile
creating as6edriver/Makefile
creating as6edriver/docs/Makefile
creating as6edriver/docs/en/Makefile
creating config.h
config.h is unchanged
[root@aswan as6edriver]# make
make all-recursive
make[1]: Entering directory
`/usr/src/RPM/SOURCES/as6edriver'
Making all in as6edriver
make[2]: Entering directory
`/usr/src/RPM/SOURCES/as6edriver/as6edriver'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -O3 -c port.c
In file included from port.c:21:
prototypes.h:114:80: warning: no newline at end of
file
port.c:171:1: warning: no newline at end of file
gcc -DHAVE_CONFIG_H -I. -I. -I.. -O3 -c sane.c
In file included from sane.c:20:
prototypes.h:114:80: warning: no newline at end of
file
sane.c:130:1: warning: no newline at end of file
gcc -DHAVE_CONFIG_H -I. -I. -I.. -O3 -c cmdline.c
In file included from cmdline.c:19:
prototypes.h:114:80: warning: no newline at end of
file
gcc -DHAVE_CONFIG_H -I. -I. -I.. -O3 -c wakeup.c
In file included from wakeup.c:16:
prototypes.h:114:80: warning: no newline at end of
file
gcc -DHAVE_CONFIG_H -I. -I. -I.. -O3 -c
testsuite.c
In file included from testsuite.c:19:
prototypes.h:114:80: warning: no newline at end of
file
testsuite.c:465:8: warning: no newline at end of file
gcc -DHAVE_CONFIG_H -I. -I. -I.. -O3 -c scan.c
In file included from scan.c:22:
prototypes.h:114:80: warning: no newline at end of
file
gcc -DHAVE_CONFIG_H -I. -I. -I.. -O3 -c regio.c
In file included from regio.c:24:
prototypes.h:114:80: warning: no newline at end of
file
gcc -DHAVE_CONFIG_H -I. -I. -I.. -O3 -c regdata.c
In file included from regdata.c:32:
prototypes.h:114:80: warning: no newline at end of
file
regdata.c:141:1: warning: no newline at end of file
gcc -DHAVE_CONFIG_H -I. -I. -I.. -O3 -c readbuf.c
In file included from readbuf.c:40:
prototypes.h:114:80: warning: no newline at end of
file
gcc -DHAVE_CONFIG_H -I. -I. -I.. -O3 -c main.c
In file included from main.c:23:
prototypes.h:114:80: warning: no newline at end of
file
gcc -DHAVE_CONFIG_H -I. -I. -I.. -O3 -c console.c
In file included from console.c:24:
prototypes.h:114:80: warning: no newline at end of
file
gcc -DHAVE_CONFIG_H -I. -I. -I.. -O3 -c
calibrate.c
In file included from calibrate.c:19:
prototypes.h:114:80: warning: no newline at end of
file
gcc -O3 -o as6edriver port.o sane.o cmdline.o
wakeup.o testsuite.o scan.o regio.o regdata.o
readbuf.o main.o console.o calibrate.o
make[2]: Leaving directory
`/usr/src/RPM/SOURCES/as6edriver/as6edriver'
make[2]: Entering directory
`/usr/src/RPM/SOURCES/as6edriver'
make[2]: Leaving directory
`/usr/src/RPM/SOURCES/as6edriver'
make[1]: Leaving directory
`/usr/src/RPM/SOURCES/as6edriver'
[root@aswan as6edriver]# make install
Making install in as6edriver
make[1]: Entering directory
`/usr/src/RPM/SOURCES/as6edriver/as6edriver'
make[2]: Entering directory
`/usr/src/RPM/SOURCES/as6edriver/as6edriver'
/bin/sh ../mkinstalldirs /usr/local/bin
/usr/bin/install -c -m 4755 as6edriver
/usr/local/bin/as6edriver
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory
`/usr/src/RPM/SOURCES/as6edriver/as6edriver'
make[1]: Leaving directory
`/usr/src/RPM/SOURCES/as6edriver/as6edriver'
make[1]: Entering directory
`/usr/src/RPM/SOURCES/as6edriver'
make[2]: Entering directory
`/usr/src/RPM/SOURCES/as6edriver'
make[2]: Nothing to be done for `install-exec-am'.
/bin/sh ./mkinstalldirs /etc/
/usr/bin/install -c -m 644 as6e.conf /etc/as6e.conf
make[2]: Leaving directory
`/usr/src/RPM/SOURCES/as6edriver'
make[1]: Leaving directory
`/usr/src/RPM/SOURCES/as6edriver'
[root@aswan as6edriver]#
***here is what happens when i run the RPM buchan
made***
[root@aswan as6edriver]# as6edriver
Proc directory not found. Defaulting to port 0x378.
Using EPP Mode.
Welcome to the Artec AS6E driver for
Linux.
version 0.4.2
(c) Eugene Weiss
This program
is licensed under the GNU GPL.
Homepage http://as6edriver.sourceforge.net
Please enter the resolution for the scan.
Enter for Resolution
1 for 50 dpi
2 for 100 dpi
3 for 200 dpi
4 for 300 dpi
Enter 9 to quit the AS6E driver.
Enter choice # 2
Please enter the color mode for the scan.
Enter for color mode
1 for Color
2 for Greyscale
3 for Lineart
Enter 9 to quit the AS6E driver.
Enter choice # 1
Back
__________
11.7"| |
| |
L | AS6E | R
e | | i
f | . . | g
t | . . | h
| . . | t
| . . |
| . . |
0 |_________|8.5"
autoscan button -|__|
Front
Please enter the distance from the left edge you would
like to start your scan, or enter 99 to quit the AS6E
driver.
Units are in inches. Use the decimal point to
specify fractions.
One inch = 2.54 centimeters.
The maximum is 8.5 inches, representing the right edge
of the scanable area
Enter choice # 1
Please enter the distance from the left edge you would
like to end your scan,
or enter 99 to quit the AS6E driver.
The maximum is 8.5 inches, representing the right edge
of the scanable area.
Enter choice # 1
Back
__________
11.7"| |
| |
L | AS6E | R
e | | i
f | . . | g
t | . . | h
| . . | t
| . . |
| . . |
0 |_________|8.5"
autoscan button -|__|
Front
Please enter the distance from the front you wold like
to start your scan,
or enter 99 to quit the AS6E driver.
Units are in inches. Use the decimal point to
specify fractions.
One inch = 2.54 centimeters.
The maximum is 11.7 inches, representing the front of
the scanable area
Enter choice # 1
Please enter the distance from the front you would
like to end your scan,
or enter 99 to quit the AS6E driver.
The maximum is 11.7 inches, representing the rear of
the scanable area.
Enter choice # 1
Floating point exception (core dumped)
[root@aswan as6edriver]#
=====
[EMAIL PROTECTED]
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/