andyzeng / ikfastpy

Python wrapper over OpenRave's IKFast inverse kinematics solver for a UR5 robot arm.
221 stars 65 forks source link

error: command 'd:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30037\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2 #8

Open yhb130353985 opened 3 years ago

yhb130353985 commented 3 years ago

error: command 'd:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\cl.exe' failed with exit status 2

yhb130353985 commented 3 years ago

(pytorch_3.6) C:\Users\AIbot\Desktop\ur5\ikfastpy>python setup.py build_ext --inplace running build_ext skipping 'ikfastpy.cpp' Cython extension (up-to-date) building 'ikfastpy' extension d:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT "-ID:\Program Files\Anaconda\envs\pyt orch_3.6\include" "-ID:\Program Files\Anaconda\envs\pytorch_3.6\include" "-Id:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\ATLMFC\include" "-Id :\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\wi nrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tpikfastpy.cpp /Fobuild\temp.win-amd64-3.6\Release\ikfastpy.obj ikfastpy.cpp d:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT "-ID:\Program Files\Anaconda\envs\pyt orch_3.6\include" "-ID:\Program Files\Anaconda\envs\pytorch_3.6\include" "-Id:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\ATLMFC\include" "-Id :\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\wi nrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tpikfast_wrapper.cpp /Fobuild\temp.win-amd64-3.6\Release\ikfast_wrapper.obj ikfast_wrapper.cpp C:\Users\AIbot\Desktop\ur5\ikfastpy\ikfast61.cpp(26): error C2466: 不能分配常量大小为 0 的数组 C:\Users\AIbot\Desktop\ur5\ikfastpy\ikfast61.cpp(1639): error C3861: “_isinf”: 找不到标识符 C:\Users\AIbot\Desktop\ur5\ikfastpy\ikfast61.cpp(1656): error C3861: “_isinf”: 找不到标识符 C:\Users\AIbot\Desktop\ur5\ikfastpy\ikfast61.cpp(1673): error C3861: “_isinf”: 找不到标识符 ikfast_wrapper.cpp(120): error C2131: 表达式的计算结果不是常数 ikfast_wrapper.cpp(120): note: 因读取超过生命周期的变量而失败 ikfast_wrapper.cpp(120): note: 请参见“this”的用法 ikfast_wrapper.cpp(121): warning C4018: “<”: 有符号/无符号不匹配 ikfast_wrapper.cpp(123): error C3863: 不可指定数组类型“IkReal [this->40]” ikfast_wrapper.cpp(134): warning C4244: “参数”: 从“IkReal”转换到“_Ty”,可能丢失数据 with [ _Ty=float ] ikfast_wrapper.cpp(135): warning C4244: “参数”: 从“IkReal”转换到“_Ty”,可能丢失数据 with [ _Ty=float ] ikfast_wrapper.cpp(136): warning C4244: “参数”: 从“IkReal”转换到“_Ty”,可能丢失数据 with [ _Ty=float ] ikfast_wrapper.cpp(137): warning C4244: “参数”: 从“IkReal”转换到“_Ty”,可能丢失数据 with [ _Ty=float ] ikfast_wrapper.cpp(234): warning C4244: “参数”: 从“_Ty”转换到“_Ty”,可能丢失数据 with [ _Ty=IkReal ] and [ _Ty=float ] ikfast_wrapper.cpp(299): warning C4244: “参数”: 从“_Ty”转换到“_Ty”,可能丢失数据 with [ _Ty=IkReal ] and [ _Ty=float ] ikfast_wrapper.cpp(352): warning C4474: printf: 格式字符串中传递的参数太多 ikfast_wrapper.cpp(352): note: 占位符和其参数预计 0 可变参数,但提供的却是 1 参数 ikfast_wrapper.cpp(370): warning C4305: “初始化”: 从“double”到“float”截断 ikfast_wrapper.cpp(371): warning C4305: “初始化”: 从“double”到“float”截断 ikfast_wrapper.cpp(374): error C2131: 表达式的计算结果不是常数 ikfast_wrapper.cpp(374): note: 因读取超过生命周期的变量而失败 ikfast_wrapper.cpp(374): note: 请参见“num_of_joints”的用法 ikfast_wrapper.cpp(397): error C3863: 不可指定数组类型“IkReal [num_of_joints]” ikfast_wrapper.cpp(417): error C2065: “CLOCK_REALTIME”: 未声明的标识符 ikfast_wrapper.cpp(417): error C3861: “clock_gettime”: 找不到标识符 ikfast_wrapper.cpp(437): error C2065: “CLOCK_REALTIME”: 未声明的标识符 ikfast_wrapper.cpp(437): error C3861: “clock_gettime”: 找不到标识符 ikfast_wrapper.cpp(455): warning C4474: printf: 格式字符串中传递的参数太多 ikfast_wrapper.cpp(455): note: 占位符和其参数预计 0 可变参数,但提供的却是 1 参数 ikfast_wrapper.cpp(472): error C2131: 表达式的计算结果不是常数 ikfast_wrapper.cpp(472): note: 因读取超过生命周期的变量而失败 ikfast_wrapper.cpp(472): note: 请参见“num_of_joints”的用法 ikfast_wrapper.cpp(493): error C2065: “CLOCK_REALTIME”: 未声明的标识符 ikfast_wrapper.cpp(493): error C3861: “clock_gettime”: 找不到标识符 ikfast_wrapper.cpp(514): error C2065: “CLOCK_REALTIME”: 未声明的标识符 ikfast_wrapper.cpp(514): error C3861: “clock_gettime”: 找不到标识符 ikfast_wrapper.cpp(542): warning C4474: printf: 格式字符串中传递的参数太多 ikfast_wrapper.cpp(542): note: 占位符和其参数预计 0 可变参数,但提供的却是 1 参数 ikfast_wrapper.cpp(546): warning C4474: printf: 格式字符串中传递的参数太多 ikfast_wrapper.cpp(546): note: 占位符和其参数预计 0 可变参数,但提供的却是 1 参数

Ys-Jia commented 3 years ago

I also have this problem. Is that because the author implements by Ubuntu rather than windows?