x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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:/NVPACK/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 ~

Product Version: UE 4.13
Tags:
more ▼

asked Feb 15 '17 at 07:19 AM in Packaging & Deployment

avatar image

oahcfly
26 1 2 5

avatar image Samantha Sutton ♦♦ STAFF Feb 15 '17 at 06:29 PM

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!

avatar image oahcfly Feb 16 '17 at 02:46 AM

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!

avatar image Samantha Sutton ♦♦ STAFF Feb 16 '17 at 07:00 PM

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!

avatar image oahcfly Feb 17 '17 at 06:40 AM

ok , i will hava a try , thanks ~

avatar image Samantha Sutton ♦♦ STAFF Feb 20 '17 at 05:03 PM

Please let me know the outcome, thank you!

avatar image oahcfly Feb 21 '17 at 01:18 AM

I comment use the answer style , please the answer area , i supply some outcome, and give a demo .

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

4 answers: sort voted first

link text

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 .

more ▼

answered Feb 21 '17 at 01:15 AM

avatar image

oahcfly
26 1 2 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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

more ▼

answered Apr 18 '17 at 03:21 AM

avatar image

YanYuHongChen
1 1 2 3

avatar image oahcfly Apr 18 '17 at 03:24 AM

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

avatar image YanYuHongChen Apr 18 '17 at 03:28 AM

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

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Came across the same issue.

more ▼

answered Apr 21 '17 at 11:51 AM

avatar image

tianqi
6 1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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.

more ▼

answered Oct 20 '17 at 07:39 AM

avatar image

tianqi
6 1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question