cancel
Showing results for 
Search instead for 
Did you mean: 

[Solved] Not being able to "Build and Run" for the Oculus Go in 2018.2.6f1

fariazz
Expert Protege
Are people being able to run their projects in a connected Oculus Go using Unity 2018.2.6f1?

I keep on getting this error. Have reinstalled Android SDK, Android NDK, Java SDK, using recommended build settings, restarted the computer and the Library folder of the project. I can build but not "build & run". Error is about this "GL/glew.h" file not found.. really strange.

Failed running D:\Program 
Files\2018.2.6f1\Editor\Data\il2cpp/build/il2cpp.exe --convert-to-cpp
--emit-null-checks --enable-array-bounds-check
--dotnetprofile="unityjit" --compile-cpp --libil2cpp-static
--platform="Android" --architecture="ARMv7" --configuration="Release"
--outputpath="D:\Zenva\3D-VR\Unity\Multiplayer Zombie -
GearVR\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so"
--cachedirectory="D:\Zenva\3D-VR\Unity\Multiplayer Zombie -
GearVR\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache"
--additional-include-directories="D:\Program
Files\2018.2.6f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\bdwgc/include"
--additional-include-directories="D:\Program
Files\2018.2.6f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\libil2cpp/include"
--tool-chain-path="D:/AndroidSDK/ndk-unity/android-ndk-r13b"
--map-file-parser="D:\Program
Files\2018.2.6f1\Editor\Data\Tools\MapFileParser\MapFileParser.exe"
--assembly="D:\Zenva\3D-VR\Unity\Multiplayer Zombie -
GearVR\Temp\StagingArea\assets\bin\Data\Managed\Assembly-CSharp.dll"
--assembly="D:\Zenva\3D-VR\Unity\Multiplayer Zombie -
GearVR\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.UI.dll"
--assembly="D:\Zenva\3D-VR\Unity\Multiplayer Zombie -
GearVR\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.dll"
--generatedcppdir="D:\Zenva\3D-VR\Unity\Multiplayer Zombie -
GearVR\Temp\StagingArea\Il2Cpp\il2cppOutput"

stdout:
Building libil2cpp.so with AndroidToolChain
    Output directory: D:\Zenva\3D-VR\Unity\Multiplayer Zombie - GearVR\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
    Cache directory: D:\Zenva\3D-VR\Unity\Multiplayer Zombie - GearVR\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
il2cpp.exe
didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException:
D:\Zenva\3D-VR\Unity\Multiplayer Zombie -
GearVR\Temp\StagingArea\Il2Cpp\il2cppOutput\Mirror.cpp:9:10: fatal
error: 'GL/glew.h' file not found
#include <GL/glew.h>
         ^
1 error generated.


Invocation was: Executable: "D:\AndroidSDK\ndk-unity\android-ndk-r13b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++"
Arguments:
-DNET_4_0 -DUNITY_JIT -DGC_NOT_DLL -DRUNTIME_IL2CPP -DLINUX -DANDROID
-DPLATFORM_ANDROID -D__linux__ -D__STDC_FORMAT_MACROS -I"D:\Program
Files\2018.2.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\bdwgc\include"
-I"D:\Program
Files\2018.2.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\libil2cpp\include"
-I"D:\Program Files\2018.2.6f1\Editor\Data\il2cpp\libil2cpp"
-I"D:\Program
Files\2018.2.6f1\Editor\Data\il2cpp\external\boehmgc\include"
-I"D:\Zenva\3D-VR\Unity\Multiplayer Zombie -
GearVR\Temp\StagingArea\Il2Cpp\il2cppOutput" -I"."
-I"D:\AndroidSDK\ndk-unity\android-ndk-r13b\sources\cxx-stl\gnu-libstdc++\4.9\include"

-I"D:\AndroidSDK\ndk-unity\android-ndk-r13b\sources\cxx-stl\gnu-libstdc++\4.9\include\backward"

