Hi,
 
I have ubuntu running on vbox. Guest additions are installed successfully.
The guest addition provide libraries which export chromium APIs (e.g. VBoxOGL.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 = "MyApp";
int visual = CR_RGB_BIT | CR_DEPTH_BIT | CR_DOUBLE_BIT;
 
#define LOAD(x) x##_ptr = (x##Proc) crGetProcAddress( #x )
int ret = XInitThreads();
 
LOAD( crWindowCreate );
 
ret = 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