You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I ran catkin_make in Windows 10, ROS noetic, Visual Studio 2019 environment, encountered the following error.
I don't want to run hardware, I just want to use it for simulation, is there any workaround?
Thank you,
C:\catkin_ws>catkin_make
Base path: C:\catkin_ws
Source space: C:\catkin_ws\src
Build space: C:\catkin_ws\build
Devel space: C:\catkin_ws\devel
Install space: C:\catkin_ws\install
####
#### Running command: "ninja build.ninja" in "C:\catkin_ws\build"
####
ninja: no work to do.
####
#### Running command: "ninja -j12 -l12" in "C:\catkin_ws\build"
####
[55/536] Building CXX object niryo_one_ros\dynamixel_sdk\CMakeFiles\dynamixel_sdk.dir\src\port_handler_linux.cpp.obj
FAILED: niryo_one_ros/dynamixel_sdk/CMakeFiles/dynamixel_sdk.dir/src/port_handler_linux.cpp.obj
C:\PROGRA~2\MICROS~3\2019\BUILDT~1\VC\Tools\MSVC\1428~1.299\bin\Hostx64\x64\cl.exe /nologo /TP -DNOMINMAX -DROSCONSOLE_BACKEND_LOG4CXX -DROS_BUILD_SHARED_LIBS=1 -DROS_PACKAGE_NAME=\"dynamixel_sdk\" -DWIN32_LEAN_AND_MEAN -D_USE_MATH_DEFINES -Ddynamixel_sdk_EXPORTS -IC:\catkin_ws\src\niryo_one_ros\dynamixel_sdk\include -IC:\opt\ros\noetic\x64\include -IC:\opt\ros\noetic\x64\share\xmlrpcpp\cmake\..\..\..\include\xmlrpcpp /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MD /Zi /O2 /Ob1 /DNDEBUG /D _VARIADIC_MAX=10 /Zc:__cplusplus /showIncludes /Foniryo_one_ros\dynamixel_sdk\CMakeFiles\dynamixel_sdk.dir\src\port_handler_linux.cpp.obj /Fdniryo_one_ros\dynamixel_sdk\CMakeFiles\dynamixel_sdk.dir\ /FS -c C:\catkin_ws\src\niryo_one_ros\dynamixel_sdk\src\port_handler_linux.cpp
Note: including file: C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\stdio.h
Note: including file: C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\corecrt.h
Note: including file: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\include\vcruntime.h
Note: including file: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\include\sal.h
Note: including file: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\include\concurrencysal.h
Note: including file: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\include\vadefs.h
Note: including file: C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\corecrt_wstdio.h
Note: including file: C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\corecrt_stdio_config.h
Note: including file: C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\fcntl.h
Note: including file: C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\string.h
Note: including file: C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\corecrt_memory.h
Note: including file: C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\corecrt_memcpy_s.h
Note: including file: C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\errno.h
Note: including file: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\include\vcruntime_string.h
Note: including file: C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\corecrt_wstring.h
C:\catkin_ws\src\niryo_one_ros\dynamixel_sdk\src\port_handler_linux.cpp(45): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
[56/536] Building CXX object niryo_one_ros\mcp_can_rpi\CMakeFiles\mcp_can_rpi.dir\src\mcp_can_rpi.cpp.obj
FAILED: niryo_one_ros/mcp_can_rpi/CMakeFiles/mcp_can_rpi.dir/src/mcp_can_rpi.cpp.obj
C:\PROGRA~2\MICROS~3\2019\BUILDT~1\VC\Tools\MSVC\1428~1.299\bin\Hostx64\x64\cl.exe /nologo /TP -DNOMINMAX -DROSCONSOLE_BACKEND_LOG4CXX -DROS_BUILD_SHARED_LIBS=1 -DROS_PACKAGE_NAME=\"mcp_can_rpi\" -DWIN32_LEAN_AND_MEAN -D_USE_MATH_DEFINES -Dmcp_can_rpi_EXPORTS -IC:\catkin_ws\src\niryo_one_ros\mcp_can_rpi\include -IC:\opt\ros\noetic\x64\include -IC:\opt\ros\noetic\x64\share\xmlrpcpp\cmake\..\..\..\include\xmlrpcpp /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MD /Zi /O2 /Ob1 /DNDEBUG /D _VARIADIC_MAX=10 /Zc:__cplusplus -std=c++11 /showIncludes /Foniryo_one_ros\mcp_can_rpi\CMakeFiles\mcp_can_rpi.dir\src\mcp_can_rpi.cpp.obj /Fdniryo_one_ros\mcp_can_rpi\CMakeFiles\mcp_can_rpi.dir\ /FS -c C:\catkin_ws\src\niryo_one_ros\mcp_can_rpi\src\mcp_can_rpi.cpp
cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
Note: including file: C:\catkin_ws\src\niryo_one_ros\mcp_can_rpi\include\mcp_can_rpi/mcp_can_rpi.h
Note: including file: C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\stdio.h
Note: including file: C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\corecrt.h
Note: including file: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\include\vcruntime.h
Note: including file: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\include\sal.h
Note: including file: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\include\concurrencysal.h
Note: including file: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\include\vadefs.h
Note: including file: C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\corecrt_wstdio.h
Note: including file: C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\corecrt_stdio_config.h
Note: including file: C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\time.h
Note: including file: C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\corecrt_wtime.h
Note: including file: C:\catkin_ws\src\niryo_one_ros\mcp_can_rpi\include\mcp_can_rpi/mcp_can_dfs_rpi.h
Note: including file: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\include\stdint.h
C:\catkin_ws\src\niryo_one_ros\mcp_can_rpi\src\mcp_can_rpi.cpp(123): error C4576: a parenthesized type followed by an initializer list is a non-standard explicit type conversion syntax
C:\catkin_ws\src\niryo_one_ros\mcp_can_rpi\src\mcp_can_rpi.cpp(123): error C3861: 'nanosleep': identifier not found
C:\catkin_ws\src\niryo_one_ros\mcp_can_rpi\src\mcp_can_rpi.cpp(150): error C2131: expression did not evaluate to a constant
C:\catkin_ws\src\niryo_one_ros\mcp_can_rpi\src\mcp_can_rpi.cpp(150): note: failure was caused by a read of a variable outside its lifetime
C:\catkin_ws\src\niryo_one_ros\mcp_can_rpi\src\mcp_can_rpi.cpp(150): note: see usage of 'buf_size'
C:\catkin_ws\src\niryo_one_ros\mcp_can_rpi\src\mcp_can_rpi.cpp(151): error C3863: array type 'unsigned char [buf_size]' is not assignable
C:\catkin_ws\src\niryo_one_ros\mcp_can_rpi\src\mcp_can_rpi.cpp(152): error C3863: array type 'unsigned char [buf_size]' is not assignable
C:\catkin_ws\src\niryo_one_ros\mcp_can_rpi\src\mcp_can_rpi.cpp(181): error C2131: expression did not evaluate to a constant
C:\catkin_ws\src\niryo_one_ros\mcp_can_rpi\src\mcp_can_rpi.cpp(181): note: failure was caused by a read of a variable outside its lifetime
C:\catkin_ws\src\niryo_one_ros\mcp_can_rpi\src\mcp_can_rpi.cpp(181): note: see usage of 'buf_size'
C:\catkin_ws\src\niryo_one_ros\mcp_can_rpi\src\mcp_can_rpi.cpp(182): error C3863: array type 'unsigned char [buf_size]' is not assignable
C:\catkin_ws\src\niryo_one_ros\mcp_can_rpi\src\mcp_can_rpi.cpp(183): error C3863: array type 'unsigned char [buf_size]' is not assignable
C:\catkin_ws\src\niryo_one_ros\mcp_can_rpi\src\mcp_can_rpi.cpp(185): error C3863: array type 'unsigned char [buf_size]' is not assignable
[66/536] cmd.exe /C "cd /D C:\catkin_ws\build\niryo_one_ros\niryo_one_msgs &&...niryo_one_msgs C:/catkin_ws/src/niryo_one_ros/niryo_one_msgs/srv/SetInt.srv "
ninja: build stopped: subcommand failed.
Invoking "ninja -j12 -l12" failed```
The text was updated successfully, but these errors were encountered:
Hi,
I ran catkin_make in Windows 10, ROS noetic, Visual Studio 2019 environment, encountered the following error.
I don't want to run hardware, I just want to use it for simulation, is there any workaround?
Thank you,
The text was updated successfully, but these errors were encountered: