Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 10 #94

Open
hirasawaryo opened this issue Jun 6, 2023 · 12 comments
Open

Windows 10 #94

hirasawaryo opened this issue Jun 6, 2023 · 12 comments
Labels
enhancement New feature or request

Comments

@hirasawaryo
Copy link

Do you have a plan to support windows 10? Unreal Engine 5 has many useful functions (Nanite, Lumen, etc) which are supported only by Windows OS. Currently ROS2 supports windows 10, not windows 11. I hope you to support windows 10.

@yuokamoto
Copy link
Contributor

We want to support windows as well but currently do not have resource to work on that. It requires much more understanding on ROS2 build on windows....

@yuokamoto yuokamoto added the enhancement New feature or request label Jun 7, 2023
@hirasawaryo
Copy link
Author

I see. Please continue to consider supporting windows 10.

@NicoBrug
Copy link

Hi,

I have ported the plugin to Windows. You have to get all the ROS packages in lib/dll and add a specific dll loading process.

Some libraries are not accessible from the ROS binary installation. You have to download the ROS sources and do a manual installation to get the missing packages (really pain in the ass on windows).

@yuokamoto
Copy link
Contributor

Thank you!
Could you share the process/branch if possible? then we can work on adding process to script in this repo https://github.com/rapyuta-robotics/UE_tools
and create branch for Windows.
cc @chalice-graeme

@NicoBrug
Copy link

NicoBrug commented Nov 6, 2023

Hi,
You need to install the ROS dependencies and install it on your Windows system. For this, I recommend the documentation on Humble, which is quite clear. (https://docs.ros.org/en/humble/Installation/Windows-Install-Binary.html and https://github.com/ros2/ros2/releases). I have only tested with the windows debug version.

So you install ROS2 Humble from the binaries without recompiling. However, on Windows, the ROS binaries do not contain RCLC. For that you have to get it on github (https://github.com/ros2/rclc) and recompile it by hand (with cmake command). There is a dependency with rcutils to remember.

You now have all the files you need: take the /include /Bin /Lib files corresponding to your libraries (.so) and put them in the project.

I didn't make a process to do all this automatically, I did it all by hand (but it's not too complicated to script). The compilation process is fairly simple if you have all the environment installed (visual studio 2022, ros dependencies etc).

To load them onto Unreal, the method is pretty much the same as with Linux, you need to :

Include the .h files:

PublicIncludePaths.Add(include);

Add the libs

              foreach (var lib in libsPathList)
                {
                    System.Console.WriteLine(lib);
                    PublicAdditionalLibraries.Add(lib);
                }

Adding dlls

                foreach (var dll in dllsPathList)
                {
                    System.Console.WriteLine(dll);
                    PublicDelayLoadDLLs.Add(dll);
                }

Use RuntimeDependencies if you want them in the package.

Importantly, I didn't test on windows in depth, I just checked the compilation with windows dlls and libs and simply made sure I didn't have any runtime crashes. If you encounter any problems, please contact me. I don't claim to be an expert, but I might have encountered the problem.

@james-yoo
Copy link
Contributor

Plus, ue_msgs package (https://github.com/rapyuta-robotics/UE_msgs) should be compiled.

@yuokamoto
Copy link
Contributor

Thank you!

@phs4530
Copy link
Contributor

phs4530 commented Nov 7, 2023

When building in Windows10, an error occurred due to a uint size issue.
If you want to build on Windows, cherry-pick the commits for the relevant modified code.

@soul667
Copy link

soul667 commented Jan 19, 2024

i think you can try this to install ros2 in windows ,all you need to do is type choco source add -n=ros-win -s="https://aka.ms/ros/public" --priority=1,and wait. and i use humble,so amazing.
https://ms-iot.github.io/ROSOnWindows/GettingStarted/SetupRos2.html

@tryan-phantom
Copy link

Unreal Engine 5 has many useful functions (Nanite, Lumen, etc) which are supported only by Windows OS.

For anyone coming across this, Nanite and Lumen are supported on Linux as well. I am unaware if there are limitations, but I have tested using UE 5.3.2 on Ubuntu 22.04 via Docker.

@james-yoo
Copy link
Contributor

james-yoo commented Mar 16, 2024

For anyone coming across this, Nanite and Lumen are supported on Linux as well. I am unaware if there are limitations, but I have tested using UE 5.3.2 on Ubuntu 22.04 via Docker.

There are powerful plugins only available on Windows that boost rendering performance such as DLSS 3.5 or FSR 3.

@PeteBaker1
Copy link

Hi @NicoBrug, do you have a github repo with what the bare bones unreal engine project should look like once these steps are completed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

8 participants