Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Tags in this Discussion

OpenGL ES 2.0; Segmentation fault;
  • Hi Guys!

    I got "Segmentation fault" when using any function from libGLESv2.so.
    Any ideas why did it happen?

    libGLESv2.so from NDK was downloaded from here.
    device tegra2.

    Thanks
  • 3 Comments sorted by
  • The OpenGL ES 2 library for your Tegra 2 device should not be replaced. That is, there is a library on the device and you should use that library for your OpenGL applications. If you need assistance getting an OpenGL ES 2 application up and running, take a look at the NVIDIA samples that are included in the "Tegra Android Toolkit" on the Tegra Resources page.

    Andrew
  • Vote Up0Vote Down GreenTroll
    Posts: 9 Accepted Answer
    Hi Andrew!

    Did I write I replace library from NDK?
    I'm trying to use this standsrt library which crashed application as soon as any function has been called.

    What do I need to do to correct application?
  • It is very hard to give advice in a vacuum and crashes from applications can come from a multitude of locations. I suggest you study either the NVIDIA samples (as mentioned in my previous post) or alternatively start with Google's hello-gl2 sample. Hello-gl2 is included with the NDK and illustrates the use of OpenGL ES 2.0 vertex and fragment shaders.