chromium + vbox guest additions
"Aruna J (RBEI/ECF3)" <[email protected]> Thu, 3 Jan 2013 20:16:36 +0800
| Newsgroups | gmane.comp.graphics.chromium.user |
|---|---|
| Message-ID | <[email protected]> |
--===============2600073809485128059==
Content-Language: en-US
Content-Type: multipart/alternative;
boundary="_000_62932F83E87AC24B9C459F26884BA2DFDA3B7D76SGPMBX06APACbos_"
--_000_62932F83E87AC24B9C459F26884BA2DFDA3B7D76SGPMBX06APACbos_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hi,
I have ubuntu running on vbox. Guest additions are installed successfully.
The guest addition provide libraries which export chromium APIs (e.g. VBoxO=
GL.so)
Now I want to use these chromium APIs as opengl renderer in my app.
A small demo linked to VBoxOGL.so, as below gives sementation fault!!
The API crWindowCreate_ptr returns valid integer value. But the app crashes=
after few milliseconds.
***************************************************************************=
**********
main()
{
const char *dpyName =3D "MyApp";
int visual =3D CR_RGB_BIT | CR_DEPTH_BIT | CR_DOUBLE_BIT;
#define LOAD(x) x##_ptr =3D (x##Proc) crGetProcAddress( #x )
int ret =3D XInitThreads();
LOAD( crWindowCreate );
ret =3D crWindowCreate_ptr(dpyName, visual);
}
***************************************************************************=
**********
Semenation fault backtrace shows below:
#0 0xsomeaddress in XGetGeometry () from /usr/lib/libX11.so.6
#1 0xsomeaddress in ?? () from /usr/lib/VBoxOGL.so
#2 0x0000000000 in ?? ()
Is it possible to use the chromium APIs as above?
If not what is the correct usage and configuration?
How to fix the above issue?
Please help me.
Best regards,
Cruser
--_000_62932F83E87AC24B9C459F26884BA2DFDA3B7D76SGPMBX06APACbos_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left:=
#800000 2px solid; } --></style>
</head>
<body>
<font face=3D"Arial, sans-serif" size=3D"2">
<div>Hi,</div>
<div> </div>
<div>I have ubuntu running on vbox. Guest additions are installed successfu=
lly.</div>
<div>The guest addition provide libraries which export chromium APIs (e.g. =
VBoxOGL.so)</div>
<div> </div>
<div>Now I want to use these chromium APIs as opengl renderer in my app.</d=
iv>
<div> </div>
<div>A small demo linked to VBoxOGL.so, as below gives sementation fault!!<=
/div>
<div>The API crWindowCreate_ptr returns valid integer value. But the app cr=
ashes after few milliseconds.</div>
<div><font face=3D"Times New Roman, serif" size=3D"2"> </font></div>
<div>**********************************************************************=
***************</div>
<div><font color=3D"#C00000">main()</font></div>
<div><font color=3D"#C00000">{</font></div>
<div><font color=3D"#C00000"> const char *dpyName =3D "MyApp";</f=
ont></div>
<div><font color=3D"#C00000"> int visual =3D CR_RGB_BIT | CR_DEPTH_BIT | CR=
_DOUBLE_BIT;</font></div>
<div><font color=3D"#C00000"> </font></div>
<div><font color=3D"#C00000"> #define LOAD(x) x##_ptr =3D (x##Proc) crGetPr=
ocAddress( #x )</font></div>
<div><font color=3D"#C00000"> int ret =3D XInitThreads();</font></div>
<div><font color=3D"#C00000"> </font></div>
<div><font color=3D"#C00000"> LOAD( crWindowCreate );</font></div>
<div><font color=3D"#C00000"> </font></div>
<div><font color=3D"#C00000"> ret =3D crWindowCreate_ptr(dpyName, visual);<=
/font></div>
<div><font color=3D"#C00000">}</font></div>
<div>**********************************************************************=
***************</div>
<div><font face=3D"Times New Roman, serif" size=3D"2" color=3D"#17365D">&nb=
sp;</font></div>
<div><font color=3D"#17365D">Semenation fault backtrace shows below:</font>=
</div>
<div><font color=3D"#17365D"> </font></div>
<div><font color=3D"#17365D">#0 0xsomeaddress in XGetGeometry (=
) from /usr/lib/libX11.so.6</font></div>
<div><font color=3D"#17365D">#1 0xsomeaddress in ?? () from /us=
r/lib/VBoxOGL.so</font></div>
<div><font color=3D"#17365D">#2 0x0000000000 in ?? ()</font></div>
<div><font face=3D"Times New Roman, serif" size=3D"2" color=3D"#C00000">&nb=
sp;</font></div>
<div>Is it possible to use the chromium APIs as above?</div>
<div>If not what is the correct usage and configuration?</div>
<div>How to fix the above issue?</div>
<div><font face=3D"Times New Roman, serif" size=3D"2"> </font></div>
<div>Please help me.</div>
<div><font face=3D"Times New Roman, serif" size=3D"2"> </font></div>
<div>Best regards,</div>
<div>Cruser</div>
<div><font face=3D"Times New Roman, serif" size=3D"2"> </font></div>
</font>
</body>
</html>
--_000_62932F83E87AC24B9C459F26884BA2DFDA3B7D76SGPMBX06APACbos_--
--===============2600073809485128059==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
--===============2600073809485128059==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Chromium-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chromium-users
--===============2600073809485128059==--