[vbox-dev] VBoxSDLFB Virtual Functions Error

Christian Pötzsch Christian.Poetzsch at Sun.COM
Tue Mar 9 01:54:50 PST 2010

Hi Jay,

the GetWinId method is there for 3D acceleration support. Its used to
get the id of the main window, which is necessary to place the 3D
overlay windows over the parent. A quick look at the src shows, that
this method is implemented in VBoxSDLFB, around 424 in Framebuffer.cpp.
So its a little bit strange to me, why its not work on your side. Are
you sure you updated the sdk and all of the rest of vbox?

Btw, the 3D stuff doesn't work on the Mac in SDL. As Klaus already
pointed out, the SDL frontend isn't support on Mac OS X.


On 03/09/10 09:53, Jay wrote:
> On March 8, 2010 3:45:14 AM, Klaus Espenlaub wrote:
>> Jay schrieb:
>>> I am getting a strange C++ error while attempting to build the SDL interface (building against SDL 1.2.14):
>>> src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp: In function ‘int TrustedMain(int, char**, char**)’:
>>> src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp:1829: error: cannot allocate an object of abstract type ‘VBoxSDLFB’
>>> src/VBox/Frontends/VBoxSDL/Framebuffer.h:50: note:  because the following virtual functions are pure within ‘VBoxSDLFB’:
>>> out/darwin.intel64/release/dist/sdk/bindings/xpcom/include/VirtualBox_XPCOM.h:12450: note: virtual nsresult IFramebuffer::GetWinId(PRUint64*)
>>> Any hints/advice would be greatly appreciated.
>> Thanks for providing the mandatory information about the host platform accidentally as part of the compiler error message... ;)
> Thank you for your reply Klaus.
> It was no accident.
> :)
>> To my knowledge VBoxSDL never worked reasonably well on Darwin, so this doesn't get tested at all. Obviously it doesn't even build successfully, as there is no implementation of the GetWinId method for this platform.
> I have always used and greatly preferred the SDL interface (I prefer starting the VM with command line options).
> I have never had a problem with it before. I think the last version I built was 3.0. Do you know when GetWinId was introduced? 
> Any workarounds possible? What is GetWinId a part of, SDL or VBox?
> If I can't figure out how to port it, I will be stuck using outdated versions forever....
> Thanks again.
> _______________________________________________
> vbox-dev mailing list
> vbox-dev at virtualbox.org
> http://vbox.innotek.de/mailman/listinfo/vbox-dev

Dr. Christian Pötzsch   --    http://www.sun.com/

Sitz der Gesellschaft: Sun Microsystems GmbH,
Sonnenallee 1, D-85551 Kirchheim-Heimstetten
Amtsgericht München: HRB 161028
Geschäftsführer: Thomas Schröder, Wolfgang Engels
Vorsitzender des Aufsichtsrates: Martin Häring

More information about the vbox-dev mailing list