Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7081141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:52:58+00:00 2026-05-28T06:52:58+00:00

I am getting this the following error when I am trying to use OpenGL

  • 0

I am getting this the following error when I am trying to use OpenGL in JNI

Compile++ thumb  : itv <= native.cpp
C:/workspace/InternetTV_OpenGL/jni/native.cpp:1:50: warning: extra tokens at end
 of #include directive
C:/workspace/InternetTV_OpenGL/jni/native.cpp:3:21: error: GLES/gl.h: No such fi
le or directory
C:/workspace/InternetTV_OpenGL/jni/native.cpp:4:24: error: GLES/glext.h: No such
 file or directory
C:/workspace/InternetTV_OpenGL/jni/native.cpp:15:1: warning: "No_Threads" redefi
ned
In file included from C:/workspace/InternetTV_OpenGL/jni/native.cpp:9:
C:/workspace/InternetTV_OpenGL/jni/internetTV/MPEG2_REF_OPT/global.h:32:1: warni
ng: this is the location of the previous definition
In file included from C:/workspace/InternetTV_OpenGL/jni/native.cpp:1:
C:/workspace/InternetTV_OpenGL/jni/internetTV_openGL_VideoGLSurfaceView.h:48: er
ror: 'CALLBACK_FN_RENDER_VIDEO' has not been declared
C:/workspace/InternetTV_OpenGL/jni/internetTV_openGL_VideoGLSurfaceView.h:51: er
ror: 'CALLBACK_FN_RENDER_VIDEO' has not been declared
C:/workspace/InternetTV_OpenGL/jni/native.cpp:23: error: 'GLuint' does not name
a type
C:/workspace/InternetTV_OpenGL/jni/native.cpp:24: error: 'GLuint' does not name
a type
C:/workspace/InternetTV_OpenGL/jni/native.cpp:34: error: 'GLfloat' does not name
 a type
C:/workspace/InternetTV_OpenGL/jni/native.cpp:48: error: 'GLfloat' does not name
 a type
C:/workspace/InternetTV_OpenGL/jni/native.cpp: In function 'void Java_internetTV
_openGL_VideoGLSurfaceView_native_1gl_1render(JNIEnv*, _jobject*)':
C:/workspace/InternetTV_OpenGL/jni/native.cpp:91: error: 'GL_COLOR_BUFFER_BIT' w
as not declared in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp:91: error: 'GL_DEPTH_BUFFER_BIT' w
as not declared in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp:91: error: 'glClear' was not decla
red in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp:92: error: 'GL_MODELVIEW' was not
declared in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp:92: error: 'glMatrixMode' was not
declared in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp:93: error: 'glLoadIdentity' was no
t declared in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp:95: error: 'GL_VERTEX_ARRAY' was n
ot declared in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp:95: error: 'glEnableClientState' w
as not declared in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp:96: error: 'GL_TEXTURE_COORD_ARRAY
' was not declared in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp:97: error: 'GL_FLOAT' was not decl
ared in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp:97: error: 'vertices' was not decl
ared in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp:97: error: 'glVertexPointer' was n
ot declared in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp:98: error: 'texCoords' was not dec
lared in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp:98: error: 'glTexCoordPointer' was
 not declared in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp:99: error: 'GL_TRIANGLE_STRIP' was
 not declared in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp:99: error: 'glDrawArrays' was not
declared in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp:100: error: 'GL_DEPTH_TEST' was no
t declared in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp:100: error: 'glDisable' was not de
clared in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp:104: error: 'glDisableClientState'
 was not declared in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp: In function 'void grabFrame()':
C:/workspace/InternetTV_OpenGL/jni/native.cpp:125: error: 'GL_TEXTURE_2D' was no
t declared in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp:125: error: 'GL_RGBA' was not decl
ared in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp:125: error: 'GL_UNSIGNED_BYTE' was
 not declared in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp:125: error: 'glTexImage2D' was not
 declared in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp: In function 'void Java_kieran_ple
asework_VideoGLSurfaceView_native_1init(JNIEnv*, _jobject*, _jstring*)':
C:/workspace/InternetTV_OpenGL/jni/native.cpp:132: error: 'GL_TEXTURE_2D' was no
t declared in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp:132: error: 'glEnable' was not dec
lared in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp:133: error: 'GL_BLEND' was not dec
lared in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp:133: error: 'glDisable' was not de
clared in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp:136: error: 'textureId' was not de
clared in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp:136: error: 'glGenTextures' was no
t declared in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp:137: error: 'i' was not declared i
n this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp:140: error: 'glBindTexture' was no
t declared in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp:143: error: 'GL_TEXTURE_MIN_FILTER
' was not declared in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp:143: error: 'GL_LINEAR' was not de
clared in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp:143: error: 'glTexParameteri' was
not declared in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp:144: error: 'GL_TEXTURE_MAG_FILTER
' was not declared in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp:145: error: 'GL_TEXTURE_WRAP_S' wa
s not declared in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp:145: error: 'GL_CLAMP_TO_EDGE' was
 not declared in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp:146: error: 'GL_TEXTURE_WRAP_T' wa
s not declared in this scope
C:/workspace/InternetTV_OpenGL/jni/native.cpp:180: error: cannot convert 'void (
*)(unsigned char*, long unsigned int, unsigned int, unsigned int, unsigned int)'
 to 'int*' for argument '2' to 'int main_dec(char*, int*)'
make: *** [/cygdrive/c/workspace/InternetTV_OpenGL/obj/local/armeabi/objs/itv/na
tive.o] Error 1

I have also added LOCAL_LDLIBS := -llog -lGLESv1_CM in Android.mk file
I don’t know why such type of error is coming.
Can anybody please help me to solve this problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T06:52:59+00:00Added an answer on May 28, 2026 at 6:52 am

    Answer determined in question comments above:

    The compiler can’t find GLES/gl.h. If you’ve only added a linker directive, you probably need to tell the compiler where those headers are too.

    Suggest you follow the advice in this answer: stackoverflow.com/a/5300984/440602

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting the following error when trying to use the WCF Test Client
I'm getting the following Error when trying to use OOP (for the first time),
I'm getting the following error when trying to use a modular layout in my
I am getting following error when I am trying to use Convert.FromBase64String The input
Hii, When I am trying to use eyedatagrid, I am getting the following error
I'm getting this error message trying to use PHP Mailer. Please let me know
I am trying to use the scp command but I'm getting the following error:
I am trying to use moles with NUnit and am getting the following error
I'm getting the following error when trying to use JQuery with the JqSOAPClient plugin:
I'm getting the following error when trying to compile my program: calling fdopen: Bad

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.