HokuyoAISTでcmakeを実行すると、パッケージコンフィグレーションファイルが見つからないというエラーになる問題

2 posts / 0 new
Last post
KIKUCHI Sayaka
Offline
Last seen: 9 years 5 months ago
Joined: 2014-10-22 16:09
HokuyoAISTでcmakeを実行すると、パッケージコンフィグレーションファイルが見つからないというエラーになる問題

先月から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):

  configure_file Problem configuring file

CMake Error at CMakeLists.txt:40 (find_package):

  By not providing "FindHokuyoAIST.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "HokuyoAIST", but CMake did not find one.

  Could not find a package configuration file provided by "HokuyoAIST"
  (requested version 3) with any of the following names:

    HokuyoAISTConfig.cmake
    hokuyoaist-config.cmake

  Add the installation prefix of "HokuyoAIST" to CMAKE_PREFIX_PATH or set
  "HokuyoAIST_DIR" to a directory containing one of the above files.  If
  "HokuyoAIST" provides a separate development package or SDK, be sure it has
  been installed.

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

Japanese
harumi
Offline
Last seen: 2 months 2 weeks ago
Joined: 2009-07-07 10:24
re:HokuyoAISTでcmakeを実行すると、パッケージコンフィグレーションファイルが見つからないというエラーになる問題

産総研テクニカルスタッフの宮本です。

メーリングリストへの投稿ありがとうございます。

エラーの原因は依存ライブラリとツールの不足のようです。

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 産総研 知能システム研究部門 ディペンダブルシステム研究グループ

Log in or register to post comments

Download

latest Releases : 2.0.0-RELESE

2.0.0-RELESE Download page

Number of Projects

Choreonoid

Motion editor/Dynamics simulator

OpenHRP3

Dynamics simulator

OpenRTP

Integrated Development Platform

AIST RTC collection

RT-Components collection by AIST

TORK

Tokyo Opensource Robotics Association

DAQ-Middleware

Middleware for DAQ (Data Aquisition) by KEK