ms-iot / ROSOnWindows

ROS on Windows Documentation Repository
https://aka.ms/ros/docs
MIT License
212 stars 48 forks source link

[Melodic] catkin make error ros1 on windows #444

Open lilweary opened 1 year ago

lilweary commented 1 year ago

ROS Distro: `melodic'

hello, i am trying to use ros melodic on windows and have installed it following the instructions on ros wiki i have selected following tools forVS-2019 Screenshot 2023-03-09 152559

as i use catkin_make at c:/catkin_ws i enconter the following error i have installed Moveit package using choco and had no problem there but building other packages from catkin_ws/src raises the following nmake error

[ 92%] Building CXX object universal_robot/ur_kinematics/CMakeFiles/ur3_moveit_plugin.dir/src/ur_moveit_plugin.cpp.obj cl : Command line warning D9002 : ignoring unknown option '-std=c++11' ur_moveit_plugin.cpp Including header <class_loader/class_loader.h> is deprecated, include <class_loader/class_loader.hpp> instead. C:\catkin_ws\src\universal_robot\ur_kinematics\include\ur_kinematics/ur_moveit_plugin.h(97): fatal error C1083: Cannot open include file: 'moveit/kdl_kinematics_plugin/chainiksolver_pos_nr_jl_mimic.hpp': No such file or directory NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~2\2019\COMMUN~1\VC\Tools\MSVC\1429~1.301\bin\Hostx64\x64\cl.exe' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\nmake.exe"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\nmake.exe"' : return code '0x2' Stop. Invoking "nmake" failed

please help me resolve this error.

ooeygui commented 1 year ago

Hi there, It looks like you are building a UR driver which expects a later release of MoveIt than is available in the melodic release. Could you rebuild with Noetic?

lilweary commented 1 year ago

hello! thank you for responding, i tried installing on both melodic and noetic i am seeing similar error on Cmakeerror.log file even with other packages . and cmd show nmake and invoking ninja error. please have look at the following error log

Determining if the include file pthread.h exists failed with the following output: Change Dir: C:/robot_ws/build/CMakeFiles/CMakeTmp

Run Build Command(s):C:/PROGRA~2/MICROS~2/2019/COMMUN~1/Common7/IDE/COMMON~1/MICROS~1/CMake/Ninja/ninja.exe cmTC_81535 && [1/2] Building C object CMakeFiles\cmTC_81535.dir\CheckIncludeFile.c.obj

FAILED: CMakeFiles/cmTC_81535.dir/CheckIncludeFile.c.obj

C:\PROGRA~2\MICROS~2\2019\COMMUN~1\VC\Tools\MSVC\1429~1.301\bin\Hostx64\x64\cl.exe /nologo /DWIN32 /D_WINDOWS /W3 /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\cmTC_81535.dir\CheckIncludeFile.c.obj /FdCMakeFiles\cmTC_81535.dir\ /FS -c CheckIncludeFile.c

CheckIncludeFile.c(1): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory ninja: build stopped: subcommand failed.