Hi,
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
works fine.
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
error:
In file included from
/opt/VirtualBox-1.3.8/sdk/include/xpcom/nsprpub/prtypes.h:58,
from /opt/VirtualBox-1.3.8/sdk/include/xpcom/xpcom/nscore.h:51,
from /opt/VirtualBox-1.3.8/sdk/include/nsrootidl.h:11,
from /opt/VirtualBox-1.3.8/sdk/include/nsISupports.h:10,
from /opt/VirtualBox-1.3.8/sdk/include/nsIServiceManager.h:10,
from tstVBoxAPILinux.cpp:35:
/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.
Any suggestions?
Thanks,
Carlos.
_______________________________________________
vbox-dev mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-dev