Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Canon iP72*0 and other printers - Work in progress, help needed #85325

Closed
wants to merge 2 commits into from

Conversation

turion
Copy link
Contributor

@turion turion commented Apr 15, 2020

Motivation for this change

Canon iP72*0 does not work in nixos currently.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

Questions

I'm not a C dev and I have no experience with autoconf. I simply copied pkgs/misc/cups/drivers/cnijfilter_4_00/default.nix, downloaded the source from the Canon website (http://gdlp01.c-wss.com/gds/3/0100004693/01/cnijfilter-source-3.80-1.tar.gz) and tried to fiddle around to get as far as I could.

  • Did I do most things right so far?
  • How can I improve my code?
  • Right now, it doesn't build. the build error is:
gcc  -O2 -L../../../com/libs_bin64 -L../../../lgmon/src  -o cnijnpr cnijnpr.o -lcnnet -lbscc2sts -ldl 
/nix/store/sq2b0dqlq243mqn4ql5h36xmpplyy20k-binutils-2.31.1/bin/ld: cannot find -lbscc2sts
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:337: cnijnpr] Error 1
make[2]: Leaving directory '/build/source/cngpijmon/cnijnpr/cnijnpr'
make[1]: *** [Makefile:353: all-recursive] Error 1
make[1]: Leaving directory '/build/source/cngpijmon/cnijnpr'
make: *** [Makefile:294: all] Error 2

What can I do here? It seems the file bscc2sts.c is in the lgmon/src directory, but still the linker doesn't find it.

@jerith666
Copy link
Contributor

I don't have any easy ideas, sorry. :( I know this was quite a pain to get working correctly, I wish you luck!

@turion
Copy link
Contributor Author

turion commented Apr 16, 2020

Oh it seems there is a more complete PR here: #65469

@stale
Copy link

stale bot commented Jun 4, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 4, 2021
@turion
Copy link
Contributor Author

turion commented May 6, 2022

There is a more complete PR, and I don't have access to this kind of printer anymore.

@turion turion closed this May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants