Results 1 to 5 of 5

Thread: Possible to use OpenVG on Symbian?

  1. #1
    Junior Member
    Join Date
    Sep 2009

    Possible to use OpenVG on Symbian?

    Hi all

    I've got a new Symbian phone (Samsung i8910) based on S60 5th Edition. It uses an OMAP 3-something with the SGX hardware, and definitely supports Open GL ES, and I thought the hardware also supported OpenVG. Is it possible to use OpenVG under symbian?

    The SDKs are generally old and a bit rubbish. There is a libopenvg available for linking to, but the egl headers in the latest SDK are only version 1.1. Doing eglQueryString(..., EGL_VERSION) showed the phone has egl 1.4. I hacked around the reference headers for a more recent egl so a could compile eglQueryString(..., EGL_CLIENT_APIS) which worked, but only returned "OpenGL_ES". However I'm not sure if that's just down to my hackery and if it is possible to install something to the phone to enable OpenVG?

    OpenVG is mentioned in the nokia docs: ... vg_8h.html

    The header files there were nowhere to be found in the SDK, so again I hacked the files together from the "go to the source code" links from the documentation pages.

    If anyone has had success with OpenVG on a symbian device, let me know please!


  2. #2
    Senior Member
    Join Date
    Feb 2006

    Re: Possible to use OpenVG on Symbian?

    I don't know how - if it's possible at all - to directly access the Hardware OpenVG stuff on that platform.
    Try checking for updated drivers (which you've probably already done). But just because the hardware can support something, doesn't necessarily mean the driver for it does though

    You could try the ShivaVG / Mesa versions of VG which work on top of OpenGL to just "get something working" in the meantime.

  3. #3
    Junior Member
    Join Date
    Oct 2008

    Re: Possible to use OpenVG on Symbian?

    There's no official support for application developers to use the libopenvg yet on Symbian.
    Currently only manufacturers can use it internally.
    Official support should come later.
    Kari Pulli

  4. #4
    Junior Member
    Join Date
    Nov 2009

    Re: Possible to use OpenVG on Symbian?


    I'm having somewhat the same problem. Using a prototype Sony Ericsson device which is pretty much the same as the Samsung i8910 under the hood (Symbian 9.3, PVR SGX chipset etc).

    On my device eglQueryString( .. , EGL_CLIENT_APIS) do infact return "OpenGL_ES OpenVG", so that's a plus.
    I'm linking with libopenvg.lib found in the S60_5th_Edition_v1.0 SDK also using my own (khronos EGL and openVG headers). There is a libopenvg.dll present on the device which seems to somewhat work.

    vgGetString gives me this info:
    Vendor: Nokia
    Version: 1.0
    Renderer: OpenVG 1.0.1 (Fixed)
    Extensions: <empty>

    My problem comes when I try to set it all up. I can't seem to be able to retrieve an egl context when I've bound the OpenVG API. Eighter it's flat out non-supported, or there's something i'm doing wrong. Here's my initialisation sequence:

    Code :
    display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
    eglInitialize( display, &major, &minor );
    static const EGLint configAttribs[] =
    	EGL_RED_SIZE, 8,
    	EGL_BLUE_SIZE, 8,
    eglChooseConfig( display, configAttribs, &egl_config, 1, &num_configs);
    static const EGLint surfAttribs[] =
    eglCreateWindowSurface( display, egl_config, hwnd, surfAttribs);
    eglCreateContext( display, egl_config, NULL, NULL);
    // This is where it fails. EGL_NO_CONTEXT is returned and eglGetError tells me EGL_NOT_INITIALIZED

    None of the previous steps fails or yield any error, only that last CreateContext. I can't really understand why
    it says that EGL isn't initialized when eglInitialize returns successful.

  5. #5
    Senior Member
    Join Date
    Feb 2006

    Re: Possible to use OpenVG on Symbian?

    Use eglGetError() to find more information (preferably after every egl statement - and especially after the one that failed).
    It's possible that there is some issue with the config you are trying to set (you did verify it is returning one valid config I hope right?). Try other bit depths like rgb565, and also try leaving out the EGL_SURFACE_TYPE and EGL_RENDERABLE_TYPE attributes from the config attribute list. Maybe you're choosing some wonky non-standard config because of them.

    If the driver is reporting that VG is supported though, then it probably is.
    You might also want to try calling eglBindAPI() after eglInitialize().
    I think, eglGetDisplay() is the only call designed to work before eglInitialize().

Similar Threads

  1. About symbian and ogl es
    By laskowski in forum OpenGL ES
    Replies: 0
    Last Post: 11-18-2004, 02:25 PM
  2. symbian implementations
    By possan in forum OpenGL ES
    Replies: 4
    Last Post: 04-13-2004, 05:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean