LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-06-2007, 11:20 PM   #1
ningbojoe
LQ Newbie
 
Registered: Sep 2006
Location: Melbourne, Australia
Distribution: Mandriva 2007 Free
Posts: 10

Rep: Reputation: 0
Scanbuttond will not make or make install.


Unfortunately, I am one of those people who have a CanoScan N650U Canon Scanner. It has not worked very well in Mandriva 2006, 2007, 2007.1. I have kept up with all the improvements to the Sane Backends, frontends, etc.
As one who would like to use my scanner in Mandriva, I have tried to track down every fix that has been proffered on various Bugzillas, Launchpad, etc.
One solution offered was to install Scanbuttond which is not included in the Mandriva repositories. I downloaded it from Sourceforge as a .gz file. I extracted the files to mu Desktop and proceeded to ./configure, make and make install. While it configured perfectly, I had a problem with the make stage with errors:-

[root@localhost scanbuttond-0.2.3]# make
Making all in contrib
make[1]: Entering directory `/home/ningbojoe/Desktop/scanbuttond-0.2.3/contrib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/ningbojoe/Desktop/scanbuttond-0.2.3/contrib'
Making all in interface
make[1]: Entering directory `/home/ningbojoe/Desktop/scanbuttond-0.2.3/interface'
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../include/scanbuttond -I../include -I. -g -O2 -DCFG_DIR= -DLIB_DIR=/usr/local/lib -MT libusbi.lo -MD -MP -MF ".deps/libusbi.Tpo" -c -o libusbi.lo libusbi.c; \
then mv -f ".deps/libusbi.Tpo" ".deps/libusbi.Plo"; else rm -f ".deps/libusbi.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I../include/scanbuttond -I../include -I. -g -O2 -DCFG_DIR= -DLIB_DIR=/usr/local/lib -MT libusbi.lo -MD -MP -MF .deps/libusbi.Tpo -c libusbi.c -fPIC -DPIC -o .libs/libusbi.o
libusbi.c:24:17: error: usb.h: No such file or directory
libusbi.c: In function ‘libusb_search_interface’:
libusbi.c:52: error: dereferencing pointer to incomplete type
libusbi.c:53: error: dereferencing pointer to incomplete type
libusbi.c:54: error: ‘USB_CLASS_VENDOR_SPEC’ undeclared (first use in this function)
libusbi.c:54: error: (Each undeclared identifier is reported only once
libusbi.c:54: error: for each function it appears in.)
libusbi.c:57: error: ‘USB_CLASS_PER_INTERFACE’ undeclared (first use in this function)
libusbi.c:58: error: dereferencing pointer to incomplete type
libusbi.c: In function ‘libusb_search_in_endpoint’:
libusbi.c:79: error: dereferencing pointer to incomplete type
libusbi.c:82: error: dereferencing pointer to incomplete type
libusbi.c:86: error: dereferencing pointer to incomplete type
libusbi.c:87: error: dereferencing pointer to incomplete type
libusbi.c:87: error: ‘USB_ENDPOINT_ADDRESS_MASK’ undeclared (first use in this function)
libusbi.c:88: error: dereferencing pointer to incomplete type
libusbi.c:88: error: ‘USB_ENDPOINT_DIR_MASK’ undeclared (first use in this function)
libusbi.c:89: error: dereferencing pointer to incomplete type
libusbi.c:89: error: ‘USB_ENDPOINT_TYPE_MASK’ undeclared (first use in this function)
libusbi.c:91: error: ‘USB_ENDPOINT_TYPE_BULK’ undeclared (first use in this function)
libusbi.c:94: error: dereferencing pointer to incomplete type
libusbi.c:97: error: dereferencing pointer to incomplete type
libusbi.c: In function ‘libusb_search_out_endpoint’:
libusbi.c:110: error: dereferencing pointer to incomplete type
libusbi.c:113: error: dereferencing pointer to incomplete type
libusbi.c:117: error: dereferencing pointer to incomplete type
libusbi.c:118: error: dereferencing pointer to incomplete type
libusbi.c:118: error: ‘USB_ENDPOINT_ADDRESS_MASK’ undeclared (first use in this function)
libusbi.c:119: error: dereferencing pointer to incomplete type
libusbi.c:119: error: ‘USB_ENDPOINT_DIR_MASK’ undeclared (first use in this function)
libusbi.c:120: error: dereferencing pointer to incomplete type
libusbi.c:120: error: ‘USB_ENDPOINT_TYPE_MASK’ undeclared (first use in this function)
libusbi.c:122: error: ‘USB_ENDPOINT_TYPE_BULK’ undeclared (first use in this function)
libusbi.c:125: error: dereferencing pointer to incomplete type
libusbi.c:128: error: dereferencing pointer to incomplete type
libusbi.c: In function ‘libusb_attach_device’:
libusbi.c:139: error: dereferencing pointer to incomplete type
libusbi.c:140: error: dereferencing pointer to incomplete type
libusbi.c:143: error: dereferencing pointer to incomplete type
libusbi.c:143: error: dereferencing pointer to incomplete type
libusbi.c:144: error: dereferencing pointer to incomplete type
libusbi.c:146: error: dereferencing pointer to incomplete type
libusbi.c: In function ‘libusb_rescan’:
libusbi.c:196: error: ‘usb_busses’ undeclared (first use in this function)
libusbi.c:198: error: dereferencing pointer to incomplete type
libusbi.c:201: error: dereferencing pointer to incomplete type
libusbi.c:203: error: dereferencing pointer to incomplete type
libusbi.c: In function ‘libusb_open’:
libusbi.c:229: warning: assignment makes pointer from integer without a cast
make[1]: *** [libusbi.lo] Error 1
make[1]: Leaving directory `/home/ningbojoe/Desktop/scanbuttond-0.2.3/interface'
make: *** [all-recursive] Error 1
[root@localhost scanbuttond-0.2.3]#

I think I am missing some files, but I do not know which files I need to install to make Scanbuttond install correctly.

Any help would be appreciated.
 
Old 09-07-2007, 05:37 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
You're missing the usb.h header. This is probably provided by libusb.
 
Old 09-08-2007, 03:43 AM   #3
ningbojoe
LQ Newbie
 
Registered: Sep 2006
Location: Melbourne, Australia
Distribution: Mandriva 2007 Free
Posts: 10

Original Poster
Rep: Reputation: 0
Thank you very much. That helped me enormously and solved the problem.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
1st time installing redhat - Make and Make Install does not work runlikeanantelope Linux - Newbie 4 02-19-2007 03:58 PM
package compiling from source, make & make install concepts shujja Linux - Newbie 2 09-20-2005 12:18 AM
Chap 5 Binutils make LDFLAGS & make install errors shotokan Linux From Scratch 5 04-10-2005 03:01 AM
make; make install commands in SuSE Linux 9.1 Personal johnerskine Linux - Newbie 6 06-23-2004 10:18 AM
How to make rule for make install and make uninstall melinda_sayang Programming 1 06-14-2004 05:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration