OpenGL-fbdev application build, undefined reference to `fbGetDisplayByIndex' error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

OpenGL-fbdev application build, undefined reference to `fbGetDisplayByIndex' error

967 Views
Mav
Contributor I

Hello. I have a problem while trying build OpenGL-fbdev application.

I got undefined reference to `fbGetDisplayByIndex' and undefined reference to `fbCreateWindow' errors.

It looks like there are i.MX Framebuffer (FB) API functions calls in my source code:

#ifdef EGL_API_FB
nativeDisplayType = fbGetDisplayByIndex( 0 );
#endif

#if (defined EGL_API_FB)
else if ( strstr( eglVendor, "Vivante" ))
{
eglNativeWindowType = fbCreateWindow( nativeDisplayType, 0, 0, 0, 0 );
}
#endif

 

I have standard distro: Yogurt

Distro version: BSP-Yocto-i.MX6-PD18.1.2

and standard SDK version:

http://download.phytec.de/Products/i.MX6/SO-547v2_PD18.1.0/SDK/phytec-yogurt-glibc-x86_64-phytec-qt5...

machine name: phyflex-imx6-1


Where can i get correct libEGL.so ?

It looks like libEGL.so have no fbGetDisplayByIndex and fbCreateWindow functions - i think i need rebuild SDK for using FrameBuffer but not X11 or Wayland - how can i do it ?

@Bio_TICFSL @garyyin 

0 Kudos
2 Replies

931 Views
Mav
Contributor I

i successfully built binary file using gpu-viv-bin-mx6q-fb component taken from here:

http://tardis.tiny-vps.com/aarm/packages/g/gpu-viv-bin-mx6q-fb/

i changed libEGL.so.1 and libGAL.so libraries on host computer and build was successful.

i changed libEGL.so.1 and libGAL.so libraries on target IMX6 computer

after that i copied binary file to target imx6 computer and got segmentation fault.

i think i need install gpu-viv-bin-mx6q-fb component into target computer by some way

0 Kudos

924 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Mav,

This is work in MX6QSabre board, i guess you migth consult with phytec

https://www.phytec.com/product/phyflex-imx6/

Regards

0 Kudos