Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python RTCをbuildするとエラーになる #498

Open
n-ando opened this issue Nov 9, 2022 · 5 comments
Open

Python RTCをbuildするとエラーになる #498

n-ando opened this issue Nov 9, 2022 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@n-ando
Copy link

n-ando commented Nov 9, 2022

Describe the bug
RTCBuilderでPython RTCを生成し、cmake buildすると omniORBのconfig.cmakeを要求される。

To Reproduce

  1. OpenRTMのPython環境のみをインストールする
  2. RTCBuilderでPython RTCのコードを生成する
  3. 生成したプロジェクトで、mkdir build ; cd build ; cmake .. でエラー、omniORB4パッケージチェックに引っかかる
  4. apt install libomniorb4-dev すると、パッケージチェックは追加してcmake makeが通る

Reproducibility
100%

Expected behavior
Python環境のみインストールしている状態でもcmakeは通ってほしい

Environment

  • OS: Ubnutn 18.04 64bits
  • OpenRTM-aist Version 2.0
@n-ando n-ando added the bug Something isn't working label Nov 9, 2022
@n-kawauchi
Copy link

Ubuntu22.04で、OpenRTM-Pythonのみをインストールしている環境での確認です。

$ dpkg -l | grep openrt
ii  openrtm2-python3                2.0.1-1   amd64    OpenRTM-aist, RT-Middleware distributed by AIST
ii  openrtm2-python3-doc            2.0.1-1   all      Documentation for openrtm2-python3
ii  openrtm2-python3-example        2.0.1-1   amd64    OpenRTM-aist-Python examples

RTCBでPython RTCを生成すると、CMakeLists.txtに「find_package(OpenRTM REQUIRED)」とあるため、OpenRTMConfig.cmakeが求められ、現状openrtm2-devのインストールは必要となります。依存関係で、openrtm2, openrtm2-idl もインストールされます。

OpenRTMConfig.cmakeから${OPENRTM_VERSION_MAJOR}${OPENRTM_VERSION_MINOR}${OPENRTM_VERSION_PATCH}等を取得して、これがdeb/rpmパッケージ生成時に定義するopenrtm2の依存関係でバージョン番号指定にも使われる予定との認識です。

@n-ando
Copy link
Author

n-ando commented Oct 30, 2023

OpenRTMpyConfig.cmakeを新たに作成する方向で。

@ga-sakamoto
Copy link

こちらのお話につきましては,ツール側(OpenRTP側)ではなく,ミドルウェア本体に含まれるファイルを修正する,という事でしょうか?

@n-kawauchi
Copy link

OpenRTM-PythonへOpenRTMpyConfig.cmake新規定義が加わった後にOpenRTPのテンプレート修正をお願いする予定です。
現在、一番トップのCMakeLists.txtには、C++のOpenRTMConfig.cmakeからOpenRTMのバージョン番号を取得する処理が入っています。この部分を新たなOpenRTMpyConfig.cmakeを利用するように変更する予定です。

find_package(OpenRTM REQUIRED)
set(RTM_VER ${OPENRTM_VERSION})
set(RTM_SHORT_VER ${OPENRTM_VERSION_MAJOR}${OPENRTM_VERSION_MINOR}${OPENRTM_VERSION_PATCH})

@ga-sakamoto
Copy link

こちらもかしこまりました.
ご連絡をお待ちしたいと思います.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants