産総研テクニカルスタッフの宮本です。
メーリングリストへの投稿ありがとうございます。
エラーの原因は依存ライブラリとツールの不足のようです。
rtchokuyoaistのビルドと起動には、python-sphinx、distributeモジュール、breatheモジュール、flexiport、hokuyoaistが必要です。
以下に依存ツールや依存ライブラリと、rtchokuyoaist本体のインストール手順をまとめたので参考にしてください。
python-sphinxをインストールする
手順
①コンソールからインストールが可能です。次のコマンドでインストールを完了します。
$ sudo apt-get install python-sphinx (パスワードを入力しインストールを完了します)
distributeをインストールする
手順
①次のリンク先からソースファイルをDLした後に解凍します。
https://pypi.python.org/packages/source/d/distribute/distribute-0.7.3.zip
②解凍したディレクトリに移動した後に、次のコマンドを実行しインストールを完了します。
$ python setup.py build $ sudo python setup.py install (パスワードを入力しインストールを完了します)
breatheをインストールする
手順
①次のリンク先からソースファイルをDLした後に解凍します。
https://github.com/michaeljones/breathe/archive/master.zip
②解凍したディレクトリに移動した後に、次のコマンドを実行しインストールを完了します。
$ python setup.py build $ sudo python setup.py install (パスワードを入力しインストールを完了します)
flexiportをインストールする
手順
①次のリンク先からソースファイルをDLした後に解凍します。
https://github.com/gbiggs/flexiport/archive/master.zip
②解凍したディレクトリに移動した後に、次のコマンドでcmakeの適用・ビルドを実行しインストールを完了します。
$ mkdir work && cd work $ cmake .. && make && sudo make install (パスワードを入力しインストールを完了します)
hokuyoaistをインストールする
手順
①次のリンク先からソースファイルをDLした後に解凍します。
https://github.com/gbiggs/flexiport/archive/master.zip
②解凍したディレクトリに移動した後に、次のコマンドでcmakeの適用・ビルドを実行しインストールを完了します。
$ mkdir work && cd work $ cmake .. && make && sudo make install (パスワードを入力しインストールを完了します)
rtchokuyoaistのビルドとインストール
手順
①次のリンク先からソースファイルをDLした後に解凍します。
https://github.com/gbiggs/rtchokuyoaist/archive/master.zip
②解凍したディレクトリに移動した後に、次のコマンドでcmakeの適用・ビルドを実行しインストールを完了します。
$ mkdir work && cd work $ cmake .. && make && sudo make install (パスワードを入力しインストールを完了します)
インストールを完了すると/usr/local/bin/に[rtchokuyoaist_standalone]実行ファイルが確認できます。
※なお実機を使った動作確認はしてません。あしからず(>_<;)
宮本晴美 h8892-miyamoto@aist.go.jp 産総研 知能システム研究部門 ディペンダブルシステム研究グループ
先月からRTミドルウェアの勉強をはじめた、菊地です。
HokuyoAISTでcmakeを実行すると、パッケージコンフィグレーションファイルが見つからないというエラーになる問題で困っています。 原因または解決策をご存知の方はいらっしゃいませんか。
環境は、virtualbox上でUbuntu14.04(32bit),Eclipse 3.8.1 (英語版) Linux用全部入り eclipse381-openrtp110rc4v20130216-linux-gtk.tar.gz をダウンロード
私の行った手順は以下です。 (1)rtchokuyoaist-masterをcmakeにかける (2configを押すと、”Error in configuration process,project files may be invalid"と出てしまう
すると、以下のような結果になりました。以下エラー全文 CMake Error: Cannot open file for write: /home/kbkn/Desktop/hokuyo/rtchokuyoaist-master/build/CMakeCache.txt.tmp CMake Error: : System Error: Resource temporarily unavailable CMake Error: Unable to open cache file for save. /home/kbkn/Desktop/hokuyo/rtchokuyoaist-master/build/CMakeCache.txt CMake Error: : System Error: Resource temporarily unavailable CMake Error: Could not open file for write in copy operation /home/kbkn/Desktop/hokuyo/rtchokuyoaist-master/build/uninstall_target.cmake.tmp CMake Error: : System Error: Permission denied CMake Error at CMakeLists.txt:12 (CONFIGURE_FILE):
CMake Error at CMakeLists.txt:40 (find_package):
Configuring incomplete, errors occurred! See also "/home/kbkn/Desktop/hokuyo/rtchokuyoaist-master/build/CMakeFiles/CMakeOutput.log". CMake Error: Cannot open file for write: /home/kbkn/Desktop/hokuyo/rtchokuyoaist-master/build/CMakeCache.txt.tmp CMake Error: : System Error: Permission denied CMake Error: Unable to open cache file for save. /home/kbkn/Desktop/hokuyo/rtchokuyoaist-master/build/CMakeCache.txt CMake Error: : System Error: Permission denied
原因を確かめるため、以下のようなテストを行ってみましたが、 問題の解決には至りませんでした。
なお、私の環境は以下の通りです。 【環境は、virtualbox上でUbuntu14.04(32bit),Eclipse 3.8.1 (英語版) Linux用全部入り eclipse381-openrtp110rc4v20130216-linux-gtk.tar.gz をダウンロード 】
このメーリングリストの過去ログも調べましたが、 HokuyoAISTに関する話題は見つかりませんでした。
参考にしたサイトは以下のHokuyoAISTのHPです http://gbiggs.github.io/rtchokuyoaist/index_j.html
菊地 彩花 法政大学 syks1008@gmail.comkuyo