rumpeltux / brother-scand Goto Github PK
View Code? Open in Web Editor NEWThis project forked from darsto/brother-scand
Network driver for Brother scanner devices. Daemon for press-to-scan functionality.
License: MIT License
This project forked from darsto/brother-scand
Network driver for Brother scanner devices. Daemon for press-to-scan functionality.
License: MIT License
gdb log:
$ gdb --args ./build/brother-scan-cli -d -c out/brother.config
Reading symbols from ./build/brother-scan-cli...
(gdb) r
Starting program: /home/patrycja/Downloads/brother-scand/build/brother-scan-cli -d -c out/brother.config
Program received signal SIGSEGV, Segmentation fault.
memcpy () at src/string/x86_64/memcpy.s:18
18 src/string/x86_64/memcpy.s: No such file or directory.
(gdb) bt full
#0 memcpy () at src/string/x86_64/memcpy.s:18
No locals.
#1 0x000055555555d2d4 in data_channel_set_item (data_channel=0x7fffffffe160,
item=0x0) at data_channel.c:796
No locals.
#2 0x0000555555556796 in main (argc=4, argv=0x7fffffffe318) at scanner_cli.c:59
option = -1
config_path = 0x7fffffffe702 "out/brother.config"
data_channel = {conn = 0x0, process_cb = 0x0, tempfile = 0x0,
scan_id = 0, page_data = {id = 0, remaining_chunk_bytes = 0},
scanned_pages = 0, thread = 0x0, params = {{id = 0 '\000',
value = '\000' <repeats 15 times>} <repeats 16 times>}, xdpi = 0,
ydpi = 0, width = 0, height = 0, config = 0x7ffff7ffefb0, item = 0x0,
file_format = 0x0}
Hi, I'm running Linux Mint 21 and when trying to run the command "make" it gave this error:
gcc -c -MM -MF build/config.d config.c
gcc -std=gnu11 -pedantic -Wall -Wextra -Werror -Wno-missing-braces -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Wformat=2 -Wswitch-default -Wno-unused-label -Wno-unused-function -Wcast-align -Wpointer-arith -Wbad-function-cast -Wstrict-overflow=5 -Wstrict-prototypes -Winline -Wundef -Wnested-externs -Wcast-qual -Wshadow -Wunreachable-code -Wfloat-equal -Wstrict-aliasing=2 -Wredundant-decls -Wold-style-definition -c -o build/config.o config.c
config.c:58:65: error: argument 3 of type ‘char *’ declared as a pointer [-Werror=array-parameter=]
58 | const struct item_config *template, char *name) {
| ~~~~~~^~~~
config.c:16:64: note: previously declared as an array ‘char[1024]’
16 | const struct item_config *template, char name[1024]);
| ~~~~~^~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [Makefile:52: build/config.o] Error 1
I fixed it with the help of ChatGPT.
In config.c, on line 16, I changed:
const struct item_config *template, char name[1024]);
for:
const struct item_config *template, char *name);
And that way I could successfully install it.
I hope this helps.
As per the title, i tried the software with a DCP7065DN but I have this error:
ERR data_channel.c:353: 192.168.1.4: invalid header magic number (3 != 0x07)
{
00000000: 8203 0001 0084 8008 7a50 | ........zP
}
ERR data_channel.c:739: 192.168.1.4: failed to process data. The channel will be closed.
DEBUG data_channel.c:746: data_channel->process_cb = data_channel_set_paused;
If needed I can provide the full log.
Is there any chance to support this device?
Hi, I am currently trying to make it work with a ADS 3600W.
Scanning works but the resulting jpeg is corrupt darsto#8 .
So I tried the RAW option and the OCR but both results in corrupt images.
Is there anything known that it won't work or is there a workaround to repair the jpeg files (if they are not broken too) ?
Hello,
$HOME is undefined when trying to use it from hook script, would it be possible to add it?
Thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.