[vbox-dev] How to tell KBuild to locate the additional include directories?
klaus.espenlaub at oracle.com
Mon May 6 06:28:36 PDT 2013
On 03.05.2013 07:05, Xun Chen wrote:
> I'd like to modify the code of VirtualBox. In the source code the head
> files are needed, such as ntdef.h wdm.h & ntddk.h, which are contained
> in WinDDK. I added these files in the head of source file, #include
> <***.h>. But when I build the source, the error appear:
> fatal error C1083: Cannot open include file: 'ntdef.h': No such file or
> Before modifying the source code, the VirtualBox had successfully been
> built. So I'm sure the KBUILD has already know where WinDDK is.What can
> I do to let the KBUILD know where to find these head files?
Your question lacks some basic context to give a direct answer, so I'm
trying to answer it with minimum vagueness nevertheless: kBuild has a
concept called "SDK", which is a bundle of appropriate include and
library settings. So you need to add $(VBOX_WINDDK) to the appropriate
foo_SDKS.win variable (as it's only applicable for Windows) - there are
some examples in src/VBox/Devices/Makefile.kmk.
> Thank you~
More information about the vbox-dev