お知らせ

  • 利用規約を守って投稿してください。また、よくある質問および投稿の手引きも参照してください。
  • メッセージの投稿にはアカウントが必要です。未登録の方は、ユーザ登録ページからアカウントを作成することができます。

#1 2009-03-13 11:50:32

nakajims
メンバ
登録日: 2008-09-12

EeePCで個人蔵書管理をしたいのですが

Ububtuで個人の蔵書管理の出来るソフトを探しています。

Netbookにalexandriaというソフトを使用させていただいてるのですが(ISBNコードを手入力してます)、Netbook内臓のカメラでISBNのバーコードを読み取らせて入力できると便利だなと考え、対応出来るソフトを探しています。どなたかご存知ありませんでしょうか?
alexandriaはバーコードリーダーに対応しており対応するデバイス(CueCat)を導入すれば問題なく使用できるようなのですが、個人使用ゆえにそのためだけに購入するのもなんかな?(定額給付金が支給されれば購入検討するとしますか)って感じなので、もし現有ハードを利用して対応できる方法等あればご教示いただきたくお願い申し上げます。

環境は
PC:EeePC901X ubuntuはSDHCに導入
OS:Eeeubuntu8.10(Kernel2.6.27-11)
Soft:alexandria 0.6.4b1
EeeubuntuなのでUCviewが入っていてカメラは問題なく使用出来てます。

オフライン

 

#2 2009-03-14 07:08:18

STGSAGWAN
ゲスト

Re: EeePCで個人蔵書管理をしたいのですが

次の1,2のどちらでしょう?

1. Webカメラによるバーコード読取を実現してくれる 蔵書管理の単体アプリケーションを探しています。
2. Webカメラでバーコードを読み、読み込んだ値をアプリケーションに入力する方法を知りたいです。

1 ならば私はお手上げです。
Synapticパッケージ・マネージャ上での検索や Web検索を行ってみましたが、残念ながらそういう機能をもつエンドユーザ向けソフトは見つからなかったです。
Alexandriaは、バーコードスキャナ(バーコードリーダ)による読取機能は実装している?ようですが、どうもWebカメラによる読取機能は無いようですね。

2 ならば、小ぶりなコマンドを複数組み合わせた、自作ツールで可能です。
今日作って、ある程度まで動作確認できてます。(Webカメラを持っていないのでそこが動作するかやや不安)
ご希望ならここに投稿します。
蔵書管理だけなく、画面アプリケーションなら何でも使える汎用的なものです。

最後の編集者: STGSAGWAN (2009-03-14 07:11:25)

 

#3 2009-03-14 07:33:05

einundzwanzighundertsechs
メンバ
登録日: 2008-12-28

Re: EeePCで個人蔵書管理をしたいのですが

http://zebra.sourceforge.net/
video4linux と併用して webcam をスキャナとして使えるそうです.
Jaunty でパッケージ化されてます.
https://launchpad.net/ubuntu/+source/zebra

オフライン

 

#4 2009-03-16 10:04:36

nakajims
メンバ
登録日: 2008-09-12

Re: EeePCで個人蔵書管理をしたいのですが

STGSAGWAN様

御回答頂き有難うございます。また、ご回答頂いただいたにも関わらず私からの回答が遅くなったことお詫び申し上げます。
本投稿の主旨は
(a)Linux初心者の私の希望としては本来1の内容のものがあればBestなのですが。。色々検索しましたが個人では探し出せなかったので、もしどなたかそのようなソフトを御存知であればと考えました。(STGSAGWAN様に同様の作業をして頂くも、、やはりなさそうな結果でしたが)で、次善の策として考え投稿内で提示したのが
(b)現状のalexandriaまたは同様な機能を有するソフトを使用し、手持ちの(EeePCに搭載されている)Webcamでバーコードの認識できるようにする。かつ
(c)その結果をalexandriaまたは同等の機能を有するソフトに入力出きるように渡してあげる。
ことができればいいなと考えました。

ですからご提示頂いた2に限りなく近いと考えておりますが、ただ上記(b)(c)を満足するものなのか、(c)にのみ関するものなのか判断出来ないでいます。

また(c)だけの場合であってもeinundzwanzighundertsechs様からご教示頂いた内容を合わせればほぼBestになるのかが?
なにぶんLinuxの知識あまりなく(ソフトをソースからBuildとかMakeしたこともありません)、回答するにも時間がかかってしまう状態です。
質問及び回答内容が的外れになっていたら、お手数ですが再度御質問願います。

最後の編集者: nakajims (2009-03-16 10:20:09)

オフライン

 

#5 2009-03-16 10:53:39

nakajims
メンバ
登録日: 2008-09-12

Re: EeePCで個人蔵書管理をしたいのですが

einundzwanzighundertsechs様

御回答頂きありがとうございます。ただ小生Linuxの知識につては
’なにぶんLinuxの知識あまりなく(ソフトをソースからBuildとかMakeしたこともありません)、回答するにも時間がかかってしまう状態です。’ので、少々zebraについて質問をさせて頂きたく。(ホームページは一応見たのですが。。。)

