Wednesday, March 27, 2013

[android-developers] Re: Eclipse unresolved OpenGL functions.

Hi Ed X,

Not sure if you still need this, but I was facing the same problem and here's what got me to fix it:

1. Remove your project from Eclipse IDE
2. Remove your auto-generated Eclipse files in your project's root folder in file system: .project, .cproject and .classpath
3. Re-create your project on Eclipse (remember to use Android Project from Existing Source)
4. Once it's created, right-click on your project, on Eclipse IDE, find Android Tools > Add Native Library Support
5. In the prompt dialog will be opened, input your library name (without the 'lib' prefix, since it already adds it)

Good luck! 

On Sunday, August 21, 2011 6:31:33 PM UTC-3, Ed X wrote:
I'm using the NDK with Eclipse Indigo and I want to access some OpenGL
methods from C++ so I included GLES/gl.h.

I can compile the C++ code fine from within Eclipse, however Eclipse
insists that the OpenGL functions cannot be resolved. I opened GLES/
gl.h in Eclipse and noticed that declarations of the OpenGL functions
are not being parsed correctly; the function names are not in bold.
However, the OpenGL functions which do not return void are parsed
correctly. For example:

GL_API GLboolean GL_APIENTRY glIsBuffer (GLuint buffer) is OK
GL_API void GL_APIENTRY glClearColor (GLclampf red, GLclampf green,
GLclampf blue, GLclampf alpha) is not OK

As soon as I change the void to something else, the function name turn
bold and shows in the Outline view.

Anyone got an idea what's going on?

Thank you in advance.

--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment