VS2012 + WDK8 Compile WDM driver

Source: Internet
Author: User

To support the new feature, the update WDK version is required, and the latest is the Win8 WDK RTM version.

Unlike the previous Wdk,win8 WDK RTM, which no longer comes with the build env, it needs to build via vs2012 or vs2010.

Take vs2012 as an example, vs2012 needs to convert source code to *.vcxproj to build.

Method One:

Open VS2012, file-, open, convert sources.../dir ... Select the WDM-driven sources file, vs2012 will automatically help you convert the sources to a vcxproj project that can be compiled.

At this point, select the appropriate platform, Configuration,build/rebuild can be.


Method Two:

With VS2012 command prompt, open the start, program, vs2012, virtual Studio Tools, VS2012 xxxx Tools command PR Ompt

Here "XXXX" usually includes x86, x64, ARM environment, select the need.

Jump to the current directory, in the Command prompt window, convert sources to *.vcxproj project by Nmake2msbuid, and compile with MSBuild.

Distance:

Nmake2msbuild sources

msbuild/p:configuration= "Win7 Debug"

You can build a driver that corresponds to configure for the Win7 chk version.


But the shortcut to command prompt is

%comspec%/k "" C:\Program Files\Microsoft Visual Studio 11.0\vc\vcvarsall.bat "" x86

Currently not in the *.bat successful call, which Master know also please help pointing under.

Thank you.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.