このソフトはWebcamで読み取ったうえ、バーコードの数値をXターミナルに出力してくれるような感じですが、(理解間違っていたらすみません)現状は小生Intrepidを使用しており、Jauntyまで待てば使えるようになるよ!って意味なのか、Intrepidでも使える可能性あるよってことなのか理解できておりません。
まずは、Intrepidで使用(試用でもかまいません)する場合のインストールの方法を教えて頂けませんでしょうか?
上記にもありますとおり、Linuxにもずぶの素人なもんで、できればインストールの方法ご教示願いたくお願い申し上げます。

なお、
~$ dpkg -l | grep video4linux
ii  libv4l-0                                   0.5.7-1~intrepid1                       Collection of video4linux support libraries
ってことなのでvide4linuxは既に導入されてる模様です。

最後の編集者: nakajims (2009-03-16 15:47:04)

オフライン

 

#6 2009-03-16 19:22:11

STGSAGWAN
ゲスト

Re: EeePCで個人蔵書管理をしたいのですが

nakajims さん

ゆっくりとした回答で全然結構ですのでどうか気になさらずに。
あと、ご質問の趣旨は把握しました。

zebra barcode readerをIntrepidで何とかして使えるなら、その方がよいと私も思います。
まずはそれを模索してみてもしダメなら、私の自作ツールを考慮に入れるという方向性でどうでしょうか?
(まあ、数行のシェルスクリプトなのでツールと呼べない代物ですが)

 

#7 2009-03-17 10:55:30

nakajims
メンバ
登録日: 2008-09-12

Re: EeePCで個人蔵書管理をしたいのですが

STGSAGWAN様,einundzwanzighundertsechs様

分からないなりにzebraをDLし、(zebra_0.5+debian.orig.tar.gzという名前でした。)
1.上記Fileを /usr/srcにcpして(permissionがないとか言ってきたのでsudoでcpとしました)
2.でFileを展開(sudo tar vxf zebra_0.5+debian.orig.tar.gzとしました)
3.するとzebra-0.5+debianというDirectoryができたのでそこに移動し./configure(Basic Installationに書いてありました)
すると
nakajims@EeePC901:/usr/src/zebra-0.5+debian$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... ./configure: line 3759: echo: write error: Broken pipe
/bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for xmlto... no
checking for library containing clock_gettime... -lrt
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_create in -lpthread... yes
checking linux/videodev.h usability... yes
checking linux/videodev.h presence... yes
checking for linux/videodev.h... yes
checking for linux/videodev2.h... yes
checking for X... no
checking for X11/extensions/XShm.h... no
checking for X11/extensions/Xvlib.h... no
checking for MAGICK... configure: error: Package requirements (ImageMagick++ >= 6.2.6) were not met:

No package 'ImageMagick++' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables MAGICK_CFLAGS
and MAGICK_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

となりimagemagick++が無いとのmessageでしたので

nakajims@EeePC901:/usr/src/zebra-0.5+debian$ sudo apt-get install imagemagick++
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています               
状態情報を読み取っています... 完了
imagemagick はすでに最新バージョンです。
アップグレード: 0 個、新規インストール: 0 個、削除: 0 個、保留: 0 個。
となり、先に進めません。ただ
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
と言う部分の意味が分からなくもう少しなにかしてあげるとInstallできるのかな?なんて考えまして質問させて頂きます。

現状は
nakajims@EeePC901:/usr/src/zebra-0.5+debian$ make
make: *** ターゲットが指定されておらず, makefile も見つかりません.  中止.
って言われてます。

何かこうしてみるといいんじゃないって感じで構いませんので教えて頂けませんか?

オフライン

 

#8 2009-03-17 20:18:47

STGSAGWAN
ゲスト

Re: EeePCで個人蔵書管理をしたいのですが

nakajims による投稿:

何かこうしてみるといいんじゃないって感じで構いませんので教えて頂けませんか?

ビルドに必要な開発用ライブラリのパッケージ名は
・頭はlib
・途中にアプリ名やその略称とか
・最後の方に-dev
が多いです。例外も結構ありますが。

「アプリ名やその略称」の部分については、限定度の高いキーワードだと外れることがあります。
今回ならば、imagemagick、image、magick など色々試してみてください。

configure時にひっかかった時のメッセージでググってみました?
あと「アプリ名 make install」でググっても損はないでしょう。

あと気になったことをいくつか挙げますね。
・launchpadにある「zebra_0.5+debian.orig.tar.gz」もよいですが、sourceforge.netのzebraのprojectページの最新版を使うのもありだ、と思いました。
どちらもビルド手順は一緒のはず。

・configure時は --prefix=${HOME}/local の方がお勧め。
無闇にroot権限を要する場所にインストールするのはお勧めできないです。

・ソースを/usr/src配下には置くのはマズいです。置くとしたら/usr/local/src配下です。
configure時に--prefix=${HOME}/localの場合は、${HOME}/local/src とかでしょうか。

nakajims による投稿:

make: *** ターゲットが指定されておらず, makefile も見つかりません.  中止.

configureが正常に終わるとMakefileが生成されるので、configureが正常終了していないのにmakeするとそうなります。

nakajims による投稿:

Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.
と言う部分の意味が分からなく

私も分かりません。というか、ネットからダウンロードしたソースをビルドする時に気にした事がないです。
pkg-config で調べればよいと思います。
この話は大きく脱線するので、このあたりで。

最後の編集者: STGSAGWAN (2009-03-17 20:24:57)

 

Board footer

Powered by FluxBB