안녕하세요 Window에서 ROS를 사용하고자 하는데 잘 안되는 부분이 있습니다.

1,390 views
Skip to first unread message

Beeoh

unread,
Jun 27, 2016, 5:06:02 AM6/27/16
to 한국 ROS 사용자
리눅스에서 ROS를 구동해보았고 

윈도우에서 ROS를 구동하고자 wiki를 참고하여 진행하고 있습니다.

일단 


위 페이지를 따라 rosmaster 구동, publisher, subscriber가 동작되는 것을 확인하였습니다.

여기까지 과정으로 ROS가 설치된 것을 확인하였고

ROS 패키지를 생성하고자 


위 페이지를 참고하여 진행하고 있습니다.

CMake와 파이썬 등 필요한 파일을 설치하였고 


아래의 커맨드를 따라 winros_make를 입력하면 


> mkdir C:/work
> cd C:/work
> winros_init_workspace overlay
> cd C:/work/overlay
> setup.bat
> winros_init_build --underlays="C:/opt/ros/hydro/x86"
> winros_make


다음과 같은 에러가 발생합니다.




C:\work\overlay>winros_make


Executing cmake on the workspace source directory:


  cmake -G "NMake Makefiles" -C "C:\work\overlay\config.cmake" -DCMAKE_USER_MAKE

_RULES_OVERRIDE:STRING="C:\Python27\lib\site-packages\win_ros\cmake\MsvcOverride

s.cmake" -DCATKIN_DEVEL_PREFIX=C:\work\overlay\devel C:\work\overlay\src


loading initial cache file C:\work\overlay\config.cmake

-- The C compiler identification is unknown

-- The CXX compiler identification is unknown

CMake Error in CMakeLists.txt:

  The CMAKE_C_COMPILER:


    cl


  is not a full path and was not found in the PATH.


  To use the NMake generator with Visual C++, cmake must be run from a shell

  that can use the compiler cl from the command line.  This environment is

  unable to invoke the cl compiler.  To fix this problem, run cmake from the

  Visual Studio Command Prompt (vcvarsall.bat).


  Tell CMake where to find the compiler by setting either the environment

  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to

  the compiler, or to the compiler name if it is in the PATH.



CMake Error in CMakeLists.txt:

  The CMAKE_CXX_COMPILER:


    cl


  is not a full path and was not found in the PATH.


  To use the NMake generator with Visual C++, cmake must be run from a shell

  that can use the compiler cl from the command line.  This environment is

  unable to invoke the cl compiler.  To fix this problem, run cmake from the

  Visual Studio Command Prompt (vcvarsall.bat).


  Tell CMake where to find the compiler by setting either the environment

  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path

  to the compiler, or to the compiler name if it is in the PATH.



-- Configuring incomplete, errors occurred!

See also "C:/work/overlay/build/CMakeFiles/CMakeOutput.log".

See also "C:/work/overlay/build/CMakeFiles/CMakeError.log".


Executing nmake in the root build directory


'nmake'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는

배치 파일이 아닙니다.


C:\work\overlay>




CMake 파일을 32bit를 설치해서 이것이 문제인것 같아 64bit로 재설치 하였으나 같은 에러가 발생하고 있습니다.


ROS사용자 그룹스 분들중 혹시 해결방법을 아시는 분이 계시면 도움을 청하고자 합니다.



HyungRyul Kim

unread,
Jun 27, 2016, 8:04:43 PM6/27/16
to Beeoh, 한국 ROS 사용자
보고 계신 winros wiki page의 PreRequisites를 보시면 Windows SDK 7.1을 설치하셔야 합니다. NMAKE는 비쥬얼스튜디오 10.0이나 Windows SDK7.1에 포함되어 있는 컴파일러입니다.
prerequisites를 참고해서 설치 하시면 위의 문제는 해결될 것 같습니다만, 보시다시피 hydro 이후엔 winros가 지원되고 있지 않습니다.
기본적으로 윈도우즈는 패키지 시스템이 없기 때문에(최근에는 해결됬을지도 모르겠습니다만..) ROS의 개발 환경을 지속적으로 지원하기가 어렵습니다.
ROS2.0부터는 크로스플랫폼을 지원한다고 하니 그 전에는 리눅스PC가 따로 없으시면 가상머신(VMware등..)을 설치해서 사용하시는 것을 권장합니다. 이 경우에도 RVIZ같은 그래픽 도구를 사용하려면 컴퓨터 사양이 어느 정도 뒷받침되어야 합니다.  


--
이 메일은 Google 그룹스 '한국 ROS 사용자' 그룹에 가입한 분들에게 전송되는 메시지입니다.
이 그룹에서 탈퇴하고 더 이상 이메일을 받지 않으려면 korea-ros-use...@googlegroups.com에 이메일을 보내세요.
이 그룹에 게시하려면 korea-r...@googlegroups.com에 이메일을 보내세요.
https://groups.google.com/group/korea-ros-users에서 이 그룹을 방문하세요.
더 많은 옵션을 보려면 https://groups.google.com/d/optout을(를) 방문하세요.

Reply all
Reply to author
Forward
0 new messages