OpenGL / ES debug on imx6 latest dora build (3.0.35)

cancel
Showing results for 
Search instead for 
Did you mean: 

OpenGL / ES debug on imx6 latest dora build (3.0.35)

Jump to solution
829 Views
petersuciu
Contributor III

Hello,

I have an image (fsl-image-gui) built with Yocto. When I try to run a custom opengl app on it via GUI (double click on icon in file manager), the app runs fine, producing the expected graphical output. When I try running the same app via remote process launch from Eclipse, it fails to run OpenGL code, as in it cannot find the source to execute, like some weird linkage problem. Here is the snippet in question:

// initialize EGL display object

GLDisplay = eglGetDisplay( EGL_DEFAULT_DISPLAY );


if ( !GLDisplay )

{

     LOG__PRINT_ERROR( "Bad display object!" );

     // TODO: Add error here

     return;

}


eglInitialize ( GLDisplay, NULL, NULL );

// ..

While in debug mode (gdb-remote attached to locally transfered code and executed app/process), eglGetDisplay executes fine and returns a valid display object. However, eglInitialize fails to execute with no source (jumps to 0x0000).

julietwei

OtavioSalvador

DaianeAngolini

1 Solution
208 Views
daiane_angolini
NXP Employee
NXP Employee

I think your question is:

How to say to Eclipse the default content of EGL_DEFAULT_DISPLAY.


Or, how to say:


$ DISPLAY=:0 my_app


right?

View solution in original post

7 Replies
209 Views
daiane_angolini
NXP Employee
NXP Employee

I think your question is:

How to say to Eclipse the default content of EGL_DEFAULT_DISPLAY.


Or, how to say:


$ DISPLAY=:0 my_app


right?

View solution in original post

208 Views
petersuciu
Contributor III

No, that enum does not matter, having eglGetDisplay(0) produces the same result. The issue is *not* on that line. That executes fine. The issue is when calling eglInitialize, the stack is void of any source code at the address of that function.

0 Kudos
208 Views
daiane_angolini
NXP Employee
NXP Employee

oh, OK. So I have no idea.

0 Kudos
208 Views
petersuciu
Contributor III

DaianeAngolini,

Can you explain why this is happening? I'll help in getting the application running...

0 Kudos
208 Views
daiane_angolini
NXP Employee
NXP Employee

I don't know how to explain. It was just feeling.

I don't use eclipse or make EGL applications... I'm sorry

208 Views
petersuciu
Contributor III

That is helpful, thank you. Appreciate you taking the time to answer.

208 Views
petersuciu
Contributor III

My bad, that actually fixed it!

what is the explanation for this behavior?

0 Kudos