Jika AlisJK SmartScan - Windows [2], menggunakan bahasa C#, untuk versi Linux Kita akan menggunakan code simple-scan [3] sebagai basis awal pengembangan
simple-scan
Instalasi, dari [3], dengan beberapa tambahan :sudo apt-get build-dep simple-scanKetika menginstall via github (18-Maret-2016), ketika proses make, mendapatkan pesan error :
sudo apt-get install libsqlite3-dev
sudo apt-get install valac-0.22 vala-0.22
sudo update-alternatives --config valac # select vala-0.22
sudo apt-get install libgusb-dev
sudo apt-get install libpackagekit-glib2-dev
# one of the follwing
./autogen.sh # system-wide installation
./autogen.sh --prefix=`pwd`/install # for development purposes
make
make install
./install/bin/simple-scan
VALAC simple_scan_vala.stamp
ui.vala:1815.27-1815.30: warning: Argument 1: Cannot pass null to non-null parameter type
set_titlebar (null);
^^^^
simple-scan.vala:68.13-68.36: error: The name `device_added' does not exist in the context of `GUsb.Context'
usb_context.device_added.connect (() => { scanner.redetect (); });
^^^^^^^^^^^^^^^^^^^^^^^^
simple-scan.vala:69.13-69.38: error: The name `device_removed' does not exist in the context of `GUsb.Context'
usb_context.device_removed.connect (() => { scanner.redetect (); });
^^^^^^^^^^^^^^^^^^^^^^^^^^
Compilation failed: 2 error(s), 1 warning(s)
make[1]: *** [simple_scan_vala.stamp] Error 1
Error yang sama terjadi ketika melakukan build source dari bzr.
Referensi
- Analisis Lembar Jawaban Komputer (AlisJK), http://negeripelangi.org/id/produk/alisjk
- Alisjk SmartScan, http://workshop.openthinklabs.com/resources/programming-language/csharp/studi-kasus/alisjk-smartscan
- simple-scan, https://github.com/mnagel/simple-scan
No comments:
Post a Comment