How can I compile scanbd on Raspberry Pi?

TobiBS

I am trying to get the buttons on my Canon CanoScan LiDE 60 to work. So far I installed the sane-utils, the printer is detected and I can scan. However the front buttons on the scanner are not detected by SANE. I read in this case, one should compile scandb from sources and run ./configure --enable-scanbuttond which I did and then run make. However make doesn't complete, as there is a warning which is treated as an error:

config.c: In function ‘cfg_do_parse’:
config.c:117:5: error: ‘strncpy’ specified bound 4096 equals destination size [-Werror=stringop-truncation]
     strncpy(config_file, config_file_name, PATH_MAX);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [Makefile:503: config.o] Error 1
make[1]: Leaving directory '/usr/local/src/scanbd-1.5.1/src/scanbd'
make: *** [Makefile:425: all-recursive] Error 1

Is there either a simpler way to get the buttons working or how can I compile scanbd to get my buttons to work?

Nasir Riley

The warning that's being treated as an error By the C compiler is causing the compilation to fail.

You can have it treated as a warning by compiling with the following:

make CFLAGS="-Wno-error=stringop-truncation"

If you receive errors where it's the CXX compiler:

make CXXLAGS="-Wno-error=format-truncation"

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Guide to compile Xuggler for Raspberry Pi

From Dev

How can I use the google voice api on my raspberry pi running debian and chromium

From Dev

Can I run a C# application on a Raspberry Pi?

From Dev

Raspberry Pi: Can I turn on a monitor over HDMI?

From Dev

How can I compile Rust code to run on a Raspberry Pi 2?

From Dev

How can I create a modern cross compile toolchain for the Raspberry Pi 1?

From Dev

How do I prepare a Raspberry Pi with Raspbian so I can cross compile Qt5 programs from a Linux host?

From Dev

Can I run matlab on raspberry pi?

From Dev

How can I modify default page for UV4L streaming server at Raspberry Pi?

From Dev

How to cross-compile a Qt Quick application for the Raspberry Pi?

From Dev

Can I use .NET SIMD on Raspberry Pi 4?

From Dev

How can i get JavaFX working on raspberry pi 3

From Dev

How can I power a 12 volt motor with the raspberry pi's 5 volt output GPIO pin?

From Dev

How to cross-compile programs for the Raspberry Pi with gcc?

From Dev

Can I use .NET SIMD on Raspberry Pi 4?

From Dev

How to cross-compile programs for the Raspberry Pi with gcc?

From Dev

Raspberry Pi What can I do with it?

From Dev

Cross compile a raspberry pi kernel

From Dev

Guide to compile Xuggler for Raspberry Pi

From Dev

How can I use the google voice api on my raspberry pi running debian and chromium

From Dev

Can I run mythbackend on Raspberry Pi?

From Dev

How can I install Ubuntu with APT (not Snappy) on the Raspberry Pi 2?

From Dev

How can I run lightdm on Xvfb on a Raspberry Pi?

From Dev

How do I prepare a Raspberry Pi with Raspbian so I can cross compile Qt5 programs from a Linux host?

From Dev

How do I compile Qt5 dev branch from git repository for the Raspberry Pi?

From Dev

Why can't I use python-mosquitto on the Raspberry Pi?

From Dev

How can I run a second user session from windows on my local screen (with Raspberry Pi)?

From Dev

How can I modify default page for UV4L streaming server at Raspberry Pi?

From Dev

Can I use Ubuntu One on the Raspberry Pi?

Related Related

  1. 1

    Guide to compile Xuggler for Raspberry Pi

  2. 2

    How can I use the google voice api on my raspberry pi running debian and chromium

  3. 3

    Can I run a C# application on a Raspberry Pi?

  4. 4

    Raspberry Pi: Can I turn on a monitor over HDMI?

  5. 5

    How can I compile Rust code to run on a Raspberry Pi 2?

  6. 6

    How can I create a modern cross compile toolchain for the Raspberry Pi 1?

  7. 7

    How do I prepare a Raspberry Pi with Raspbian so I can cross compile Qt5 programs from a Linux host?

  8. 8

    Can I run matlab on raspberry pi?

  9. 9

    How can I modify default page for UV4L streaming server at Raspberry Pi?

  10. 10

    How to cross-compile a Qt Quick application for the Raspberry Pi?

  11. 11

    Can I use .NET SIMD on Raspberry Pi 4?

  12. 12

    How can i get JavaFX working on raspberry pi 3

  13. 13

    How can I power a 12 volt motor with the raspberry pi's 5 volt output GPIO pin?

  14. 14

    How to cross-compile programs for the Raspberry Pi with gcc?

  15. 15

    Can I use .NET SIMD on Raspberry Pi 4?

  16. 16

    How to cross-compile programs for the Raspberry Pi with gcc?

  17. 17

    Raspberry Pi What can I do with it?

  18. 18

    Cross compile a raspberry pi kernel

  19. 19

    Guide to compile Xuggler for Raspberry Pi

  20. 20

    How can I use the google voice api on my raspberry pi running debian and chromium

  21. 21

    Can I run mythbackend on Raspberry Pi?

  22. 22

    How can I install Ubuntu with APT (not Snappy) on the Raspberry Pi 2?

  23. 23

    How can I run lightdm on Xvfb on a Raspberry Pi?

  24. 24

    How do I prepare a Raspberry Pi with Raspbian so I can cross compile Qt5 programs from a Linux host?

  25. 25

    How do I compile Qt5 dev branch from git repository for the Raspberry Pi?

  26. 26

    Why can't I use python-mosquitto on the Raspberry Pi?

  27. 27

    How can I run a second user session from windows on my local screen (with Raspberry Pi)?

  28. 28

    How can I modify default page for UV4L streaming server at Raspberry Pi?

  29. 29

    Can I use Ubuntu One on the Raspberry Pi?

HotTag

Archive