x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Getting build error in my engine plugin while building in UE4 editor while packaging the project

I've implemented one engine plugin and using it in VR template project. I've build UE4.15 code using visual studio 2015. I'm able to build my plugin using visual studio and run this in ue4 editor. But I could not able to package it as it gives compilation error, error log it attached here. pls help me to solve this issue.

UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: C:\Users\rbhagwat\UnrealEngine4\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter.h(56): error C2039: '_InterlockedIncrement': is not a member of 'FWindowsPlatformAtomics' UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: C:\Users\rbhagwat\UnrealEngine4\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformAtomics.h(14): note: see declaration of 'FWindowsPlatformAtomics' UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: C:\Users\rbhagwat\UnrealEngine4\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter.h(56): error C2665: 'InterlockedIncrement': none of the 4 overloads could convert all the argument types UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8844): note: could be 'unsigned _int64 InterlockedIncrement(volatile unsigned _int64 )' UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8833): note: or 'unsigned long _InterlockedIncrement(volatile unsigned long )' UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8824): note: or 'unsigned int _InterlockedIncrement(volatile unsigned int )' UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\intrin.h(259): note: or 'long _InterlockedIncrement(volatile long )' UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: C:\Users\rbhagwat\UnrealEngine4\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter.h(56): note: while trying to match the argument list '(volatile int32 *)' UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: C:\Users\rbhagwat\UnrealEngine4\Engine\Source\Runtime\Core\Public\HAL/ThreadSafeCounter.h(68): error C2039: '_InterlockedAdd': is not a member of 'FWindowsPlatformAtom

Product Version: UE 4.15
Tags:
more ▼

asked Mar 22 '17 at 08:42 AM in Packaging & Deployment

avatar image

Rahul3349
53 4 8 14

avatar image Rahul3349 Mar 22 '17 at 11:46 AM
avatar image Rudy Q ♦♦ STAFF Mar 22 '17 at 06:08 PM

Hello Rahul3349,

After looking over the information provided I have a quick question for you. Could you try compiling the engine using the Development setting and then let me know if you still run into errors?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Above mentioned build errors are resolved by adding below headers in my plugin header file. My plugin is extending UUserWidget, so below headers are required. #include "Runtime/UMG/Public/UMG.h" #include "Runtime/UMG/Public/UMGStyle.h" #include "Runtime/UMG/Public/Slate/SObjectWidget.h" #include "Runtime/UMG/Public/IUMGModule.h" #include "Runtime/UMG/Public/Blueprint/UserWidget.h"

more ▼

answered Mar 23 '17 at 03:34 AM

avatar image

Rahul3349
53 4 8 14

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question