We compiled Qt for OpenGL ES, And we modified the Qt source file
pvrqwswsegl.c, ‘cause we couldn’t compile successfully without these
changes, we couldn’t found any definition about
“WSEGL_CAP_WINDOWS_USE_MBX_SYNC” or “WSEGL_CAP_PIXMAPS_USE_MBX_SYNC”.
Original:
/* Capability information for the display */
/*static WSEGLCaps const wseglDisplayCaps[] = {
{WSEGL_CAP_WINDOWS_USE_MBX_SYNC, 1},
{WSEGL_CAP_PIXMAPS_USE_MBX_SYNC, 1},
{WSEGL_NO_CAPS, 0}
};*/
Now:
static WSEGLCaps const wseglDisplayCaps[] = {
{WSEGL_CAP_WINDOWS_USE_HW_SYNC, 1},
{WSEGL_CAP_PIXMAPS_USE_HW_SYNC, 1},
{WSEGL_NO_CAPS, 0}
};
We only found some definitions in “#include <wsegl.h>” like this, so
we changed above according below definitions:
typedef enum WSEGLCapsType_TAG
{
WSEGL_NO_CAPS = 0,
WSEGL_CAP_MIN_SWAP_INTERVAL = 1, /* System default value = 1 */
WSEGL_CAP_MAX_SWAP_INTERVAL = 2, /* System default value = 1 */
WSEGL_CAP_WINDOWS_USE_HW_SYNC = 3, /* System default value = 0 (FALSE) */
WSEGL_CAP_PIXMAPS_USE_HW_SYNC = 4, /* System default value = 0 (FALSE) */
} WSEGLCapsType;
The building is ok, when we tested hellogl_es example in Ot, we got
some troubles rendering image, with many different color flashing on
the widget, and twinkling very fast. Do you think that it’s the
problem what we have done to Qt sources?
If yes, how should the really structure be (I mean the “static
WSEGLCaps const wseglDisplayCaps[]” what I have mentioned above ) ?
If the original structure arguments are right, why it can’t found the
definition of WSEGL_CAP_PIXMAPS_USE_MBX_SYNC and
WSEGL_CAP_WINDOWS_USE_MBX_SYNC?
please give me some advices, and any help is highly appreciated.
Thanks
Best Regards
--
~~~~~~~~~~~~~~~~~
/favor
~~~~~~~~~~~~~~~~~
MBX is older PowerVR architecture, beagleboard has SGX not MBX. From the
missing definitions it looks like your Qt for OpenGL ES sources may be
written with MBX chip in mind.
Frantisek
Hi, Carlos
We compiled Qt for OpenGL ES, And we modified the Qt source file pvrqwswsegl.c, ‘cause we couldn’t compile successfully without these changes, we couldn’t found any definition about “WSEGL_CAP_WINDOWS_USE_MBX_SYNC” or “WSEGL_CAP_PIXMAPS_USE_MBX_SYNC”.
Original:
/* Capability information for the display */
/*static WSEGLCaps const wseglDisplayCaps[] = {
{WSEGL_CAP_WINDOWS_USE_MBX_SYNC, 1},
{WSEGL_CAP_PIXMAPS_USE_MBX_SYNC, 1},
{WSEGL_NO_CAPS, 0}
};*/
Now:
static WSEGLCaps const wseglDisplayCaps[] = {
{WSEGL_CAP_WINDOWS_USE_HW_SYNC, 1},
{WSEGL_CAP_PIXMAPS_USE_HW_SYNC, 1},
{WSEGL_NO_CAPS, 0}
};
We only found some definitions in “#include <wsegl.h>” like this, so we changed above according below definitions:
typedef enum WSEGLCapsType_TAG
{
WSEGL_NO_CAPS = 0,
WSEGL_CAP_MIN_SWAP_INTERVAL = 1, /* System default value = 1 */
WSEGL_CAP_MAX_SWAP_INTERVAL = 2, /* System default value = 1 */
WSEGL_CAP_WINDOWS_USE_HW_SYNC = 3, /* System default value = 0 (FALSE) */
WSEGL_CAP_PIXMAPS_USE_HW_SYNC = 4, /* System default value = 0 (FALSE) */
} WSEGLCapsType;
The building is ok, when we tested hellogl_es example in Ot, we got some troubles rendering image, with many different color flashing on the widget, and twinkling very fast. Do you think that it’s the problem what we have done to Qt sources?
If yes, how should the really structure be (I mean the “static WSEGLCaps const wseglDisplayCaps[]” what I have mentioned above ) ?
If the original structure arguments are right, why it can’t found the definition of WSEGL_CAP_PIXMAPS_USE_MBX_SYNC and WSEGL_CAP_WINDOWS_USE_MBX_SYNC?
With you special experiences, please give me some advices, and any help is highly appreciated.
Thanks
Best Regards
favor
Hi Harish,
Thanks for info..
Do you have Source customized / the binary… link details.
Thanks
Arun
Thanks for the info Harish.
Off course it should be of large size. May be possible to upload into beagleboard.org .
In the mean time is it possible for you to share the source code download links and the configuration patches..
Regards,