OpenRTM / OpenRTP-aist

OpenRTP-aist: RT-Middleware and OMG RTC based component and system development tools implemented by AIST
Other
1 stars 6 forks source link

[RTCB] idl/CMakeLists.txtがLinuxのPython3環境に対応していない #387

Closed n-kawauchi closed 3 years ago

n-kawauchi commented 3 years ago

Describe the bug

To Reproduce

Environment

Additional context 修正方法ですが、Windows環境はPython3であっても使用コマンドはpythonであることから、以下のように指定するのはいかがでしょうか。

 22     _IDL_OUTPUTS(${_idl} ${CMAKE_CURRENT_BINARY_DIR} ${_idl_srcs_var})
 23 
 24     if(WIN32)
 25         set(_python_command "python")
 26     else(WIN32)
 27         set(_python_command "python3")
 28     endif(WIN32)
 29 
 30     add_custom_command(OUTPUT ${${_idl_srcs_var}}
 31         COMMAND ${_python_command} ${OPENRTM_DIR}/bin/${_rtm_skelwrapper_command} --include-dir= --skel-suffi    x=Skel --stub-suffix=Stub --idl-file=${_idl}.idl
n-kawauchi commented 3 years ago

@ga-sakamoto さん、masterブランチへ上記に示した修正を入れて下さい。よろしくお願いします。

ga-sakamoto commented 3 years ago

ご連絡が非常に遅くなってしまい,たいへん申し訳ございません. ご提示頂いた内容で修正したPRを上げさせて頂きました. ご確認のほど,よろしくお願いいたします.