Build Error - Script Debugging
Using Unity3d 2021.3.27 Oculus Package v56 Build process fails when I set the ScriptDebugging flag on; with the following error: Building Library\Bee\artifacts\Android\d8kzr\libil2cpp.so failed with output: Library/Bee/artifacts/Android/87lik/2bu4ed5r2ps3.o: In function `il2cpp::os::PathErrnoToErrorCode(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&, int)': C:/Program Files/Unity/Hub/Editor/2021.3.27f1/Editor/Data/il2cpp/libil2cpp/os/Posix/Error.cpp:227:(.text._ZN6il2cpp2os20PathErrnoToErrorCodeERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEi+0x54): relocation truncated to fit: R_AARCH64_CALL26 against symbol `access@@LIBC' defined in .text section in C:/Program Files/Unity/Hub/Editor/2021.3.27f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/windows-x86_64/bin/../sysroot/usr/lib/aarch64-linux-android/22/libc.so Library/Bee/artifacts/Android/87lik/2bu4ed5r2ps3.o: In function `std::__ndk1::_DeallocateCaller::__do_call(void*)': C:/Program Files/Unity/Hub/Editor/2021.3.27f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/windows-x86_64/bin/../sysroot/usr/include/c++/v1/new:334:(.text._ZN6il2cpp2os20PathErrnoToErrorCodeERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEi+0x70): relocation truncated to fit: R_AARCH64_CALL26 against symbol `operator delete(void*)' defined in .text._ZdlPv section in C:/Program Files/Unity/Hub/Editor/2021.3.27f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/windows-x86_64/bin/../sysroot/usr/lib/aarch64-linux-android\libc++_static.a(new.o) Library/Bee/artifacts/Android/87lik/2bu4ed5r2ps3.o: In function `PosixAutoLock': C:/Program Files/Unity/Hub/Editor/2021.3.27f1/Editor/Data/il2cpp/libil2cpp/os/Posix/PosixHelpers.h:44:(.text._ZN6il2cpp2os9EventImpl3SetEv+0x14): relocation truncated to fit: R_AARCH64_CALL26 against symbol `pthread_mutex_lock@@LIBC' defined in .text section in C:/Program Files/Unity/Hub/Editor/2021.3.27f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/windows-x86_64/bin/../sysroot/usr/lib/aarch64-linux-android/22/libc.so Library/Bee/artifacts/Android/87lik/2bu4ed5r2ps3.o: In function `il2cpp::os::EventImpl::Set()': C:/Program Files/Unity/Hub/Editor/2021.3.27f1/Editor/Data/il2cpp/libil2cpp/os/Posix/EventImpl.cpp:26:(.text._ZN6il2cpp2os9EventImpl3SetEv+0x2c): relocation truncated to fit: R_AARCH64_CALL26 against symbol `pthread_cond_broadcast@@LIBC' defined in .text section in C:/Program Files/Unity/Hub/Editor/2021.3.27f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/windows-x86_64/bin/../sysroot/usr/lib/aarch64-linux-android/22/libc.so Library/Bee/artifacts/Android/87lik/2bu4ed5r2ps3.o: In function `~PosixAutoLock': C:/Program Files/Unity/Hub/Editor/2021.3.27f1/Editor/Data/il2cpp/libil2cpp/os/Posix/PosixHelpers.h:46:(.text._ZN6il2cpp2os9EventImpl3SetEv+0x34): relocation truncated to fit: R_AARCH64_CALL26 against symbol `pthread_mutex_unlock@@LIBC' defined in .text section in C:/Program Files/Unity/Hub/Editor/2021.3.27f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/windows-x86_64/bin/../sysroot/usr/lib/aarch64-linux-android/22/libc.so C:/Program Files/Unity/Hub/Editor/2021.3.27f1/Editor/Data/il2cpp/libil2cpp/os/Posix/PosixHelpers.h:46:(.text._ZN6il2cpp2os9EventImpl3SetEv+0x50): relocation truncated to fit: R_AARCH64_CALL26 against symbol `pthread_mutex_unlock@@LIBC' defined in .text section in C:/Program Files/Unity/Hub/Editor/2021.3.27f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/windows-x86_64/bin/../sysroot/usr/lib/aarch64-linux-android/22/libc.so C:/Program Files/Unity/Hub/Editor/2021.3.27f1/Editor/Data/il2cpp/libil2cpp/os/Posix/PosixHelpers.h:(.text._ZN6il2cpp2os9EventImpl3SetEv+0x58): relocation truncated to fit: R_AARCH64_CALL26 against symbol `_Unwind_Resume' defined in .text section in C:/Program Files/Unity/Hub/Editor/2021.3.27f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/windows-x86_64/bin/../lib/gcc/aarch64-linux-android/4.9.x\libgcc_real.a(unwind-dw2.o) C:/Program Files/Unity/Hub/Editor/2021.3.27f1/Editor/Data/il2cpp/libil2cpp/os/Posix/PosixHelpers.h:46:(.text._ZN6il2cpp2os9EventImpl3SetEv+0x5c): relocation truncated to fit: R_AARCH64_CALL26 against symbol `__clang_call_terminate' defined in .text.__clang_call_terminate[__clang_call_terminate] section in Library/Bee/artifacts/Android/d8kzr/yilyaeoth72i.o C:/Program Files/Unity/Hub/Editor/2021.3.27f1/Editor/Data/il2cpp/libil2cpp/os/Posix/PosixHelpers.h:46:(.text._ZN6il2cpp2os9EventImpl3SetEv+0x60): relocation truncated to fit: R_AARCH64_CALL26 against symbol `__clang_call_terminate' defined in .text.__clang_call_terminate[__clang_call_terminate] section in Library/Bee/artifacts/Android/d8kzr/yilyaeoth72i.o Library/Bee/artifacts/Android/87lik/2bu4ed5r2ps3.o: In function `PosixAutoLock': C:/Program Files/Unity/Hub/Editor/2021.3.27f1/Editor/Data/il2cpp/libil2cpp/os/Posix/PosixHelpers.h:44:(.text._ZN6il2cpp2os9EventImpl5ResetEv+0x14): relocation truncated to fit: R_AARCH64_CALL26 against symbol `pthread_mutex_lock@@LIBC' defined in .text section in C:/Program Files/Unity/Hub/Editor/2021.3.27f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/windows-x86_64/bin/../sysroot/usr/lib/aarch64-linux-android/22/libc.so Library/Bee/artifacts/Android/87lik/2bu4ed5r2ps3.o: In function `~PosixAutoLock': C:/Program Files/Unity/Hub/Editor/2021.3.27f1/Editor/Data/il2cpp/libil2cpp/os/Posix/PosixHelpers.h:46:(.text._ZN6il2cpp2os9EventImpl5ResetEv+0x20): additional relocation overflows omitted from the output clang++: error: linker command failed with exit code 1 (use -v to see invocation) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) Anyone seen something like this?1.3KViews0likes0CommentsUnity for GearVR.. setting up, errors, failed builds
Hi there, I am trying to learn how to make a VR app for the GearVR from Windows 10 (Unity 2018.2.15f1) to Samsung Galaxy A8. Doing tutorial https://developer.oculus.com/documentation/unity/latest/concepts/unity-tutorial/ however no success to make my USB-plugged phone react, nor being able to build even an .apk. If I simply Run the scene in the Unity, it spits out a Warning: Virtual Reality SDK Oculus failed to initialize. Will attempt to enable None instead. Even if I switch on Settings ->Apps ->GearVR Service ->Storage ->Manage Storage ->Developer Mode ON on my phone. When Building (see image): the Gradle-build-failed error claims some existing toolchains for the linux are missing.. wait, what linux? Even the Preferences->External Tools point to the NDK directory where the aforementioned are present, twice. I have installed/uninstalled several times all those SDKs (Java, Android, Oculus Integration, Samsung), an obsolete NDK#13 (Android) - command line, GUI, ..and don't even remember what tools, in hopes to solve this. My phone has Oculus and GearVR apps running and Developer mode activated, and has a legal device status when adb -devices. USB drivers are there. Not building. What else parts am I missing? My desperate pleas for the assistance. Neil931Views0likes1Comment