ThierryHFR / scangearmp2

This project is a sane backend for the canon's scanner, based on the source code of scangearmp2.
Other
78 stars 17 forks source link

Installing under arm64 #40

Closed mahmouddaif closed 3 years ago

mahmouddaif commented 3 years ago

Hello I am currently trying to install this software on a jetson xavier machine using arm64 architecture and I get the following error when execting "dpkg-buildpackage -us -uc" can you help me with that please? dpkg-buildpackage: info: source package scangearmp2 dpkg-buildpackage: info: source version 4.12 dpkg-buildpackage: info: source distribution buster dpkg-buildpackage: info: source changed by thierry <thierry@ordissimo.com> dpkg-buildpackage: info: host architecture arm64 dpkg-source --before-build scangearmp2 fakeroot debian/rules clean dh clean dpkg-source -b scangearmp2 dpkg-source: info: using source format '3.0 (native)' dpkg-source: info: building scangearmp2 in scangearmp2_4.12.tar.xz dpkg-source: info: building scangearmp2 in scangearmp2_4.12.dsc debian/rules build dh build fakeroot debian/rules binary dh binary dpkg-genbuildinfo dpkg-genbuildinfo: warning: debian/changelog(l11): ignoring invalid week day 'tue' LINE: -- thierry <thierry@thierry-thinkpad> tue, 05 dec 2017 21:03:04 +0100 dpkg-genbuildinfo: error: binary build with no binary artifacts found; .buildinfo is meaningless dpkg-buildpackage: error: dpkg-genbuildinfo subprocess returned exit status 2

ThierryHFR commented 3 years ago

Can you tell me what is your device, brand and model?

mahmouddaif commented 3 years ago

Thank you for your reply, I use similar device to this running jetson pack 4.5 https://developer.nvidia.com/embedded/jetson-agx-xavier-developer-kit

ThierryHFR commented 3 years ago

Sorry, your printer ?

mahmouddaif commented 3 years ago

Thank you, I use canoscan lide 400.

ThierryHFR commented 3 years ago

Can you give me the usbid?

lsusb
mahmouddaif commented 3 years ago

Sure, here you go. Bus 001 Device 006: ID 04a9:1912 Canon, Inc.

ThierryHFR commented 3 years ago

Perfect! scangearmp2 works only on i386 and amd64 architecture. The info you just gave me shows that your driver is supported by sane-backends! Your libsane version is too old, update to 1.0.31 if possible. I'm not here (I'm going to the dentist) but I can help you afterwards, if you need !

mahmouddaif commented 3 years ago

Okay, I will try and see, thank you so much for your kind help.

mahmouddaif commented 3 years ago

I tried to manually update libsane to 1.0.31 by installing deb package, but I ran into a lot of dependency issues, do you know a better way to do so?

ThierryHFR commented 3 years ago

You have 2 choices! 1 - upgrade to bulleyes, which has natively libsane 1.0.31 2 - Build the package :

sudo apt install devscripts
dget http://deb.debian.org/debian/pool/main/s/sane-backends/sane-backends_1.0.31-4.dsc
dpkg-source -x sane-backends_1.0.31-4.dsc
cd sane-backends-1.0.31/
sudo mk-build-deps -i # <= Install the dependencies
debuild -tc
sudo apt-get purge devscripts # <= unistall env dev
sudo apt autoremove # <= clean system
sudo dpkg -i ../libsane-common_*.deb ../libsane1_*.deb ../libsane_*.deb ../sane-utils_*.deb
mahmouddaif commented 3 years ago

Thank you so much, I will try this solution.

mahmouddaif commented 3 years ago

This actually works, really I can't thank you enough.