JetBrains / UnrealLink

Apache License 2.0
130 stars 24 forks source link

error C4668: 'ENGINE_MAJOR_VERSION' is not defined as a preprocessor macro #264

Open TheCodingRook opened 1 year ago

TheCodingRook commented 1 year ago

When I open the source for a UE5 project now with Rider, I'm asked to install the plugin again and I choose to do it 'In Game'. But the build fails with the message:

error C4668: 'ENGINE_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'

Apparently this happens in AppData\Local\Temp\UnrealLink\Jemetiv\HostProject\Plugins\RiderLink\Source\RiderBlueprint\Private\BlueprintProvider.cpp(10) as per the logs that get produced when building.

DecoyRS commented 1 year ago

Hello @TheCodingRook What version of UE are you using? and is it from Epic Games Launcher or is it built from source?

TheCodingRook commented 1 year ago

Hi there. I have been using 5.2 (and just lately also 5.2.1). This is from the Epic Launcher version.

From: Alexander @.> Sent: 10 July 2023 13:37 To: JetBrains/UnrealLink @.> Cc: TheCodingRook @.>; Mention @.> Subject: Re: [JetBrains/UnrealLink] error C4668: 'ENGINE_MAJOR_VERSION' is not defined as a preprocessor macro (Issue #264)

Hello @TheCodingRook https://github.com/TheCodingRook What version of UE are you using? and is it from Epic Games Launcher or is it built from source?

— Reply to this email directly, view it on GitHub https://github.com/JetBrains/UnrealLink/issues/264#issuecomment-1628872577 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AN73T6WZ2PB6R5NQYV5JSZLXPPZPDANCNFSM6AAAAAA2C67SYE . You are receiving this because you were mentioned.Message ID: @.***>

TheCodingRook commented 1 year ago

Bump.

Any more thoughts on this please?

DecoyRS commented 1 year ago

oh, my bad, your feedback got lost in the avalanche of emails :( Say, can you try one thing - Use action "Extract RiderLink in Game" ("Shift, Shift" then type Extract) and check if Rider shows any errors in BlueprintProvider.cpp? If it shows that the ENGINE_MAJOR_VERSION is missing, try "Alt + Enter" on it and add missing includes (if this will be available).

TheCodingRook commented 1 year ago

No worries! I do not have access at the moment to the computer where this problem appeared, but I think I will be able to use it again in a week or so. I will try and keep you posted. The main system that I use Rider on with my license does not have this problem actually.

So not sure what I have done (or perhaps not done) in the secondary PC I tried this on.

Anyway, I will be in touch again.

From: Alexander @.> Sent: 27 July 2023 15:57 To: JetBrains/UnrealLink @.> Cc: TheCodingRook @.>; Mention @.> Subject: Re: [JetBrains/UnrealLink] error C4668: 'ENGINE_MAJOR_VERSION' is not defined as a preprocessor macro (Issue #264)

oh, my bad, your feedback got lost in the avalanche of emails :( Say, can you try one thing - Use action "Extract RiderLink in Game" ("Shift, Shift" then type Extract) and check if Rider shows any errors in BlueprintProvider.cpp? If it shows that the ENGINE_MAJOR_VERSION is missing, try "Alt + Enter" on it and add missing includes (if this will be available).

— Reply to this email directly, view it on GitHub https://github.com/JetBrains/UnrealLink/issues/264#issuecomment-1653791791 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AN73T6UCTHBJSHURKPATGPDXSJ6UNANCNFSM6AAAAAA2C67SYE . You are receiving this because you were mentioned.Message ID: @.***>