Open TGW795 opened 1 year ago
Hi.
When I was trying to build ros2cs, I got the following error.
C:\dev\ros2cs>powershell -ExecutionPolicy Bypass ./build.ps1 Build started. Starting >>> rosidl_default_runtime Starting >>> dotnet_cmake_module Starting >>> ament_cmake_export_assemblies Starting >>> test_interface_files Not searching for unused variables given on the command line. -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22631. Not searching for unused variables given on the command line. -- Found ament_cmake: 1.3.6 (C:/humble/install/share/ament_cmake/cmake) Not searching for unused variables given on the command line. -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22631. -- Found ament_cmake_core: 1.3.6 (C:/humble/install/share/ament_cmake_core/cmake) -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22631. -- Found ament_cmake: 1.3.6 (C:/humble/install/share/ament_cmake/cmake) Not searching for unused variables given on the command line. -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22631. -- Found ament_cmake_core: 1.3.6 (C:/humble/install/share/ament_cmake_core/cmake) -- Configuring done (0.5s) -- Configuring done (0.5s) -- Generating done (0.1s) -- Configuring done (0.5s) -- Build files have been written to: C:/dev/ros2cs/build/ament_cmake_export_assemblies -- Generating done (0.1s) -- Build files have been written to: C:/dev/ros2cs/build/dotnet_cmake_module -- Generating done (0.1s) -- Build files have been written to: C:/dev/ros2cs/build/rosidl_default_runtime -- Configuring done (0.5s) -- Generating done (0.1s) .NET Framework ���� Microsoft (R) Build Engine �o�[�W���� 16.11.2+f32259642 Copyright (C) Microsoft Corporation.All rights reserved. -- Build files have been written to: C:/dev/ros2cs/build/test_interface_files .NET Framework ���� Microsoft (R) Build Engine �o�[�W���� 16.11.2+f32259642 Copyright (C) Microsoft Corporation.All rights reserved. .NET Framework ���� Microsoft (R) Build Engine �o�[�W���� 16.11.2+f32259642 Copyright (C) Microsoft Corporation.All rights reserved. .NET Framework ���� Microsoft (R) Build Engine �o�[�W���� 16.11.2+f32259642 Copyright (C) Microsoft Corporation.All rights reserved. -- Up-to-date: C:/dev/ros2cs/install/share/ament_index/resource_index/package_run_dependencies/ament_cmake_export_assemblies -- Up-to-date: C:/dev/ros2cs/install/share/ament_index/resource_index/parent_prefix_path/ament_cmake_export_assemblies -- Up-to-date: C:/dev/ros2cs/install/share/ament_cmake_export_assemblies/environment/ament_prefix_path.bat -- Installing: C:/dev/ros2cs/install/share/ament_cmake_export_assemblies/environment/ament_prefix_path.dsv -- Up-to-date: C:/dev/ros2cs/install/share/ament_cmake_export_assemblies/environment/path.bat -- Installing: C:/dev/ros2cs/install/share/ament_cmake_export_assemblies/environment/path.dsv -- Up-to-date: C:/dev/ros2cs/install/share/ament_index/resource_index/package_run_dependencies/dotnet_cmake_module -- Up-to-date: C:/dev/ros2cs/install/share/ament_index/resource_index/parent_prefix_path/dotnet_cmake_module -- Up-to-date: C:/dev/ros2cs/install/share/ament_cmake_export_assemblies/local_setup.bat -- Up-to-date: C:/dev/ros2cs/install/share/dotnet_cmake_module/environment/ament_prefix_path.bat -- Installing: C:/dev/ros2cs/install/share/ament_cmake_export_assemblies/local_setup.dsv -- Installing: C:/dev/ros2cs/install/share/dotnet_cmake_module/environment/ament_prefix_path.dsv -- Up-to-date: C:/dev/ros2cs/install/share/dotnet_cmake_module/environment/path.bat -- Installing: C:/dev/ros2cs/install/share/dotnet_cmake_module/environment/path.dsv -- Installing: C:/dev/ros2cs/install/share/ament_cmake_export_assemblies/package.dsv -- Up-to-date: C:/dev/ros2cs/install/share/dotnet_cmake_module/local_setup.bat -- Up-to-date: C:/dev/ros2cs/install/share/ament_index/resource_index/packages/ament_cmake_export_assemblies -- Up-to-date: C:/dev/ros2cs/install/share/ament_cmake_export_assemblies/cmake/ament_cmake_export_assemblies-extras.cmake -- Installing: C:/dev/ros2cs/install/share/dotnet_cmake_module/local_setup.dsv -- Up-to-date: C:/dev/ros2cs/install/share/ament_cmake_export_assemblies/cmake/ament_cmake_export_assembliesConfig.cmake -- Up-to-date: C:/dev/ros2cs/install/share/ament_cmake_export_assemblies/cmake/ament_cmake_export_assembliesConfig-version.cmake -- Up-to-date: C:/dev/ros2cs/install/share/ament_cmake_export_assemblies/package.xml -- Up-to-date: C:/dev/ros2cs/install/share/ament_cmake_export_assemblies/cmake -- Up-to-date: C:/dev/ros2cs/install/share/ament_cmake_export_assemblies/cmake/ament_cmake_export_assemblies-extras.cmake.in -- Up-to-date: C:/dev/ros2cs/install/share/ament_cmake_export_assemblies/cmake/ament_cmake_export_assemblies_package_hook.cmake -- Up-to-date: C:/dev/ros2cs/install/share/ament_cmake_export_assemblies/cmake/ament_export_assemblies.cmake -- Installing: C:/dev/ros2cs/install/share/dotnet_cmake_module/package.dsv Finished <<< ament_cmake_export_assemblies [2.50s] -- Up-to-date: C:/dev/ros2cs/install/share/ament_index/resource_index/packages/dotnet_cmake_module -- Up-to-date: C:/dev/ros2cs/install/share/dotnet_cmake_module/cmake/dotnet_cmake_module-extras.cmake -- Up-to-date: C:/dev/ros2cs/install/share/dotnet_cmake_module/cmake/dotnet_cmake_moduleConfig.cmake -- Up-to-date: C:/dev/ros2cs/install/share/dotnet_cmake_module/cmake/dotnet_cmake_moduleConfig-version.cmake -- Up-to-date: C:/dev/ros2cs/install/share/dotnet_cmake_module/package.xml -- Up-to-date: C:/dev/ros2cs/install/share/dotnet_cmake_module/cmake -- Up-to-date: C:/dev/ros2cs/install/share/dotnet_cmake_module/cmake/ConfigureFile.cmake -- Up-to-date: C:/dev/ros2cs/install/share/dotnet_cmake_module/cmake/Modules -- Up-to-date: C:/dev/ros2cs/install/share/dotnet_cmake_module/cmake/Modules/dotnet -- Up-to-date: C:/dev/ros2cs/install/share/dotnet_cmake_module/cmake/Modules/dotnet/Directory.Build.props.in -- Up-to-date: C:/dev/ros2cs/install/share/dotnet_cmake_module/cmake/Modules/dotnet/dotnetcore.csproj.in -- Up-to-date: C:/dev/ros2cs/install/share/dotnet_cmake_module/cmake/Modules/dotnet/entry_point.unix.in -- Up-to-date: C:/dev/ros2cs/install/share/dotnet_cmake_module/cmake/Modules/dotnet/entry_point.windows.in -- Up-to-date: C:/dev/ros2cs/install/share/dotnet_cmake_module/cmake/Modules/dotnet/FindDotNetCore.cmake -- Up-to-date: C:/dev/ros2cs/install/share/dotnet_cmake_module/cmake/Modules/dotnet/FindMono.cmake -- Up-to-date: C:/dev/ros2cs/install/share/dotnet_cmake_module/cmake/Modules/dotnet/msbuild.csproj.in -- Up-to-date: C:/dev/ros2cs/install/share/dotnet_cmake_module/cmake/Modules/dotnet/packages.config.in -- Up-to-date: C:/dev/ros2cs/install/share/dotnet_cmake_module/cmake/Modules/dotnet/UseCSharpProjectBuilder.cmake -- Up-to-date: C:/dev/ros2cs/install/share/dotnet_cmake_module/cmake/Modules/FindCSBuild.cmake -- Up-to-date: C:/dev/ros2cs/install/share/dotnet_cmake_module/cmake/Modules/FindDotNETExtra.cmake -- Up-to-date: C:/dev/ros2cs/install/share/ament_index/resource_index/package_run_dependencies/rosidl_default_runtime -- Up-to-date: C:/dev/ros2cs/install/share/ament_index/resource_index/parent_prefix_path/rosidl_default_runtime -- Up-to-date: C:/dev/ros2cs/install/share/rosidl_default_runtime/environment/ament_prefix_path.bat -- Installing: C:/dev/ros2cs/install/share/rosidl_default_runtime/environment/ament_prefix_path.dsv -- Up-to-date: C:/dev/ros2cs/install/share/rosidl_default_runtime/environment/path.bat -- Installing: C:/dev/ros2cs/install/share/rosidl_default_runtime/environment/path.dsv -- Up-to-date: C:/dev/ros2cs/install/share/rosidl_default_runtime/local_setup.bat -- Installing: C:/dev/ros2cs/install/share/rosidl_default_runtime/local_setup.dsv -- Installing: C:/dev/ros2cs/install/share/rosidl_default_runtime/package.dsv -- Up-to-date: C:/dev/ros2cs/install/share/ament_index/resource_index/packages/rosidl_default_runtime -- Up-to-date: C:/dev/ros2cs/install/share/rosidl_default_runtime/cmake/rosidl_default_runtime-extras.cmake -- Up-to-date: C:/dev/ros2cs/install/share/rosidl_default_runtime/cmake/rosidl_default_runtimeConfig.cmake -- Up-to-date: C:/dev/ros2cs/install/share/rosidl_default_runtime/cmake/rosidl_default_runtimeConfig-version.cmake -- Up-to-date: C:/dev/ros2cs/install/share/rosidl_default_runtime/package.xml Finished <<< dotnet_cmake_module [3.38s] Finished <<< rosidl_default_runtime [4.17s] Starting >>> ros2cs_common -- Up-to-date: C:/dev/ros2cs/install/share/test_interface_files/msg/Arrays.msg -- Up-to-date: C:/dev/ros2cs/install/share/test_interface_files/msg/BasicTypes.msg -- Up-to-date: C:/dev/ros2cs/install/share/test_interface_files/msg/BoundedPlainSequences.msg -- Up-to-date: C:/dev/ros2cs/install/share/test_interface_files/msg/BoundedSequences.msg -- Up-to-date: C:/dev/ros2cs/install/share/test_interface_files/msg/Constants.msg -- Up-to-date: C:/dev/ros2cs/install/share/test_interface_files/msg/Defaults.msg -- Up-to-date: C:/dev/ros2cs/install/share/test_interface_files/msg/Empty.msg -- Up-to-date: C:/dev/ros2cs/install/share/test_interface_files/msg/MultiNested.msg -- Up-to-date: C:/dev/ros2cs/install/share/test_interface_files/msg/Nested.msg -- Up-to-date: C:/dev/ros2cs/install/share/test_interface_files/msg/Strings.msg -- Up-to-date: C:/dev/ros2cs/install/share/test_interface_files/msg/UnboundedSequences.msg -- Up-to-date: C:/dev/ros2cs/install/share/test_interface_files/msg/WStrings.msg -- Up-to-date: C:/dev/ros2cs/install/share/test_interface_files/srv/Arrays.srv -- Up-to-date: C:/dev/ros2cs/install/share/test_interface_files/srv/BasicTypes.srv -- Up-to-date: C:/dev/ros2cs/install/share/test_interface_files/srv/Empty.srv -- Up-to-date: C:/dev/ros2cs/install/share/test_interface_files/action/Fibonacci.action -- Up-to-date: C:/dev/ros2cs/install/share/ament_index/resource_index/package_run_dependencies/test_interface_files -- Up-to-date: C:/dev/ros2cs/install/share/ament_index/resource_index/parent_prefix_path/test_interface_files -- Up-to-date: C:/dev/ros2cs/install/share/test_interface_files/environment/ament_prefix_path.bat -- Installing: C:/dev/ros2cs/install/share/test_interface_files/environment/ament_prefix_path.dsv -- Up-to-date: C:/dev/ros2cs/install/share/test_interface_files/environment/path.bat -- Installing: C:/dev/ros2cs/install/share/test_interface_files/environment/path.dsv -- Up-to-date: C:/dev/ros2cs/install/share/test_interface_files/local_setup.bat -- Installing: C:/dev/ros2cs/install/share/test_interface_files/local_setup.dsv -- Installing: C:/dev/ros2cs/install/share/test_interface_files/package.dsv -- Up-to-date: C:/dev/ros2cs/install/share/ament_index/resource_index/packages/test_interface_files -- Up-to-date: C:/dev/ros2cs/install/share/test_interface_files/cmake/test_interface_files-extras.cmake -- Up-to-date: C:/dev/ros2cs/install/share/test_interface_files/cmake/test_interface_filesConfig.cmake -- Up-to-date: C:/dev/ros2cs/install/share/test_interface_files/cmake/test_interface_filesConfig-version.cmake -- Up-to-date: C:/dev/ros2cs/install/share/test_interface_files/package.xml Finished <<< test_interface_files [3.98s] Not searching for unused variables given on the command line. -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22631. -- Found ament_cmake: 1.3.6 (C:/humble/install/share/ament_cmake/cmake) -- Found ament_cmake_export_assemblies: 0.0.0 (C:/dev/ros2cs/install/share/ament_cmake_export_assemblies/cmake) -- Found dotnet_cmake_module: 0.0.0 (C:/dev/ros2cs/install/share/dotnet_cmake_module/cmake) CMake Error at C:/Program Files/CMake/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find DotNetCore (missing: DotNetCore_EXECUTABLE) Call Stack (most recent call first): C:/Program Files/CMake/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE) C:/dev/ros2cs/install/share/dotnet_cmake_module/cmake/Modules/dotnet/FindDotNetCore.cmake:36 (find_package_handle_standard_args) C:/dev/ros2cs/install/share/dotnet_cmake_module/cmake/Modules/FindCSBuild.cmake:15 (find_package) C:/dev/ros2cs/install/share/dotnet_cmake_module/cmake/Modules/FindDotNETExtra.cmake:16 (find_package) CMakeLists.txt:26 (find_package) -- Configuring incomplete, errors occurred! --- stderr: ros2cs_common CMake Error at C:/Program Files/CMake/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find DotNetCore (missing: DotNetCore_EXECUTABLE) Call Stack (most recent call first): C:/Program Files/CMake/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE) C:/dev/ros2cs/install/share/dotnet_cmake_module/cmake/Modules/dotnet/FindDotNetCore.cmake:36 (find_package_handle_standard_args) C:/dev/ros2cs/install/share/dotnet_cmake_module/cmake/Modules/FindCSBuild.cmake:15 (find_package) C:/dev/ros2cs/install/share/dotnet_cmake_module/cmake/Modules/FindDotNETExtra.cmake:16 (find_package) CMakeLists.txt:26 (find_package) --- Failed <<< ros2cs_common [1.67s, exited with code 1] Summary: 4 packages finished [9.75s] 1 package failed: ros2cs_common 1 package had stderr output: ros2cs_common 43 packages not processed WNDPROC return value cannot be converted to LRESULT TypeError: WPARAM is simple, so must be an int object (got NoneType)
I'd be happy to know what to do next.
Thank you.
Iam not sure why this happens but could you make sure you followed the build instructions and installed .Net 6 (not to be confused with .Net Framework)?
Hi.
When I was trying to build ros2cs, I got the following error.
I'd be happy to know what to do next.
Thank you.