Menu

#1 Compile-Problem

open-fixed
nobody
None
5
2002-07-18
2002-06-16
Anonymous
No

I tried to compile Sane after succesfully patching ist. At least the
scipt patchsane says so.
So i did a configure which had no
erros.
After Starting make, it runs for a time, but then stops
because a file called usb.h ist not found ...

Perhaps you
should enhance the script, that it also changes the neccessary
lines in the Makefile of sane ...

C.U. MC Murphy

Discussion

  • Bertrik Sikken

    Bertrik Sikken - 2002-06-19

    Logged In: YES
    user_id=282107

    The usb.h file is part of the libusb package. To be more
    complete, I agree the patch script should also update the
    configure script. However I don't have experience with
    configure scripts and I don't know how to change the patch
    script. Suggestions are welcome.
    Anyway, the recommended procedure is to first try the
    testtool and then to try the SANE backend and to use the
    testtool you already need libusb.

     
  • Nobody/Anonymous

    Logged In: NO

    The problem I have, is that I cannot use libusb because of other things in
    my system, so I decided to use the kernel method.

    I don't konw if I
    have forgotten to add a patch parameter to the script, at least I can't
    remeber having read anything about such things.

    If there is any
    parameter I have to add before patching, please reply.

    BTW: the
    testtool works fine with kernel-support (2.4.18)

     
  • Nobody/Anonymous

    Logged In: NO

    After all, now I tried using libusb...
    I build it and installed it, and then
    tried to compile sane again.

    The result was useful: Sane was
    compiled with no errors. But I do not think it should be necessarry in any
    kind if I use the kernel method.
    Perhaps you should add at least this
    workaround to your installation manual.

    C.U. MC Murphy

     
  • Bertrik Sikken

    Bertrik Sikken - 2002-06-22

    Logged In: YES
    user_id=282107

    I probably won't fix this in the near future.Ther are
    however plans to split up the code that provides the data
    transfer mechanisms (linux usb, libusb, uscanner, etc.) That
    should make it easier to select the proper transfer method.

     
  • Nobody/Anonymous

    Logged In: NO

    I had the same problem.

    I edited hp3300c_xfer.c and added #define NO_LIBUSB just
    above the #ifndef NO_LIBUSB

     
  • Kai Schlachter

    Kai Schlachter - 2002-06-25

    Logged In: YES
    user_id=567272

    Another thing I found out, just by being curios:
    I startet looking in
    niash.c
    and found an interessting entry in line 66

    char *
    usb_device = NULL

    I changed it to /dev/usbscanner

    and
    compiled sane again.

    Result:
    scanimage -L now lists the
    scanner, even if it is not there.

    As I did this on my home-linux-box,
    and I was not able to test it at work ... I will report further results
    ....

     
  • Nobody/Anonymous

    Logged In: NO

    Got the same problem.

     
  • Ricardo Martins

    Ricardo Martins - 2002-07-18
    • status: open --> open-fixed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.