-
Notifications
You must be signed in to change notification settings - Fork 498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Execution failed for task ':unityLibrary:BuildIl2CppTask'. 'eglib-config.h' file not found MacBook m1 #544
Comments
I have the same error ! |
I don't understand how it works.. but..
to android\unityLibrary\build.gradle after
in method BuildIl2Cpp |
Thanks, but unfortunately it doesn't seem to work... I still have the same error |
Try this commandLineArgs
|
Thank you ! it works ! |
@IluhinDotPro It works. Thank you! |
Same issue, but on an Intel Macbook, so this doesn't seem to be specific to M1. Removing the Debugger / Profiler related command line arguments as suggested above also solved it for me. Any ideas on why this happens? The project exported from Unity builds fine by itself. |
hello,Where do I add the above code,Below is the unityLibrary code in my project `// GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN apply plugin: 'com.android.library' dependencies { android {
} def getSdkDir() { def BuildIl2Cpp(String workingDir, String targetDirectory, String architecture, String abi, String configuration) { } android {
}` |
could you share the full gradle file |
|
Hello. There was a problem with the crash of the application immediately after launch. After the change build.gradle in accordance with the recommendations of @lswd, everything worked! But after each export, the file build.gradle is overwritten and the application starts to crash again, please tell me how it can be fixed. |
This solved the error, but app crashes right after launch with 'Lost connection to device.' and loads of log. Log:
|
/Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/build/deploy/il2cpp --compile-cpp --platform=Android --architecture=arm64 --outputpath=/Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/src/main/jniLibs/arm64-v8a/libil2cpp.so --libil2cpp-static --baselib-directory=/Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/src/main/jniStaticLibs/arm64-v8a --configuration=Release --dotnetprofile=unityaot-linux --enable-debugger --profiler-report --profiler-output-file=/Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/build/il2cpp_arm64-v8a_Release/il2cpp_conv.traceevents --print-command-line --generatedcppdir=/Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/src/main/Il2CppOutputProject/Source/il2cppOutput --cachedirectory=/Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/build/il2cpp_arm64-v8a_Release/il2cpp_cache --tool-chain-path=/Applications/Unity/Hub/Editor/2021.2.12f1/PlaybackEngines/AndroidPlayer/NDK
Starting: /Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/build/deploy/bee_backend/mac-arm64/bee_backend --profile="/Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/build/il2cpp_arm64-v8a_Release/il2cpp_cache/buildstate/backend_profiler0.traceevents" --stdin-canary --dagfile="/Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/build/il2cpp_arm64-v8a_Release/il2cpp_cache/buildstate/bee.dag" --continue-on-failure FinalProgram
WorkingDir: /Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/build/il2cpp_arm64-v8a_Release/il2cpp_cache/buildstate
ExitCode: 4 Duration: 0s40ms
ExitCode: 0 Duration: 0s0ms
Starting: /Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/build/deploy/bee_backend/mac-arm64/bee_backend --profile="/Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/build/il2cpp_arm64-v8a_Release/il2cpp_cache/buildstate/backend_profiler1.traceevents" --stdin-canary --dagfile="/Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/build/il2cpp_arm64-v8a_Release/il2cpp_cache/buildstate/bee.dag" --continue-on-failure --dagfilejson="/Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/build/il2cpp_arm64-v8a_Release/il2cpp_cache/buildstate/bee.dag.json" FinalProgram
WorkingDir: /Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/build/il2cpp_arm64-v8a_Release/il2cpp_cache/buildstate
ExitCode: 3 Duration: 10m:24s
Build failed with 526 successful nodes and 73 failed ones
Annotation: C_Android_arm64 87li/9953_m_vm3.lump.o
Cmdline: "/Applications/Unity/Hub/Editor/2021.2.12f1/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++" -march=armv8-a -D__ANDROID_API__=22 -DANDROID -DHAVE_INTTYPES_H -no-canonical-prefixes -funwind-tables -fstack-protector -fdiagnostics-format=msvc -fomit-frame-pointer -std=c++11 -Wswitch -Wno-trigraphs -Wno-tautological-compare -Wno-invalid-offsetof -Wno-implicitly-unsigned-literal -Wno-integer-overflow -Wno-shift-negative-value -Wno-unknown-attributes -Wno-implicit-function-declaration -Wno-null-conversion -Wno-missing-declarations -Wno-unused-value -Wno-pragma-once-outside-header -fvisibility=hidden -fexceptions -fno-rtti -g -Os -fPIC -fno-strict-overflow -ffunction-sections -fdata-sections -fmessage-length=0 -pipe -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -DIL2CPP_MONO_DEBUGGER=1 -DRUNTIME_IL2CPP -DTARGET_ARM64 -DGC_NOT_DLL -DPLATFORM_UNITY -DUNITY_USE_PLATFORM_STUBS -DENABLE_OVERRIDABLE_ALLOCATORS -DIL2CPP_ON_MONO=1 -DDISABLE_JIT=1 -DDISABLE_REMOTING=1 -DHAVE_CONFIG_H -DMONO_DLL_EXPORT=1 -DIL2CPP_DEFAULT_DATA_DIR_PATH=Data -DNDEBUG -I"." -I"/Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/libil2cpp/pch" -I"/Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/libil2cpp" -I"/Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/external/baselib/Include" -I"/Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/external/baselib/Platforms/Android/Include" -I"/Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/external/bdwgc/include" -I"/Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/external/mono/mono/eglib" -I"/Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/external/mono" -I"/Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/libmono/config" -I"/Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/libil2cpp/os/c-api" -o "87li/9953_m_vm3.lump.o" -fcolor-diagnostics -target aarch64-linux-android22 -fstrict-aliasing -fdiagnostics-format=msvc -c -x c++ "87li/xglm_vm3.lump.cpp"
ExitCode: 1
Stdout:
In file included from 87li/xglm_vm3.lump.cpp:12:
In file included from /Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/libil2cpp/vm/Thread.cpp:33:
In file included from /Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/external/mono/mono/metadata/profiler-private.h:10:
In file included from /Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/external/mono/mono/metadata/class-internals.h:12:
In file included from /Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/external/mono/mono/metadata/metadata-internals.h:10:
In file included from /Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/external/mono/mono/metadata/cil-coff.h:9:
/Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/external/mono/mono/eglib/glib.h(23,10): fatal error: 'eglib-config.h' file not found
#include <eglib-config.h>
^~~~~~~~~~~~~~~~
1 error generated.
Error: Unity.IL2CPP.Building.BuilderFailedException: Build failed with 526 successful nodes and 73 failed ones
Annotation: C_Android_arm64 87li/9953_m_vm3.lump.o
Cmdline: "/Applications/Unity/Hub/Editor/2021.2.12f1/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++" -march=armv8-a -D__ANDROID_API__=22 -DANDROID -DHAVE_INTTYPES_H -no-canonical-prefixes -funwind-tables -fstack-protector -fdiagnostics-format=msvc -fomit-frame-pointer -std=c++11 -Wswitch -Wno-trigraphs -Wno-tautological-compare -Wno-invalid-offsetof -Wno-implicitly-unsigned-literal -Wno-integer-overflow -Wno-shift-negative-value -Wno-unknown-attributes -Wno-implicit-function-declaration -Wno-null-conversion -Wno-missing-declarations -Wno-unused-value -Wno-pragma-once-outside-header -fvisibility=hidden -fexceptions -fno-rtti -g -Os -fPIC -fno-strict-overflow -ffunction-sections -fdata-sections -fmessage-length=0 -pipe -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -DIL2CPP_MONO_DEBUGGER=1 -DRUNTIME_IL2CPP -DTARGET_ARM64 -DGC_NOT_DLL -DPLATFORM_UNITY -DUNITY_USE_PLATFORM_STUBS -DENABLE_OVERRIDABLE_ALLOCATORS -DIL2CPP_ON_MONO=1 -DDISABLE_JIT=1 -DDISABLE_REMOTING=1 -DHAVE_CONFIG_H -DMONO_DLL_EXPORT=1 -DIL2CPP_DEFAULT_DATA_DIR_PATH=Data -DNDEBUG -I"." -I"/Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/libil2cpp/pch" -I"/Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/libil2cpp" -I"/Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/external/baselib/Include" -I"/Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/external/baselib/Platforms/Android/Include" -I"/Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/external/bdwgc/include" -I"/Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/external/mono/mono/eglib" -I"/Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/external/mono" -I"/Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/libmono/config" -I"/Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/libil2cpp/os/c-api" -o "87li/9953_m_vm3.lump.o" -fcolor-diagnostics -target aarch64-linux-android22 -fstrict-aliasing -fdiagnostics-format=msvc -c -x c++ "87li/xglm_vm3.lump.cpp"
ExitCode: 1
Stdout:
In file included from 87li/xglm_vm3.lump.cpp:12:
In file included from /Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/libil2cpp/vm/Thread.cpp:33:
In file included from /Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/external/mono/mono/metadata/profiler-private.h:10:
In file included from /Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/external/mono/mono/metadata/class-internals.h:12:
In file included from /Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/external/mono/mono/metadata/metadata-internals.h:10:
In file included from /Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/external/mono/mono/metadata/cil-coff.h:9:
/Users/vadimmazurek/StudioProjects/flutter_unity_widget/android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/external/mono/mono/eglib/glib.h(23,10): fatal error: 'eglib-config.h' file not found
#include <eglib-config.h>
^~~~~~~~~~~~~~~~
1 error generated.
at il2cpp.Program.DoRun(String[] args, RuntimePlatform platform, Il2CppCommandLineArguments il2CppCommandLineArguments, BuildingOptions buildingOptions, Boolean throwExceptions) in /Users/bokken/build/output/unity/il2cpp/il2cpp/Program.cs:line 331
The text was updated successfully, but these errors were encountered: