JetBrains / UnrealLink

Apache License 2.0
132 stars 23 forks source link

Cannot build RiderLink in UE 4.19 #136

Closed vocasle closed 3 years ago

vocasle commented 3 years ago

11:41 Unreal Engine 4.23.0+ is required UnrealLink supports Unreal Engine versions starting with 4.23.0 WARNING: Advanced users only You can manually download the latest version of plugin and build It for your version of Unreal Editor Download latest Unreal Editor plugin

Hello, as per warning suggestion I have tried to build UnrealLink from source.

I have successfully executed following commands: gradlew buildResharperHost gradlew symlinkPluginToUnrealProject.

After that I have regenerated project files via GenerateProjectFiles.bat and tried to build the game, but I have got an error from UBT:

  The first include statement in source file 'R:\<ProjectName>\<ProjectName>\Plugins\Developer\RiderLink\Source\RD\src\rd_framework_cpp\src\main\protocol\Buffer.cpp' is trying to include the file 'utility' as the precompiled header, but that file could not be located in any of the module's include search paths.

Could you please provide any suggestions on how to build RiderLink with UE 4.19?

vocasle commented 3 years ago

@DecoyRS may be you could suggest something? Or the only option is to upgrade Engine to 4.23?

DecoyRS commented 3 years ago

Hello @vocasle I'd say the easiet way would be to take RiderLink.zip from your "Rider for Unreal Engine" installation folder, unzip it in %GameFolder%/Plugins/RiderLink and try to build the game, fixing any issues that come up from that point.

DecoyRS commented 3 years ago

In general, Rider for Unreal Engine works best with the newer versions of UE due to changes in UnrealBuildTool

vocasle commented 3 years ago

@DecoyRS, understood, thanks. I have tried what you suggested, but the error is the same. And this is expected because hardlink to RiderLink and contents of RiderLink.zip are quite the same.

To fix those errors I need to hack UBT, because in UE 4.19 UBT does not have an option to disable precompiled headers for plugins. That is why I have created this issue in hope that developers could provide some info on how to use RiderLink in UE 4.19.

DecoyRS commented 3 years ago

So the official stance would be "yes, you need to update to UE 4.23", but as a workaround, you can try to add an empty file and set it as your PCH in RD.Build.cs

vocasle commented 3 years ago

Okay, got it, thanks.

kiferdon commented 2 years ago

@vocasle Did you manage to build RiderLink eventually? I added empty PCH file, but have another error: RiderGameControlExtension.cpp(20): [C1083] Cannot open include file: 'UnrealEd/Public/Editor.h': No such file or directory

vocasle commented 2 years ago

@kiferdon No, I have tried what DecoyRS suggested, but some new errors arose and I have stopped using Resharper after that)