-I"D:\AndroidSDK\ndk-unity\android-ndk-r13b\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a\include"
-c -g -DNDEBUG -funwind-tables -fno-limit-debug-info -fdata-sections
-ffunction-sections -Wa,--noexecstack -fno-rtti -std=c++98
-fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden
-fno-strict-overflow -Os --sysroot
"D:\AndroidSDK\ndk-unity\android-ndk-r13b\platforms\android-16\arch-arm"
-gcc-toolchain
"D:\AndroidSDK\ndk-unity\android-ndk-r13b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64"
-target armv7-none-linux-androideabi -march=armv7-a -mfloat-abi=softfp
-mfpu=neon -fPIE "D:\Zenva\3D-VR\Unity\Multiplayer Zombie -
GearVR\Temp\StagingArea\Il2Cpp\il2cppOutput\Mirror.cpp" -o
"D:/Zenva/3D-VR/Unity/Multiplayer Zombie -
GearVR/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/2D6A5ADF040FAF249A758BA02A1F1F7D.o"

  
at
Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1
sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
   at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
   at il2cpp.Program.DoRun(String[] args)
   at il2cpp.Program.Run(String[] args)
   at il2cpp.Program.Main(String[] args)
stderr:

Unhandled
Exception: Unity.IL2CPP.Building.BuilderFailedException:
D:\Zenva\3D-VR\Unity\Multiplayer Zombie -
GearVR\Temp\StagingArea\Il2Cpp\il2cppOutput\Mirror.cpp:9:10: fatal
error: 'GL/glew.h' file not found
#include <GL/glew.h>
         ^
1 error generated.


Invocation was: Executable: "D:\AndroidSDK\ndk-unity\android-ndk-r13b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++"
Arguments:
-DNET_4_0 -DUNITY_JIT -DGC_NOT_DLL -DRUNTIME_IL2CPP -DLINUX -DANDROID
-DPLATFORM_ANDROID -D__linux__ -D__STDC_FORMAT_MACROS -I"D:\Program
Files\2018.2.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\bdwgc\include"
-I"D:\Program
Files\2018.2.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\libil2cpp\include"
-I"D:\Program Files\2018.2.6f1\Editor\Data\il2cpp\libil2cpp"
-I"D:\Program
Files\2018.2.6f1\Editor\Data\il2cpp\external\boehmgc\include"
-I"D:\Zenva\3D-VR\Unity\Multiplayer Zombie -
GearVR\Temp\StagingArea\Il2Cpp\il2cppOutput" -I"."
-I"D:\AndroidSDK\ndk-unity\android-ndk-r13b\sources\cxx-stl\gnu-libstdc++\4.9\include"

-I"D:\AndroidSDK\ndk-unity\android-ndk-r13b\sources\cxx-stl\gnu-libstdc++\4.9\include\backward"

-I"D:\AndroidSDK\ndk-unity\android-ndk-r13b\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a\include"
-c -g -DNDEBUG -funwind-tables -fno-limit-debug-info -fdata-sections
-ffunction-sections -Wa,--noexecstack -fno-rtti -std=c++98
-fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden
-fno-strict-overflow -Os --sysroot
"D:\AndroidSDK\ndk-unity\android-ndk-r13b\platforms\android-16\arch-arm"
-gcc-toolchain
"D:\AndroidSDK\ndk-unity\android-ndk-r13b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64"
-target armv7-none-linux-androideabi -march=armv7-a -mfloat-abi=softfp
-mfpu=neon -fPIE "D:\Zenva\3D-VR\Unity\Multiplayer Zombie -
GearVR\Temp\StagingArea\Il2Cpp\il2cppOutput\Mirror.cpp" -o
"D:/Zenva/3D-VR/Unity/Multiplayer Zombie -
GearVR/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/2D6A5ADF040FAF249A758BA02A1F1F7D.o"

  
at
Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1
sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
   at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
   at il2cpp.Program.DoRun(String[] args)
   at il2cpp.Program.Run(String[] args)
   at il2cpp.Program.Main(String[] args)

UnityEngine.Debug:LogError(Object)
UnityEditorInternal.Runner:RunProgram(Program,
String, String, String, CompilerOutputParserBase) (at
C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:128)
UnityEditorInternal.Runner:RunManagedProgram(String,
String, String, CompilerOutputParserBase, Action`1) (at
C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73)
UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List`1,
Action`1, String) (at
C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:380)
UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(ICollection`1,
String, String, Boolean) (at
C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:361)
UnityEditorInternal.IL2CPPBuilder:Run() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:178)
UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String,
String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry) (at
C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:35)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)






1 REPLY 1

fariazz
Expert Protege
It turns out I had an older version of the Oculus Avatar SDK in my project, which was causing this error.