2012.3
10

pasori RC-S370とMac チャージできるの?

いろいろと必要性がありまして、pasori(パソリ)を買いました。

pasoriとはパソコンのUSBにつなぐとEdyやSuikaなどと通信ができる機械です。
要は家でカードへの入金や残高確認ができるわけですね。

ただしMacでそのまま使うにはいろいろ問題ありました。今日はその使用感をレビューします。

 

続きを読む

2012.2
27

UbuntuでBoostライブラリをコンパイル時のエラー

Ubuntuでaptからboostライブラリを取得し、プラグラムで使用する場合に下記のようなエラーがでる場合がある。

下記はコマンドライン引数を分解するライブラリ「program_options」を使った場合

mk.cpp:(.text+0x219): undefined reference to `boost::program_options::variables_map::variables_map()'mk.cpp:(.text+0x21f): undefined reference to `boost::program_options::options_description::m_default_line_length'mk.cpp:(.text+0x25d): undefined reference to `boost::program_options::options_description::options_description(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int)'mk.cpp:(.text+0x29f): undefined reference to `boost::program_options::options_description::add_options()'mk.cpp:(.text+0x2bd): undefined reference to `boost::program_options::options_description_easy_init::operator()(char const*, char const*)'mk.cpp:(.text+0x307): undefined reference to `boost::program_options::options_description_easy_init::operator()(char const*, char const*)'mk.cpp:(.text+0x31f): undefined reference to `boost::program_options::options_description_easy_init::operator()(char const*, char const*)'mk.cpp:(.text+0x387): undefined reference to `boost::program_options::store(boost::program_options::basic_parsed_options<char> const&, boost::program_options::variables_map&, bool)'mk.cpp:(.text+0x481): undefined reference to `boost::program_options::operator<<(std::basic_ostream<char, std::char_traits<char> >&, boost::program_options::options_description const&)'

続きを読む

2012.2
25

UbuntuにOpenCV 2.3をインストールする

UbuntuにOpenCV 2.3をインストールしてみます。

まずはこちらのページで非常に手軽なシェルスクリプトを公開してくださっていますので、ありがたく使わせていただきます。
Linux で OpenCV バージョン 2.3.1a のダウンロードとビルドとインストールとテスト実行

ホームディレクトリで上記のスクリプトを「install_ocv.sh」などとして保存します。

続きを読む