[vbox-dev] Error running the test VirtualBox API sample
cafm1 at alu.ua.es
Wed May 2 02:46:36 PDT 2007
I'm interested on manage VirtualBox using the XPCOM API. I've installed
VirtualBox on Debian Etch and I've created and worked with VMs and everything
The problems come when I try to build and run the sample tstVBoxAPILinux.cpp.
First, when I do make (using the makefile that comes with the sample) I got the
In file included from /opt/VirtualBox-1.3.8/sdk/include/xpcom/nsprpub/prtypes.h:58,
/opt/VirtualBox-1.3.8/sdk/include/xpcom/nsprpub/prcpucfg.h:57:3: error: #error
"Define the correct platform identifier / Port me."
Then, I change the line 57 of the file prcpucfg.h to this:
# include <md/_linux.cfg>
and now works. But when I run ./tstVBoxAPILinux I got the error:
Error: could not get ipc service! rc=80040154
That error is NS_ERROR_FACTORY_NOT_REGISTERED.
More information about the vbox-dev