On Mon, May 3, 2010 at 12:11 PM, Kyle Stewart <[email protected]> wrote:
> I would like to use MinGW-w64 as my one stop shopping toolchain for
> targeting the Windows platform including driver development, but I have run
> into a snag. I have downloaded the latest personal builds for both x86 and
> x64 targets. I am running a x64 Windows 7 host and I have successfully used
> the 32 bit target toolchain to build Qt 4.6. My next step was to get a
> simple hello world driver working. All the driver does is provide a
> DriverEntry and DriverUnload function with some debug statements to let me
> know things are working. I have been able to build the driver using the
> default MinGW bundle since they package the DDK along with the regular
> install with some tips found here:
>
> http://strdup.livejournal.com/34596.html
>
> So I know the code is okay. I have checked out the current mingw-w64 code
> out of the SVN and found the DDK headers. I copied the DDK folder over to
> where my local MinGW-w64 installations. It seems as thought things are
> incomplete, however. After placing the appropriate search paths for the new
> headers in the gcc compile command I get a large screenful of errors. Here
> is the first few lines:
>
> In file included from
> M:\Development\mingw\mingw32_win64\i686-w64-mingw32\include\ddk/ntddk.h:40,
>                  from driver.c:1:
> M:\Development\mingw\mingw32_win64\i686-w64-mingw32\include\ddk/wdm.h:39:19:
> error: ntdef.h: No such file or directory
> M:\Development\mingw\mingw32_win64\i686-w64-mingw32\include\ddk/wdm.h:41:22:
> error: ntiologc.h: No such file or directory
> M:\Development\mingw\mingw32_win64\i686-w64-mingw32\include\ddk/wdm.h:62:22:
> error: dpfilter.h: No such file or directory
>
> So it can find ntddk.h but not the some of the header dependencies of
> ntddk.h. The headers mentioned in the error messages don't seem to be
> anywhere to be found in the MinGW-w64 SVN checkout, but they do exist in the
> MinGW headers. Am I missing something? Is it safe to simply copy the DDK
> folder from the MinGW bundle over to MinGW-w64 folder? Any help would be
> appreciated.
>
> Regards,
>
> Kyle

The DDK headers were not installed by default in the toolchain (I
will remember to install them bydefault in future builds.) In the
interim, just download the ddk headers from svn, here:
http://mingw-w64.svn.sourceforge.net/viewvc/mingw-w64/branches/releases/v1.0/mingw-w64-headers/ddk/

--
Ozkan

------------------------------------------------------------------------------
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to