[Arm-netbook] OpenVG Lib for A10

Wojciech Meyer wojciech.meyer at googlemail.com
Tue Aug 14 00:37:28 BST 2012


Hello,

Sorry for the delayed response.

Piyush Verma <piyush.pv at gmail.com> writes:

>     I think, if you got a stock driver, and link against the shared
>     object
>     part of it, you will get the OpenVG support. You'd just need the
>     Khronos headers too, perhaps slightly modified - I think they are
>     distributed with the drivers itself. You might also need to supply
>     a
>     build switch to enable the support if you are building them.
>     I've not tried this however.
>
>
> You are right.
>
> But the problem is I can't see any stock driver. Main target of A10
> and Android and currently android not using OpenVG on OS level it's
> using gles2 that's why I think people don't care for OpenVG.

The original stock driver, should consists of several kernel modules
(the ones with the .ko extension) and a set of shared objects. The
interesting library for you is named as libMali.so to which you can link
with just by supplying -lMali switch to the compiler driver. There might
be others too, these might contain different subsets of the
functionality.  To check what is being exposed in the library that looks
interesting you can just do 'nm -D libMali.so' and grep for vg prefixed
symbols. In the extreme case you could just do the search in a loop in
the /usr/lib the same away as you would do for a single one. Once you
find the right library, you can include the headers from Khronos, in
your C or C++ program, and see if that works. There is still some usual
glue needed (like we normally have for gl: glx & glut or even Cairo
etc.) for the X window system, so hacking that should be perhaps the
most difficult part, but once you've done that I think you are ready to
use the vg API.

I admit I'm curious how it will go, so if you can post your findings
here it would very useful for other people here.

To be honest I've never played in any production environment with the
drivers. Especially each distro can ship slightly different libraries,
but I think in principle this should compile and work well for you.

Hope that helps,
--
Wojciech Meyer
http://danmey.org



More information about the arm-netbook mailing list