[vbox-dev] Qt C++ Vbox

Klaus Espenlaub klaus.espenlaub at oracle.com
Wed Sep 3 09:07:18 UTC 2014


Sanchir,

all those errors are

On 01.09.2014 21:36, Sanchir Kartiev wrote:
> Klaus,
> Problem appear in preprocessor. I guess that compiler, can't define my
> OS and CPU Architecture. This error also appear in make step of
> executing sample program from "sdk/bindings/xpcom/samples/tstVBoxAPIXPCOM"

Please check the contents of the Makefile we're shipping for building 
the sample... it contains all details and instructions, including that 
you need to define RT_OS_LINUX, RT_OS_WINDOWS, RT_OS_DARWIN, 
RT_OS_SOLARIS depending on your host OS. The remaining errors are all 
ultimately caused by ignoring this.

Klaus

> Full Error
> 1)
> C:\Users\Sanchir\Documents\sdk\bindings\xpcom\include\nsprpub\prcpucfg.h:62:
> error: #error "Define the correct platform identifier / Port me."
> 2) \sdk\bindings\xpcom\include\iprt\cdefs.h:199: error: #error "You must
> define which context the compiled code should run in; IN_RING3, IN_RING0
> or IN_RC"
> 3) \sdk\bindings\xpcom\include\VBox\com\defs.h:79: ошибка: atlbase.h: No
> such file or directory
>   # include <atlbase.h>
> This error from Windows Version, also this problems is appears on Linux
> and Mac OS. (Linux and Mac OS also want to <atlbase.h>
> in Qt this headers has been Imported by : all files sucessfully included.
>
> INCLUDEPATH  +=USER_NAME/Documents/sdk/bindings/xpcom/include
>
>
> #ifndef  nspr_vboxcfg___
>
> #define  nspr_vboxcfg___
>
> #ifdef  RT_OS_DARWIN
>
> #  include  <md/_darwin.cfg>
>
> #elif  defined(RT_OS_FREEBSD)
>
> #  include  <md/_freebsd.cfg>
>
> #elif  defined(RT_OS_L4)
>
> #  include  <md/_l4v2.cfg>
>
> #elif  defined(RT_OS_LINUX)
>
> #  include  <md/_linux.cfg>
>
> #elif  defined(RT_OS_NETBSD)
>
> #  include  <md/_netbsd.cfg>
>
> #elif  defined(RT_OS_OPENBSD)
>
> #  include  <md/_openbsd.cfg>
>
> #elif  defined(RT_OS_SOLARIS)
>
> #  if  defined(RT_ARCH_X86)
>
> #   include  <md/_solaris32.cfg>
>
> #else
>
> #   include  <md/_solaris64.cfg>
>
> #  endif
>
> #elif  defined(RT_OS_OS2)
>
> #  include  <md/_os2.cfg>
>
> #else
>
> #  error  "Define the correct platform identifier / Port me."    ---------
>
> #endif



More information about the vbox-dev mailing list