Closed n-kawauchi closed 3 years ago
Describe the bug
22 _IDL_OUTPUTS(${_idl} ${CMAKE_CURRENT_BINARY_DIR} ${_idl_srcs_var}) 23 24 add_custom_command(OUTPUT ${${_idl_srcs_var}} 25 COMMAND python ${OPENRTM_DIR}/bin/${_rtm_skelwrapper_command} --include-dir= --skel-suffix=Skel --stu b-suffix=Stub --idl-file=${_idl}.idl
To Reproduce
$ make [ 10%] Compiling /home/kawauchi/workspace2/ImageCalibration/idl/CalibrationService.idl /bin/sh: 1: python: not found make[2]: *** [idl/CMakeFiles/CalibrationService_TGT.dir/build.make:62: idl/CalibrationServiceSkel.cpp] エラー 127
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
@ga-sakamoto さん、masterブランチへ上記に示した修正を入れて下さい。よろしくお願いします。
ご連絡が非常に遅くなってしまい,たいへん申し訳ございません. ご提示頂いた内容で修正したPRを上げさせて頂きました. ご確認のほど,よろしくお願いいたします.
Describe the bug
To Reproduce
Environment
Additional context 修正方法ですが、Windows環境はPython3であっても使用コマンドはpythonであることから、以下のように指定するのはいかがでしょうか。