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"

How to build plugin on Android? Why I got build error.

I have runtime plugin, it build and work fine on macosx, but can't build on android, I just connect device and click launch button to launch game on android device, but got error msg like:

LogPlayLevel: In file included from /../Intermediate/Build/Android/UE4/Development/xxx_unreal/Module.xxx_unreal.cpp:2: LogPlayLevel:
/../Source/xxx_unreal/Private/LuaObject.cpp(10,28): error: use of undeclared identifier 'NewObject' LogPlayLevel:
UObject* obj = NewObject((UObject*)GetTransientPackage(),cls); LogPlayLevel:
^ LogPlayLevel:
/../Source/xxx_unreal/Private/LuaObject.cpp(10,38): error: 'UObject' does not refer to a value LogPlayLevel:
UObject* obj = NewObject((UObject*)GetTransientPackage(),cls); LogPlayLevel:
^ LogPlayLevel:
Runtime/Core/Public/Misc/DateTime.h(11,7): note: declared here LogPlayLevel:
class UObject; LogPlayLevel: ^ LogPlayLevel: In file included from /../Intermediate/Build/Android/UE4/Development/xxx_unreal/Module.xxx_unreal.cpp:2: LogPlayLevel:
/../Source/xxx_unreal/Private/LuaObject.cpp(10,57): error: use of undeclared identifier 'GetTransientPackage' LogPlayLevel:
UObject* obj = NewObject((UObject*)GetTransientPackage(),cls); LogPlayLevel:
^ LogPlayLevel:
/../Source/xxx_unreal/Private/LuaObject.cpp(26,13): error: use of undeclared identifier 'FLogCategoryLogClass'; did you mean 'FLogCategoryLogStats'? LogPlayLevel: UE_LOG(LogClass, Log, TEXT("type of %s don't suppor to push"),tn); LogPlayLevel: ^ LogPlayLevel:
Runtime/Core/Public/Logging/LogMacros.h(155,186): note: expanded from macro 'UE_LOG' LogPlayLevel:
CA_CONSTANT_IF((ELogVerbosity::Verbosity & ELogVerbosity::VerbosityMask) <= ELogVerbosity::COMPILED_IN_MINIMUM_VERBOSITY && (ELogVerbosity::Warning & ELogVerbosity::VerbosityMask) <= FLogCategory##CategoryName::CompileTimeVerbosity) \ LogPlayLevel:
^ LogPlayLevel: space>(133,1): note: expanded from here LogPlayLevel:
FLogCategoryLogClass

I found missing symbols had been included in #include "CoreMinimal.h", why android can't find them? Any setting I should set?

Product Version: UE 4.18
Tags:
more ▼

asked Nov 20 '17 at 08:24 AM in C++ Programming

avatar image

siney
16 1 2

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

1 answer: sort voted first

I had fix this problem, just add some header to cpp like:

include "UObject/UObjectGlobals.h"

include "UObject/Class.h" #include "UObject/UnrealType.h" #include "UObject/Stack.h"

It works for me.

more ▼

answered Nov 21 '17 at 09:19 AM

avatar image

siney
16 1 2

(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