error: unknown type name 'PFNGLDRAWELEMENTSINSTANCEDPROC'

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

‘PFNGLDRAWELEMENTSINSTANCEDNVPROC’?
UATHelper: 打包 (Android (ATC)): UnrealBuildTool: extern PFNGLDRAWELEMENTSINSTANCEDPROC glDrawElementsInstanced;
UATHelper: 打包 (Android (ATC)): UnrealBuildTool: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
UATHelper: 打包 (Android (ATC)): UnrealBuildTool: PFNGLDRAWELEMENTSINSTANCEDNVPROC
UATHelper: 打包 (Android (ATC)): UnrealBuildTool: C://android-ndk-r12b/platforms/android-21/arch-arm/usr/include

\GLES2/gl2ext.h(1631,28) : note: ‘PFNGLDRAWELEMENTSINSTANCEDNVPROC’ declared here
UATHelper: 打包 (Android (ATC)): UnrealBuildTool: typedef void (GL_APIENTRYP PFNGLDRAWELEMENTSINSTANCEDNVPROC) (GLenum

mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
UATHelper: 打包 (Android (ATC)): UnrealBuildTool: ^

please help me , thanks ~

oahcfly,

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.

Thanks!

I am not working with 4.14 or 4.15.

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.

Thanks!

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?

Thank you!

ok , i will hava a try , thanks ~

Please let me know the outcome, thank you!

[link text][1]

127107-unreal+package+apk+log.txt (29.4 KB)

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 comment use the answer style , please the answer area , i supply some outcome, and give a demo .

I Got the same error,and have no idea for weeks

You need change the source code, and add the miss code to fix the error.

Not only one missing function .So Many Func that have not defined.
all about Debug KHR

Came across the same issue.

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.