Announcement

Collapse
No announcement yet.

build failed ARCore 1.2 in 4.19

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    It looks like you are compiling using android-19 on the ndk api level. You need to use NDK level android-24 or above for ARCore apps. See the "Setup Android Development settings" section in the quick start guide(https://developers.google.com/ar/dev...eal/quickstart) for details.

    Leave a comment:


  • started a topic build failed ARCore 1.2 in 4.19

    build failed ARCore 1.2 in 4.19

    I wanted to try the HelloARUnreal in Arcore 1.2 but i have an Error when launching to Android Device(Samsung S7).

    I did follow this Guide
    -google-ar-unreal from github
    -run setup.bat
    -generate project files.bat
    -Build UE4 Development for Win64
    -create new blank project

    All theses steps are OK and gives no error but when launching on device i get:

    Code:
    UATHelper: Packaging (Android (ETC2)): Running AutomationTool...
    UATHelper: Packaging (Android (ETC2)): Parsing command line: -ScriptsForProject=C:/Users/i8306/Downloads/arcore-unreal-sdk-master/HelloARUnreal/HelloARUnreal.uproject BuildCookRun -nocompileeditor -nop4 -project=C:/Users/i8306/Downloads/arcore-unreal-sdk-master/HelloARUnreal/HelloARUnreal.uproject -cook -stage -archive -archivedirectory=C:/Users/i8306/Downlo
    ads/arcore-unreal-sdk-master/HelloARUnreal -package -clientconfig=Development -ue4exe=UE4Editor-Cmd.exe -pak -prereqs -nodebuginfo -targetplatform=Android -cookflavor=ETC2 -build -utf8output -compile
    UATHelper: Packaging (Android (ETC2)): Compiling scripts.
    UATHelper: Packaging (Android (ETC2)):     DotNETUtilities -> D:\UnrealEngine-4.19-arcore\Engine\Binaries\DotNET\DotNETUtilities.dll
    UATHelper: Packaging (Android (ETC2)):     UnrealBuildTool -> D:\UnrealEngine-4.19-arcore\Engine\Binaries\DotNET\UnrealBuildTool.exe
    UATHelper: Packaging (Android (ETC2)):     AutomationUtils.Automation -> D:\UnrealEngine-4.19-arcore\Engine\Binaries\DotNET\AutomationUtils.Automation.dll
    UATHelper: Packaging (Android (ETC2)):     AllDesktop.Automation -> D:\UnrealEngine-4.19-arcore\Engine\Binaries\DotNET\AutomationScripts\AllDesktop\AllDesktop.Automation.dll
    UATHelper: Packaging (Android (ETC2)):     Localization.Automation -> D:\UnrealEngine-4.19-arcore\Engine\Binaries\DotNET\AutomationScripts\Localization.Automation.dll
    UATHelper: Packaging (Android (ETC2)):     OneSkyLocalization.Automation -> D:\UnrealEngine-4.19-arcore\Engine\Binaries\DotNET\AutomationScripts\OneSkyLocalization.Automation.dll
    UATHelper: Packaging (Android (ETC2)):     AutomationScripts.Automation -> D:\UnrealEngine-4.19-arcore\Engine\Binaries\DotNET\AutomationScripts\AutomationScripts.Automation.dll
    UATHelper: Packaging (Android (ETC2)):     Android.Automation -> D:\UnrealEngine-4.19-arcore\Engine\Binaries\DotNET\AutomationScripts\Android\Android.Automation.dll
    UATHelper: Packaging (Android (ETC2)):     BuildGraph.Automation -> D:\UnrealEngine-4.19-arcore\Engine\Binaries\DotNET\AutomationScripts\BuildGraph.Automation.dll
    UATHelper: Packaging (Android (ETC2)):     HTML5.Automation -> D:\UnrealEngine-4.19-arcore\Engine\Binaries\DotNET\AutomationScripts\HTML5\HTML5.Automation.dll
    UATHelper: Packaging (Android (ETC2)):     MobileDeviceInterface -> D:\UnrealEngine-4.19-arcore\Engine\Binaries\DotNET\IOS\MobileDeviceInterface.dll
    UATHelper: Packaging (Android (ETC2)):     IOS.Automation -> D:\UnrealEngine-4.19-arcore\Engine\Binaries\DotNET\AutomationScripts\IOS\IOS.Automation.dll
    UATHelper: Packaging (Android (ETC2)):     Linux.Automation -> D:\UnrealEngine-4.19-arcore\Engine\Binaries\DotNET\AutomationScripts\Linux\Linux.Automation.dll
    UATHelper: Packaging (Android (ETC2)):     Mac.Automation -> D:\UnrealEngine-4.19-arcore\Engine\Binaries\DotNET\AutomationScripts\Mac\Mac.Automation.dll
    UATHelper: Packaging (Android (ETC2)):     TVOS.Automation -> D:\UnrealEngine-4.19-arcore\Engine\Binaries\DotNET\AutomationScripts\TVOS\TVOS.Automation.dll
    UATHelper: Packaging (Android (ETC2)):     Win.Automation -> D:\UnrealEngine-4.19-arcore\Engine\Binaries\DotNET\AutomationScripts\Win.Automation.dll
    UATHelper: Packaging (Android (ETC2)):     XLocLocalization.Automation -> D:\UnrealEngine-4.19-arcore\Engine\Binaries\DotNET\AutomationScripts\XLocLocalization.Automation.dll
    UATHelper: Packaging (Android (ETC2)): Took 2.9050001s to run MSBuild.exe, ExitCode=0
    UATHelper: Packaging (Android (ETC2)): Setting up ProjectParams for C:\Users\i8306\Downloads\arcore-unreal-sdk-master\HelloARUnreal\HelloARUnreal.uproject
    UATHelper: Packaging (Android (ETC2)): ********** BUILD COMMAND STARTED **********
    UATHelper: Packaging (Android (ETC2)): Running: C:\Program Files (x86)\MSBuild\14.0\bin\MSBuild.exe D:/UnrealEngine-4.19-arcore/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj /verbosity:minimal /nologo /property:Configuration=Development /property:Platform=AnyCPU
    UATHelper: Packaging (Android (ETC2)):     DotNETUtilities -> D:\UnrealEngine-4.19-arcore\Engine\Binaries\DotNET\DotNETUtilities.dll
    UATHelper: Packaging (Android (ETC2)):     UnrealBuildTool -> D:\UnrealEngine-4.19-arcore\Engine\Binaries\DotNET\UnrealBuildTool.exe
    UATHelper: Packaging (Android (ETC2)): Took 0.2389997s to run MSBuild.exe, ExitCode=0
    UATHelper: Packaging (Android (ETC2)): Running: D:\UnrealEngine-4.19-arcore\Engine\Binaries\DotNET\UnrealBuildTool.exe HelloARUnreal Android Development -Project=C:\Users\i8306\Downloads\arcore-unreal-sdk-master\HelloARUnreal\HelloARUnreal.uproject  C:\Users\i8306\Downloads\arcore-unreal-sdk-master\HelloARUnreal\HelloARUnreal.uproject -NoUBTMakefiles  -remot
    eini="C:\Users\i8306\Downloads\arcore-unreal-sdk-master\HelloARUnreal" -skipdeploy -noxge -generatemanifest -NoHotReload
    UATHelper: Packaging (Android (ETC2)):   PLATFORM_ANDROID_NDK_VERSION = 120200
    UATHelper: Packaging (Android (ETC2)):   NDK toolchain: r12b, NDK version: 19, GccVersion: 4.9, ClangVersion: 3.8.256229
    UATHelper: Packaging (Android (ETC2)): Took 1.8545015s to run UnrealBuildTool.exe, ExitCode=0
    UATHelper: Packaging (Android (ETC2)): Running: D:\UnrealEngine-4.19-arcore\Engine\Binaries\DotNET\UnrealBuildTool.exe HelloARUnreal Android Development -Project=C:\Users\i8306\Downloads\arcore-unreal-sdk-master\HelloARUnreal\HelloARUnreal.uproject  C:\Users\i8306\Downloads\arcore-unreal-sdk-master\HelloARUnreal\HelloARUnreal.uproject -NoUBTMakefiles  -remot
    eini="C:\Users\i8306\Downloads\arcore-unreal-sdk-master\HelloARUnreal" -skipdeploy -noxge -NoHotReload -ignorejunk
    UATHelper: Packaging (Android (ETC2)):   PLATFORM_ANDROID_NDK_VERSION = 120200
    UATHelper: Packaging (Android (ETC2)):   NDK toolchain: r12b, NDK version: 19, GccVersion: 4.9, ClangVersion: 3.8.256229
    UATHelper: Packaging (Android (ETC2)):   Compiling Native code with NDK API 'android-19'
    UATHelper: Packaging (Android (ETC2)):   Performing 3 actions (4 in parallel)
    UATHelper: Packaging (Android (ETC2)):   [1/3] clang++.exe Module.GoogleARCoreBase.cpp [arm64-es2]
    UATHelper: Packaging (Android (ETC2)):   In file included from D:/UnrealEngine-4.19-arcore/Engine/Plugins/Runtime/GoogleARCore/Intermediate/Build/Android/HelloARUnreal/Development/GoogleARCoreBase/Module.GoogleARCoreBase.cpp:3:
    UATHelper: Packaging (Android (ETC2)):   D:\UnrealEngine-4.19-arcore\Engine\Plugins\Runtime\GoogleARCore\Source\GoogleARCoreBase\Private\GoogleARCoreAPI.cpp(14,10) :  fatal error: 'media/NdkImage.h' file not found
    PackagingResults: Error: 'media/NdkImage.h' file not found
    UATHelper: Packaging (Android (ETC2)):   #include "media/NdkImage.h"
    UATHelper: Packaging (Android (ETC2)):            ^
    UATHelper: Packaging (Android (ETC2)):   1 error generated.
    UATHelper: Packaging (Android (ETC2)):   ERROR: UBT ERROR: Failed to produce item: D:\UnrealEngine-4.19-arcore\Engine\Plugins\Runtime\GoogleARCore\Binaries\Android\HelloARUnreal-GoogleARCoreBase-arm64-es2.a
    PackagingResults: Error: UBT ERROR: Failed to produce item: D:\UnrealEngine-4.19-arcore\Engine\Plugins\Runtime\GoogleARCore\Binaries\Android\HelloARUnreal-GoogleARCoreBase-arm64-es2.a
    UATHelper: Packaging (Android (ETC2)):   Total build time: 10.08 seconds (Local executor: 0.00 seconds)
    UATHelper: Packaging (Android (ETC2)): Took 10.2140409s to run UnrealBuildTool.exe, ExitCode=5
    UATHelper: Packaging (Android (ETC2)): ERROR: Command failed (Result:5): D:\UnrealEngine-4.19-arcore\Engine\Binaries\DotNET\UnrealBuildTool.exe HelloARUnreal Android Development -Project=C:\Users\i8306\Downloads\arcore-unreal-sdk-master\HelloARUnreal\HelloARUnreal.uproject  C:\Users\i8306\Downloads\arcore-unreal-sdk-master\HelloARUnreal\HelloARUnreal.uprojec
    t -NoUBTMakefiles  -remoteini="C:\Users\i8306\Downloads\arcore-unreal-sdk-master\HelloARUnreal" -skipdeploy -noxge -NoHotReload -ignorejunk. See logfile for details: 'UnrealBuildTool-2018.05.22-15.24.51.txt' 
    UATHelper: Packaging (Android (ETC2)):        (see D:\UnrealEngine-4.19-arcore\Engine\Programs\AutomationTool\Saved\Logs\UAT_Log.txt for full exception trace)
    PackagingResults: Error: Command failed (Result:5): D:\UnrealEngine-4.19-arcore\Engine\Binaries\DotNET\UnrealBuildTool.exe HelloARUnreal Android Development -Project=C:\Users\i8306\Downloads\arcore-unreal-sdk-master\HelloARUnreal\HelloARUnreal.uproject  C:\Users\i8306\Downloads\arcore-unreal-sdk-master\HelloARUnreal\HelloARUnreal.uproject -NoUBTMakefiles  -r
    emoteini="C:\Users\i8306\Downloads\arcore-unreal-sdk-master\HelloARUnreal" -skipdeploy -noxge -NoHotReload -ignorejunk. See logfile for details: 'UnrealBuildTool-2018.05.22-15.24.51.txt' 
    UATHelper: Packaging (Android (ETC2)): AutomationTool exiting with ExitCode=5 (5)
    UATHelper: Packaging (Android (ETC2)): BUILD FAILED
    PackagingResults: Error: Unknown Error
    Help would be welcome Thanks!
Working...
X