I am developing a plugin . in buid.cs add
PrivateDependencyModuleNames.AddRange(new string[] { “OpenGLDrv” });
add in my .h file i use #include “OpenGLDrvPrivate.h” #include “OpenGLResources.h”
the plugin build ok,but when i package android apk .
get the error log :
UnrealBuildTool: In file included from D:/Epic Games/4.13/Engine/Source/Runtime/OpenGLDrv/Private\OpenGLDrvPrivate.h:10:
UATHelper: 打包 (Android (ATC)): UnrealBuildTool: In file included from Runtime/OpenGLDrv/Public\OpenGLDrv.h:28:
UATHelper: 打包 (Android (ATC)): UnrealBuildTool: D:/Epic Games/4.13/Engine/Source/Runtime/OpenGLDrv/Private
\Android/AndroidOpenGL.h(115,8) : error: unknown type name ‘PFNGLDRAWELEMENTSINSTANCEDPROC’; did you mean
Are you experiencing this when you’re working with 4.14 or 4.15? If you open your OpenGLDrivPrivate.h file and remove the PFNGLDRAWELEMENTSINSTANCEDPRODC code, does that help resolve the issue you’re running in to?
Please provide as much information as possible so we can help troubleshoot the issue.
PFNGLDRAWELEMENTSINSTANCEDPRODC is just only a point ,many other points get error too .
you can find the file in engine ,
D:\EpicGames\4.13\Engine\Plugins\Runtime\GoogleVR\GoogleVRHMD\Source\GoogleVRHMD\Private\GoogleVRHMD.h
it use OpenGLDrvPrivate and OpenGLResources , but when package apk is ok ,no error .
I refer the code in plugin of GooglVR. It is the same code .Just Let me confused.
Yes, I know that you’re not currently working with 4.14 or 4.15. We ask that you test the issue on 4.14 and 4.15 as well to verify whether or not it has been resolved. Each time we release a version of the engine, there are tons of bug fixes that go into the release.
Could you please verify whether or not this is happening in a newly created project?
Could you disable any third-party plugins you’re using and see if that resolves the issue?
Could you please check 4.14 and 4.15 to see if either one resolves the issue with or without the plugins disabled?
I check it on 4.14 , it also fails . I upload the whole log file. You can download my plugin from the link :
Link: https://pan.baidu.com/s/1dF7m5WH Password: h5dh
create a new project , use c++ . then copy the plugin code into the project Plugins. At last ,package the android apk.
You can hava a test about it , thanks ~ Otherwise, I will check it on 4.15 too .
I found the solution
1 Download the source code of UE4 and check out the version which you are using.
2 Copy Engine\Source\ThirdParty\OpenGL\GLES2\gl2ext.h to your installed engine corresponding path.