Download

UnrealAR Package for Android fails

So this seems to be a common issue, as another user also had this problem:

https://answers.unrealengine.com/questions/413894/how-can-i-deploy-app-from-plugin-artoolkit-for-ue4.html

Here’s the output from my attempt on UE4.13-release:

2> Performing 3 actions (4 in parallel)
2> [1/3] clang++.exe Module.ARToolkitPlugin.cpp [armv7-es2]
2> In file included from F:/UnrealEngine-4.13.0-release/Sept4th/Plugins/ARToolkitPlugin/Intermediate/Build/Android/Sept4th/Development/ARToolkitPlugin/Module.ARToolkitPlugin.cpp:3:
2>F:\UnrealEngine-4.13.0-release\Sept4th\Plugins\ARToolkitPlugin\Source\ARToolkitPlugin\Private\ARToolkitDevice.cpp(164,38): error : no member named ‘Buffer’ in ‘FJavaWrapper’
2> gARTImage = (ARUint8*)FJavaWrapper::Buffer; //for AR Toolkit
2> ^
2>F:\UnrealEngine-4.13.0-release\Sept4th\Plugins\ARToolkitPlugin\Source\ARToolkitPlugin\Private\ARToolkitDevice.cpp(198,20): error : no member named ‘newFrame’ in ‘FJavaWrapper’
2> if (FJavaWrapper::newFrame == false) return; //Do not update the texture if no new frame is available
2> ^
2>F:\UnrealEngine-4.13.0-release\Sept4th\Plugins\ARToolkitPlugin\Source\ARToolkitPlugin\Private\ARToolkitDevice.cpp(202,15): error : no member named ‘FrameWidth’ in ‘FJavaWrapper’; did you mean simply ‘FrameWidth’?
2> int width = FJavaWrapper::FrameWidth;
2> ^
~
2> FrameWidth
2> F:\UnrealEngine-4.13.0-release\Sept4th\Plugins\ARToolkitPlugin\Source\ARToolkitPlugin\Private\ARToolkitDevice.cpp(38,12) : note: ‘FrameWidth’ declared here
2> extern int FrameWidth;
2> ^
2>F:\UnrealEngine-4.13.0-release\Sept4th\Plugins\ARToolkitPlugin\Source\ARToolkitPlugin\Private\ARToolkitDevice.cpp(203,16): error : no member named ‘FrameHeight’ in ‘FJavaWrapper’; did you mean simply ‘FrameHeight’?
2> int height = FJavaWrapper::FrameHeight;
2> ^
~~~~~~~~~~~~~~~~~~
2> FrameHeight
2> F:\UnrealEngine-4.13.0-release\Sept4th\Plugins\ARToolkitPlugin\Source\ARToolkitPlugin\Private\ARToolkitDevice.cpp(39,12) : note: ‘FrameHeight’ declared here
2> extern int FrameHeight;
2> ^
2>F:\UnrealEngine-4.13.0-release\Sept4th\Plugins\ARToolkitPlugin\Source\ARToolkitPlugin\Private\ARToolkitDevice.cpp(204,41): error : no member named ‘Buffer’ in ‘FJavaWrapper’
2> char* yuv420sp = (char*)FJavaWrapper::Buffer;
2> ^
2>F:\UnrealEngine-4.13.0-release\Sept4th\Plugins\ARToolkitPlugin\Source\ARToolkitPlugin\Private\ARToolkitDevice.cpp(207,22): error : no member named ‘Buffer’ in ‘FJavaWrapper’
2> if (!FJavaWrapper::Buffer) return;
2> ^
2>F:\UnrealEngine-4.13.0-release\Sept4th\Plugins\ARToolkitPlugin\Source\ARToolkitPlugin\Private\ARToolkitDevice.cpp(262,17): error : no member named ‘newFrame’ in ‘FJavaWrapper’
2> FJavaWrapper::newFrame = false; //Frame processed waiting for a new one
2> ^
2>F:\UnrealEngine-4.13.0-release\Sept4th\Plugins\ARToolkitPlugin\Source\ARToolkitPlugin\Private\ARToolkitDevice.cpp(358,74): warning : declaration shadows a field of ‘FARToolkitDevice’ -Wshadow]
2> bool FARToolkitDevice::Init(bool showPIN, int devNum, EDeviceOrientation deviceOrientation, EArPatternDetectionMode detectionMode, int32&WebcamResX, int32&WebcamResY, bool&fr){
2> ^
2> …/…/Sept4th/Plugins/ARToolkitPlugin/Source/ARToolkitPlugin/Public\ARToolkitDevice.h(152,23) : note: previous declaration is here
2> EDeviceOrientation deviceOrientation;
2> ^
2> In file included from F:/UnrealEngine-4.13.0-release/Sept4th/Plugins/ARToolkitPlugin/Intermediate/Build/Android/Sept4th/Development/ARToolkitPlugin/Module.ARToolkitPlugin.cpp:3:
2>F:\UnrealEngine-4.13.0-release\Sept4th\Plugins\ARToolkitPlugin\Source\ARToolkitPlugin\Private\ARToolkitDevice.cpp(432,46): error : no member named ‘FrameWidth’ in ‘FJavaWrapper’; did you mean simply ‘FrameWidth’?
2> WebcamTexture = UTexture2D::CreateTransient(FJavaWrapper::FrameWidth, FJavaWrapper::FrameHeight);
2> ^
~
2> FrameWidth
2> F:\UnrealEngine-4.13.0-release\Sept4th\Plugins\ARToolkitPlugin\Source\ARToolkitPlugin\Private\ARToolkitDevice.cpp(38,12) : note: ‘FrameWidth’ declared here
2> extern int FrameWidth;
2> ^
2>F:\UnrealEngine-4.13.0-release\Sept4th\Plugins\ARToolkitPlugin\Source\ARToolkitPlugin\Private\ARToolkitDevice.cpp(432,72): error : no member named ‘FrameHeight’ in ‘FJavaWrapper’; did you mean simply ‘FrameHeight’?
2> WebcamTexture = UTexture2D::CreateTransient(FJavaWrapper::FrameWidth, FJavaWrapper::FrameHeight);
2> ^
~~~~
2> FrameHeight
2> F:\UnrealEngine-4.13.0-release\Sept4th\Plugins\ARToolkitPlugin\Source\ARToolkitPlugin\Private\ARToolkitDevice.cpp(39,12) : note: ‘FrameHeight’ declared here
2> extern int FrameHeight;
2> ^
2>F:\UnrealEngine-4.13.0-release\Sept4th\Plugins\ARToolkitPlugin\Source\ARToolkitPlugin\Private\ARToolkitDevice.cpp(435,15): error : no member named ‘FrameWidth’ in ‘FJavaWrapper’; did you mean simply ‘FrameWidth’?
2> WebcamResX = FJavaWrapper::FrameWidth;
2> ^~~~~~~~~~~~~~~~~~~~~~~~
2> FrameWidth
2> F:\UnrealEngine-4.13.0-release\Sept4th\Plugins\ARToolkitPlugin\Source\ARToolkitPlugin\Private\ARToolkitDevice.cpp(38,12) : note: ‘FrameWidth’ declared here
2> extern int FrameWidth;
2> ^
2>F:\UnrealEngine-4.13.0-release\Sept4th\Plugins\ARToolkitPlugin\Source\ARToolkitPlugin\Private\ARToolkitDevice.cpp(436,15): error : no member named ‘FrameHeight’ in ‘FJavaWrapper’; did you mean simply ‘FrameHeight’?
2> WebcamResY = FJavaWrapper::FrameHeight;
2> ^~~~~~~~~~~~~~~~~~~~~~~~~
2> FrameHeight
2> F:\UnrealEngine-4.13.0-release\Sept4th\Plugins\ARToolkitPlugin\Source\ARToolkitPlugin\Private\ARToolkitDevice.cpp(39,12) : note: ‘FrameHeight’ declared here
2> extern int FrameHeight;
2> ^
2>F:\UnrealEngine-4.13.0-release\Sept4th\Plugins\ARToolkitPlugin\Source\ARToolkitPlugin\Private\ARToolkitDevice.cpp(439,10): error : no member named ‘FrameWidth’ in ‘FJavaWrapper’; did you mean simply ‘FrameWidth’?
2> xsize = FJavaWrapper::FrameWidth;
2> ^~~~~~~~~~~~~~~~~~~~~~~~
2> FrameWidth
2> F:\UnrealEngine-4.13.0-release\Sept4th\Plugins\ARToolkitPlugin\Source\ARToolkitPlugin\Private\ARToolkitDevice.cpp(38,12) : note: ‘FrameWidth’ declared here
2> extern int FrameWidth;
2> ^
2>F:\UnrealEngine-4.13.0-release\Sept4th\Plugins\ARToolkitPlugin\Source\ARToolkitPlugin\Private\ARToolkitDevice.cpp(440,10): error : no member named ‘FrameHeight’ in ‘FJavaWrapper’; did you mean simply ‘FrameHeight’?
2> ysize = FJavaWrapper::FrameHeight;
2> ^~~~~~~~~~~~~~~~~~~~~~~~~
2> FrameHeight
2> F:\UnrealEngine-4.13.0-release\Sept4th\Plugins\ARToolkitPlugin\Source\ARToolkitPlugin\Private\ARToolkitDevice.cpp(39,12) : note: ‘FrameHeight’ declared here
2> extern int FrameHeight;
2> ^
2> 1 warning and 13 errors generated.
2>ERROR : UBT error : Failed to produce item: F:\UnrealEngine-4.13.0-release\Sept4th\Plugins\ARToolkitPlugin\Binaries\Android\Sept4th-ARToolkitPlugin-armv7-es2.a
2> Total build time: 19.17 seconds
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(41,5): error MSB3075: The command “F:\UnrealEngine-4.13.0-release\Engine\Build\BatchFiles\Build.bat Sept4th Android Development “F:\UnrealEngine-4.13.0-release\Sept4th\Sept4th.uproject” -waitmutex” exited with code 5. Please verify that you have sufficient rights to run this command.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 1 skipped ==========

If anyone can help with this it would be much appreciated.

This looks like the plugin author modifed engine (FJavaWrapper in AndroidJNI.h) to make the plugin work and you haven’t applied the same changes and rebuilt the engine. The plugin should be redone to remove dependency on modifying the engine.